AWS SDK for C++  1.8.71
AWS SDK for C++
CreateLocationS3Request.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace DataSync
19 {
20 namespace Model
21 {
22 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "CreateLocationS3"; }
38 
39  Aws::String SerializePayload() const override;
40 
41  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42 
43 
49  inline const Aws::String& GetSubdirectory() const{ return m_subdirectory; }
50 
56  inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
57 
63  inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; }
64 
70  inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); }
71 
77  inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); }
78 
84  inline CreateLocationS3Request& WithSubdirectory(const Aws::String& value) { SetSubdirectory(value); return *this;}
85 
91  inline CreateLocationS3Request& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;}
92 
98  inline CreateLocationS3Request& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;}
99 
100 
105  inline const Aws::String& GetS3BucketArn() const{ return m_s3BucketArn; }
106 
111  inline bool S3BucketArnHasBeenSet() const { return m_s3BucketArnHasBeenSet; }
112 
117  inline void SetS3BucketArn(const Aws::String& value) { m_s3BucketArnHasBeenSet = true; m_s3BucketArn = value; }
118 
123  inline void SetS3BucketArn(Aws::String&& value) { m_s3BucketArnHasBeenSet = true; m_s3BucketArn = std::move(value); }
124 
129  inline void SetS3BucketArn(const char* value) { m_s3BucketArnHasBeenSet = true; m_s3BucketArn.assign(value); }
130 
135  inline CreateLocationS3Request& WithS3BucketArn(const Aws::String& value) { SetS3BucketArn(value); return *this;}
136 
141  inline CreateLocationS3Request& WithS3BucketArn(Aws::String&& value) { SetS3BucketArn(std::move(value)); return *this;}
142 
147  inline CreateLocationS3Request& WithS3BucketArn(const char* value) { SetS3BucketArn(value); return *this;}
148 
149 
160  inline const S3StorageClass& GetS3StorageClass() const{ return m_s3StorageClass; }
161 
172  inline bool S3StorageClassHasBeenSet() const { return m_s3StorageClassHasBeenSet; }
173 
184  inline void SetS3StorageClass(const S3StorageClass& value) { m_s3StorageClassHasBeenSet = true; m_s3StorageClass = value; }
185 
196  inline void SetS3StorageClass(S3StorageClass&& value) { m_s3StorageClassHasBeenSet = true; m_s3StorageClass = std::move(value); }
197 
208  inline CreateLocationS3Request& WithS3StorageClass(const S3StorageClass& value) { SetS3StorageClass(value); return *this;}
209 
220  inline CreateLocationS3Request& WithS3StorageClass(S3StorageClass&& value) { SetS3StorageClass(std::move(value)); return *this;}
221 
222 
223 
224  inline const S3Config& GetS3Config() const{ return m_s3Config; }
225 
226 
227  inline bool S3ConfigHasBeenSet() const { return m_s3ConfigHasBeenSet; }
228 
229 
230  inline void SetS3Config(const S3Config& value) { m_s3ConfigHasBeenSet = true; m_s3Config = value; }
231 
232 
233  inline void SetS3Config(S3Config&& value) { m_s3ConfigHasBeenSet = true; m_s3Config = std::move(value); }
234 
235 
236  inline CreateLocationS3Request& WithS3Config(const S3Config& value) { SetS3Config(value); return *this;}
237 
238 
239  inline CreateLocationS3Request& WithS3Config(S3Config&& value) { SetS3Config(std::move(value)); return *this;}
240 
241 
248  inline const Aws::Vector<Aws::String>& GetAgentArns() const{ return m_agentArns; }
249 
256  inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
257 
264  inline void SetAgentArns(const Aws::Vector<Aws::String>& value) { m_agentArnsHasBeenSet = true; m_agentArns = value; }
265 
272  inline void SetAgentArns(Aws::Vector<Aws::String>&& value) { m_agentArnsHasBeenSet = true; m_agentArns = std::move(value); }
273 
280  inline CreateLocationS3Request& WithAgentArns(const Aws::Vector<Aws::String>& value) { SetAgentArns(value); return *this;}
281 
288  inline CreateLocationS3Request& WithAgentArns(Aws::Vector<Aws::String>&& value) { SetAgentArns(std::move(value)); return *this;}
289 
296  inline CreateLocationS3Request& AddAgentArns(const Aws::String& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
297 
304  inline CreateLocationS3Request& AddAgentArns(Aws::String&& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(std::move(value)); return *this; }
305 
312  inline CreateLocationS3Request& AddAgentArns(const char* value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
313 
314 
320  inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
321 
327  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
328 
334  inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
335 
341  inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
342 
348  inline CreateLocationS3Request& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
349 
355  inline CreateLocationS3Request& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
356 
362  inline CreateLocationS3Request& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
363 
369  inline CreateLocationS3Request& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
370 
371  private:
372 
373  Aws::String m_subdirectory;
374  bool m_subdirectoryHasBeenSet;
375 
376  Aws::String m_s3BucketArn;
377  bool m_s3BucketArnHasBeenSet;
378 
379  S3StorageClass m_s3StorageClass;
380  bool m_s3StorageClassHasBeenSet;
381 
382  S3Config m_s3Config;
383  bool m_s3ConfigHasBeenSet;
384 
385  Aws::Vector<Aws::String> m_agentArns;
386  bool m_agentArnsHasBeenSet;
387 
389  bool m_tagsHasBeenSet;
390  };
391 
392 } // namespace Model
393 } // namespace DataSync
394 } // namespace Aws
CreateLocationS3Request & WithS3BucketArn(Aws::String &&value)
CreateLocationS3Request & WithTags(Aws::Vector< TagListEntry > &&value)
CreateLocationS3Request & WithS3StorageClass(S3StorageClass &&value)
virtual const char * GetServiceRequestName() const override
CreateLocationS3Request & WithSubdirectory(const char *value)
const Aws::Vector< Aws::String > & GetAgentArns() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CreateLocationS3Request & AddTags(const TagListEntry &value)
CreateLocationS3Request & AddAgentArns(const Aws::String &value)
void SetAgentArns(const Aws::Vector< Aws::String > &value)
CreateLocationS3Request & WithAgentArns(Aws::Vector< Aws::String > &&value)
CreateLocationS3Request & WithS3BucketArn(const char *value)
CreateLocationS3Request & WithS3BucketArn(const Aws::String &value)
void SetTags(Aws::Vector< TagListEntry > &&value)
CreateLocationS3Request & WithSubdirectory(const Aws::String &value)
void SetAgentArns(Aws::Vector< Aws::String > &&value)
CreateLocationS3Request & WithS3StorageClass(const S3StorageClass &value)
CreateLocationS3Request & WithS3Config(S3Config &&value)
void SetTags(const Aws::Vector< TagListEntry > &value)
#define AWS_DATASYNC_API
CreateLocationS3Request & WithAgentArns(const Aws::Vector< Aws::String > &value)
const Aws::Vector< TagListEntry > & GetTags() const
CreateLocationS3Request & WithSubdirectory(Aws::String &&value)
void SetS3StorageClass(const S3StorageClass &value)
CreateLocationS3Request & WithTags(const Aws::Vector< TagListEntry > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateLocationS3Request & WithS3Config(const S3Config &value)
Definition: TagListEntry.h:34
CreateLocationS3Request & AddTags(TagListEntry &&value)
CreateLocationS3Request & AddAgentArns(const char *value)
CreateLocationS3Request & AddAgentArns(Aws::String &&value)