AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
DescribeLocationS3Result.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/datasync/DataSync_EXPORTS.h>
12#include <aws/datasync/model/S3Config.h>
13#include <aws/datasync/model/S3StorageClass.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace DataSync {
27namespace Model {
34 public:
35 AWS_DATASYNC_API DescribeLocationS3Result() = default;
38
40
43 inline const Aws::String& GetLocationArn() const { return m_locationArn; }
44 template <typename LocationArnT = Aws::String>
45 void SetLocationArn(LocationArnT&& value) {
46 m_locationArnHasBeenSet = true;
47 m_locationArn = std::forward<LocationArnT>(value);
48 }
49 template <typename LocationArnT = Aws::String>
51 SetLocationArn(std::forward<LocationArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetLocationUri() const { return m_locationUri; }
61 template <typename LocationUriT = Aws::String>
62 void SetLocationUri(LocationUriT&& value) {
63 m_locationUriHasBeenSet = true;
64 m_locationUri = std::forward<LocationUriT>(value);
65 }
66 template <typename LocationUriT = Aws::String>
68 SetLocationUri(std::forward<LocationUriT>(value));
69 return *this;
70 }
72
74
81 inline S3StorageClass GetS3StorageClass() const { return m_s3StorageClass; }
82 inline void SetS3StorageClass(S3StorageClass value) {
83 m_s3StorageClassHasBeenSet = true;
84 m_s3StorageClass = value;
85 }
87 SetS3StorageClass(value);
88 return *this;
89 }
91
93
94 inline const S3Config& GetS3Config() const { return m_s3Config; }
95 template <typename S3ConfigT = S3Config>
96 void SetS3Config(S3ConfigT&& value) {
97 m_s3ConfigHasBeenSet = true;
98 m_s3Config = std::forward<S3ConfigT>(value);
99 }
100 template <typename S3ConfigT = S3Config>
102 SetS3Config(std::forward<S3ConfigT>(value));
103 return *this;
104 }
106
108
114 inline const Aws::Vector<Aws::String>& GetAgentArns() const { return m_agentArns; }
115 template <typename AgentArnsT = Aws::Vector<Aws::String>>
116 void SetAgentArns(AgentArnsT&& value) {
117 m_agentArnsHasBeenSet = true;
118 m_agentArns = std::forward<AgentArnsT>(value);
119 }
120 template <typename AgentArnsT = Aws::Vector<Aws::String>>
122 SetAgentArns(std::forward<AgentArnsT>(value));
123 return *this;
124 }
125 template <typename AgentArnsT = Aws::String>
127 m_agentArnsHasBeenSet = true;
128 m_agentArns.emplace_back(std::forward<AgentArnsT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
138 template <typename CreationTimeT = Aws::Utils::DateTime>
139 void SetCreationTime(CreationTimeT&& value) {
140 m_creationTimeHasBeenSet = true;
141 m_creationTime = std::forward<CreationTimeT>(value);
142 }
143 template <typename CreationTimeT = Aws::Utils::DateTime>
145 SetCreationTime(std::forward<CreationTimeT>(value));
146 return *this;
147 }
149
151
152 inline const Aws::String& GetRequestId() const { return m_requestId; }
153 template <typename RequestIdT = Aws::String>
154 void SetRequestId(RequestIdT&& value) {
155 m_requestIdHasBeenSet = true;
156 m_requestId = std::forward<RequestIdT>(value);
157 }
158 template <typename RequestIdT = Aws::String>
160 SetRequestId(std::forward<RequestIdT>(value));
161 return *this;
162 }
164 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
165
166 private:
167 Aws::String m_locationArn;
168
169 Aws::String m_locationUri;
170
171 S3StorageClass m_s3StorageClass{S3StorageClass::NOT_SET};
172
173 S3Config m_s3Config;
174
175 Aws::Vector<Aws::String> m_agentArns;
176
177 Aws::Utils::DateTime m_creationTime{};
178
179 Aws::String m_requestId;
180 Aws::Http::HttpResponseCode m_HttpResponseCode;
181 bool m_locationArnHasBeenSet = false;
182 bool m_locationUriHasBeenSet = false;
183 bool m_s3StorageClassHasBeenSet = false;
184 bool m_s3ConfigHasBeenSet = false;
185 bool m_agentArnsHasBeenSet = false;
186 bool m_creationTimeHasBeenSet = false;
187 bool m_requestIdHasBeenSet = false;
188};
189
190} // namespace Model
191} // namespace DataSync
192} // namespace Aws
AWS_DATASYNC_API DescribeLocationS3Result(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeLocationS3Result & WithS3StorageClass(S3StorageClass value)
DescribeLocationS3Result & AddAgentArns(AgentArnsT &&value)
DescribeLocationS3Result & WithLocationArn(LocationArnT &&value)
DescribeLocationS3Result & WithAgentArns(AgentArnsT &&value)
const Aws::Vector< Aws::String > & GetAgentArns() const
DescribeLocationS3Result & WithS3Config(S3ConfigT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
AWS_DATASYNC_API DescribeLocationS3Result()=default
AWS_DATASYNC_API DescribeLocationS3Result & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeLocationS3Result & WithLocationUri(LocationUriT &&value)
DescribeLocationS3Result & WithRequestId(RequestIdT &&value)
DescribeLocationS3Result & WithCreationTime(CreationTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue