AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLocationS3Request.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/datasync/DataSyncRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datasync/model/S3StorageClass.h>
11#include <aws/datasync/model/S3Config.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/datasync/model/TagListEntry.h>
14#include <utility>
15
16namespace Aws
17{
18namespace DataSync
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_DATASYNC_API CreateLocationS3Request();
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_DATASYNC_API Aws::String SerializePayload() const override;
40
42
43
45
55 inline const Aws::String& GetSubdirectory() const{ return m_subdirectory; }
56 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
57 inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; }
58 inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); }
59 inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); }
60 inline CreateLocationS3Request& WithSubdirectory(const Aws::String& value) { SetSubdirectory(value); return *this;}
61 inline CreateLocationS3Request& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;}
62 inline CreateLocationS3Request& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;}
64
66
76 inline const Aws::String& GetS3BucketArn() const{ return m_s3BucketArn; }
77 inline bool S3BucketArnHasBeenSet() const { return m_s3BucketArnHasBeenSet; }
78 inline void SetS3BucketArn(const Aws::String& value) { m_s3BucketArnHasBeenSet = true; m_s3BucketArn = value; }
79 inline void SetS3BucketArn(Aws::String&& value) { m_s3BucketArnHasBeenSet = true; m_s3BucketArn = std::move(value); }
80 inline void SetS3BucketArn(const char* value) { m_s3BucketArnHasBeenSet = true; m_s3BucketArn.assign(value); }
81 inline CreateLocationS3Request& WithS3BucketArn(const Aws::String& value) { SetS3BucketArn(value); return *this;}
82 inline CreateLocationS3Request& WithS3BucketArn(Aws::String&& value) { SetS3BucketArn(std::move(value)); return *this;}
83 inline CreateLocationS3Request& WithS3BucketArn(const char* value) { SetS3BucketArn(value); return *this;}
85
87
96 inline const S3StorageClass& GetS3StorageClass() const{ return m_s3StorageClass; }
97 inline bool S3StorageClassHasBeenSet() const { return m_s3StorageClassHasBeenSet; }
98 inline void SetS3StorageClass(const S3StorageClass& value) { m_s3StorageClassHasBeenSet = true; m_s3StorageClass = value; }
99 inline void SetS3StorageClass(S3StorageClass&& value) { m_s3StorageClassHasBeenSet = true; m_s3StorageClass = std::move(value); }
100 inline CreateLocationS3Request& WithS3StorageClass(const S3StorageClass& value) { SetS3StorageClass(value); return *this;}
101 inline CreateLocationS3Request& WithS3StorageClass(S3StorageClass&& value) { SetS3StorageClass(std::move(value)); return *this;}
103
105
106 inline const S3Config& GetS3Config() const{ return m_s3Config; }
107 inline bool S3ConfigHasBeenSet() const { return m_s3ConfigHasBeenSet; }
108 inline void SetS3Config(const S3Config& value) { m_s3ConfigHasBeenSet = true; m_s3Config = value; }
109 inline void SetS3Config(S3Config&& value) { m_s3ConfigHasBeenSet = true; m_s3Config = std::move(value); }
110 inline CreateLocationS3Request& WithS3Config(const S3Config& value) { SetS3Config(value); return *this;}
111 inline CreateLocationS3Request& WithS3Config(S3Config&& value) { SetS3Config(std::move(value)); return *this;}
113
115
121 inline const Aws::Vector<Aws::String>& GetAgentArns() const{ return m_agentArns; }
122 inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
123 inline void SetAgentArns(const Aws::Vector<Aws::String>& value) { m_agentArnsHasBeenSet = true; m_agentArns = value; }
124 inline void SetAgentArns(Aws::Vector<Aws::String>&& value) { m_agentArnsHasBeenSet = true; m_agentArns = std::move(value); }
125 inline CreateLocationS3Request& WithAgentArns(const Aws::Vector<Aws::String>& value) { SetAgentArns(value); return *this;}
126 inline CreateLocationS3Request& WithAgentArns(Aws::Vector<Aws::String>&& value) { SetAgentArns(std::move(value)); return *this;}
127 inline CreateLocationS3Request& AddAgentArns(const Aws::String& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
128 inline CreateLocationS3Request& AddAgentArns(Aws::String&& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(std::move(value)); return *this; }
129 inline CreateLocationS3Request& AddAgentArns(const char* value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
131
133
138 inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
139 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
140 inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
141 inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
142 inline CreateLocationS3Request& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
143 inline CreateLocationS3Request& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
144 inline CreateLocationS3Request& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
145 inline CreateLocationS3Request& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
147 private:
148
149 Aws::String m_subdirectory;
150 bool m_subdirectoryHasBeenSet = false;
151
152 Aws::String m_s3BucketArn;
153 bool m_s3BucketArnHasBeenSet = false;
154
155 S3StorageClass m_s3StorageClass;
156 bool m_s3StorageClassHasBeenSet = false;
157
158 S3Config m_s3Config;
159 bool m_s3ConfigHasBeenSet = false;
160
161 Aws::Vector<Aws::String> m_agentArns;
162 bool m_agentArnsHasBeenSet = false;
163
165 bool m_tagsHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace DataSync
170} // namespace Aws
CreateLocationS3Request & WithS3BucketArn(Aws::String &&value)
void SetTags(const Aws::Vector< TagListEntry > &value)
void SetS3StorageClass(const S3StorageClass &value)
CreateLocationS3Request & WithS3Config(const S3Config &value)
CreateLocationS3Request & WithAgentArns(const Aws::Vector< Aws::String > &value)
void SetTags(Aws::Vector< TagListEntry > &&value)
const Aws::Vector< TagListEntry > & GetTags() const
CreateLocationS3Request & WithSubdirectory(const Aws::String &value)
CreateLocationS3Request & AddAgentArns(const char *value)
CreateLocationS3Request & WithS3BucketArn(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateLocationS3Request & WithTags(const Aws::Vector< TagListEntry > &value)
CreateLocationS3Request & AddAgentArns(Aws::String &&value)
CreateLocationS3Request & WithSubdirectory(const char *value)
CreateLocationS3Request & WithTags(Aws::Vector< TagListEntry > &&value)
void SetAgentArns(Aws::Vector< Aws::String > &&value)
CreateLocationS3Request & AddTags(const TagListEntry &value)
void SetAgentArns(const Aws::Vector< Aws::String > &value)
CreateLocationS3Request & WithSubdirectory(Aws::String &&value)
const Aws::Vector< Aws::String > & GetAgentArns() const
CreateLocationS3Request & WithAgentArns(Aws::Vector< Aws::String > &&value)
CreateLocationS3Request & WithS3StorageClass(S3StorageClass &&value)
CreateLocationS3Request & WithS3BucketArn(const char *value)
CreateLocationS3Request & WithS3StorageClass(const S3StorageClass &value)
CreateLocationS3Request & AddAgentArns(const Aws::String &value)
CreateLocationS3Request & AddTags(TagListEntry &&value)
CreateLocationS3Request & WithS3Config(S3Config &&value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector