AWS SDK for C++  1.9.108
AWS SDK for C++
CreateDBSubnetGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
8 #include <aws/rds/RDSRequest.h>
11 #include <aws/rds/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace RDS
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateDBSubnetGroup"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
50  inline const Aws::String& GetDBSubnetGroupName() const{ return m_dBSubnetGroupName; }
51 
58  inline bool DBSubnetGroupNameHasBeenSet() const { return m_dBSubnetGroupNameHasBeenSet; }
59 
66  inline void SetDBSubnetGroupName(const Aws::String& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = value; }
67 
74  inline void SetDBSubnetGroupName(Aws::String&& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = std::move(value); }
75 
82  inline void SetDBSubnetGroupName(const char* value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName.assign(value); }
83 
90  inline CreateDBSubnetGroupRequest& WithDBSubnetGroupName(const Aws::String& value) { SetDBSubnetGroupName(value); return *this;}
91 
98  inline CreateDBSubnetGroupRequest& WithDBSubnetGroupName(Aws::String&& value) { SetDBSubnetGroupName(std::move(value)); return *this;}
99 
106  inline CreateDBSubnetGroupRequest& WithDBSubnetGroupName(const char* value) { SetDBSubnetGroupName(value); return *this;}
107 
108 
112  inline const Aws::String& GetDBSubnetGroupDescription() const{ return m_dBSubnetGroupDescription; }
113 
117  inline bool DBSubnetGroupDescriptionHasBeenSet() const { return m_dBSubnetGroupDescriptionHasBeenSet; }
118 
122  inline void SetDBSubnetGroupDescription(const Aws::String& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = value; }
123 
127  inline void SetDBSubnetGroupDescription(Aws::String&& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = std::move(value); }
128 
132  inline void SetDBSubnetGroupDescription(const char* value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription.assign(value); }
133 
137  inline CreateDBSubnetGroupRequest& WithDBSubnetGroupDescription(const Aws::String& value) { SetDBSubnetGroupDescription(value); return *this;}
138 
142  inline CreateDBSubnetGroupRequest& WithDBSubnetGroupDescription(Aws::String&& value) { SetDBSubnetGroupDescription(std::move(value)); return *this;}
143 
147  inline CreateDBSubnetGroupRequest& WithDBSubnetGroupDescription(const char* value) { SetDBSubnetGroupDescription(value); return *this;}
148 
149 
153  inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
154 
158  inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
159 
163  inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
164 
168  inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
169 
173  inline CreateDBSubnetGroupRequest& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
174 
178  inline CreateDBSubnetGroupRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
179 
183  inline CreateDBSubnetGroupRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
184 
188  inline CreateDBSubnetGroupRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
189 
193  inline CreateDBSubnetGroupRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
194 
195 
199  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
200 
204  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
205 
209  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
210 
214  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
215 
219  inline CreateDBSubnetGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
220 
224  inline CreateDBSubnetGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
225 
229  inline CreateDBSubnetGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
230 
234  inline CreateDBSubnetGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
235 
236  private:
237 
238  Aws::String m_dBSubnetGroupName;
239  bool m_dBSubnetGroupNameHasBeenSet;
240 
241  Aws::String m_dBSubnetGroupDescription;
242  bool m_dBSubnetGroupDescriptionHasBeenSet;
243 
244  Aws::Vector<Aws::String> m_subnetIds;
245  bool m_subnetIdsHasBeenSet;
246 
247  Aws::Vector<Tag> m_tags;
248  bool m_tagsHasBeenSet;
249  };
250 
251 } // namespace Model
252 } // namespace RDS
253 } // namespace Aws
Aws::RDS::Model::Tag
Definition: Tag.h:33
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::CreateDBSubnetGroupRequest::AddSubnetIds
CreateDBSubnetGroupRequest & AddSubnetIds(Aws::String &&value)
Definition: CreateDBSubnetGroupRequest.h:188
Aws::RDS::Model::CreateDBSubnetGroupRequest::WithDBSubnetGroupDescription
CreateDBSubnetGroupRequest & WithDBSubnetGroupDescription(const char *value)
Definition: CreateDBSubnetGroupRequest.h:147
Aws::RDS::Model::CreateDBSubnetGroupRequest::DBSubnetGroupNameHasBeenSet
bool DBSubnetGroupNameHasBeenSet() const
Definition: CreateDBSubnetGroupRequest.h:58
Aws::RDS::Model::CreateDBSubnetGroupRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateDBSubnetGroupRequest.h:214
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::CreateDBSubnetGroupRequest::SetDBSubnetGroupName
void SetDBSubnetGroupName(const char *value)
Definition: CreateDBSubnetGroupRequest.h:82
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::RDS::Model::CreateDBSubnetGroupRequest::WithDBSubnetGroupDescription
CreateDBSubnetGroupRequest & WithDBSubnetGroupDescription(const Aws::String &value)
Definition: CreateDBSubnetGroupRequest.h:137
Aws::RDS::Model::CreateDBSubnetGroupRequest::GetDBSubnetGroupName
const Aws::String & GetDBSubnetGroupName() const
Definition: CreateDBSubnetGroupRequest.h:50
Aws::RDS::Model::CreateDBSubnetGroupRequest::WithSubnetIds
CreateDBSubnetGroupRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: CreateDBSubnetGroupRequest.h:173
Aws::RDS::Model::CreateDBSubnetGroupRequest::SetDBSubnetGroupName
void SetDBSubnetGroupName(Aws::String &&value)
Definition: CreateDBSubnetGroupRequest.h:74
RDS_EXPORTS.h
Aws::RDS::Model::CreateDBSubnetGroupRequest::WithTags
CreateDBSubnetGroupRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateDBSubnetGroupRequest.h:224
Aws::RDS::Model::CreateDBSubnetGroupRequest::WithDBSubnetGroupDescription
CreateDBSubnetGroupRequest & WithDBSubnetGroupDescription(Aws::String &&value)
Definition: CreateDBSubnetGroupRequest.h:142
Aws::RDS::Model::CreateDBSubnetGroupRequest::AddTags
CreateDBSubnetGroupRequest & AddTags(Tag &&value)
Definition: CreateDBSubnetGroupRequest.h:234
Aws::RDS::Model::CreateDBSubnetGroupRequest::GetSubnetIds
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition: CreateDBSubnetGroupRequest.h:153
AWSString.h
Aws::RDS::Model::CreateDBSubnetGroupRequest::SetSubnetIds
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: CreateDBSubnetGroupRequest.h:163
Aws::RDS::Model::CreateDBSubnetGroupRequest::CreateDBSubnetGroupRequest
CreateDBSubnetGroupRequest()
Aws::RDS::Model::CreateDBSubnetGroupRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateDBSubnetGroupRequest.h:204
Aws::RDS::Model::CreateDBSubnetGroupRequest::SetDBSubnetGroupDescription
void SetDBSubnetGroupDescription(const char *value)
Definition: CreateDBSubnetGroupRequest.h:132
Aws::RDS::Model::CreateDBSubnetGroupRequest::SubnetIdsHasBeenSet
bool SubnetIdsHasBeenSet() const
Definition: CreateDBSubnetGroupRequest.h:158
Aws::RDS::Model::CreateDBSubnetGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RDS::Model::CreateDBSubnetGroupRequest::WithDBSubnetGroupName
CreateDBSubnetGroupRequest & WithDBSubnetGroupName(const Aws::String &value)
Definition: CreateDBSubnetGroupRequest.h:90
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::CreateDBSubnetGroupRequest::WithTags
CreateDBSubnetGroupRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateDBSubnetGroupRequest.h:219
Aws::RDS::Model::CreateDBSubnetGroupRequest::AddTags
CreateDBSubnetGroupRequest & AddTags(const Tag &value)
Definition: CreateDBSubnetGroupRequest.h:229
Aws::RDS::Model::CreateDBSubnetGroupRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateDBSubnetGroupRequest.h:209
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::CreateDBSubnetGroupRequest::AddSubnetIds
CreateDBSubnetGroupRequest & AddSubnetIds(const Aws::String &value)
Definition: CreateDBSubnetGroupRequest.h:183
Aws::RDS::Model::CreateDBSubnetGroupRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::RDS::Model::CreateDBSubnetGroupRequest::DBSubnetGroupDescriptionHasBeenSet
bool DBSubnetGroupDescriptionHasBeenSet() const
Definition: CreateDBSubnetGroupRequest.h:117
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::CreateDBSubnetGroupRequest::AddSubnetIds
CreateDBSubnetGroupRequest & AddSubnetIds(const char *value)
Definition: CreateDBSubnetGroupRequest.h:193
Tag.h
RDSRequest.h
Aws::RDS::Model::CreateDBSubnetGroupRequest::SetDBSubnetGroupName
void SetDBSubnetGroupName(const Aws::String &value)
Definition: CreateDBSubnetGroupRequest.h:66
Aws::RDS::Model::CreateDBSubnetGroupRequest::WithSubnetIds
CreateDBSubnetGroupRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: CreateDBSubnetGroupRequest.h:178
Aws::RDS::Model::CreateDBSubnetGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDBSubnetGroupRequest.h:35
Aws::RDS::Model::CreateDBSubnetGroupRequest::SetSubnetIds
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: CreateDBSubnetGroupRequest.h:168
Aws::RDS::Model::CreateDBSubnetGroupRequest::SetDBSubnetGroupDescription
void SetDBSubnetGroupDescription(const Aws::String &value)
Definition: CreateDBSubnetGroupRequest.h:122
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::CreateDBSubnetGroupRequest
Definition: CreateDBSubnetGroupRequest.h:27
Aws::RDS::Model::CreateDBSubnetGroupRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateDBSubnetGroupRequest.h:199
Aws::RDS::Model::CreateDBSubnetGroupRequest::WithDBSubnetGroupName
CreateDBSubnetGroupRequest & WithDBSubnetGroupName(const char *value)
Definition: CreateDBSubnetGroupRequest.h:106
Aws::RDS::Model::CreateDBSubnetGroupRequest::GetDBSubnetGroupDescription
const Aws::String & GetDBSubnetGroupDescription() const
Definition: CreateDBSubnetGroupRequest.h:112
Aws::RDS::Model::CreateDBSubnetGroupRequest::WithDBSubnetGroupName
CreateDBSubnetGroupRequest & WithDBSubnetGroupName(Aws::String &&value)
Definition: CreateDBSubnetGroupRequest.h:98
Aws::RDS::Model::CreateDBSubnetGroupRequest::SetDBSubnetGroupDescription
void SetDBSubnetGroupDescription(Aws::String &&value)
Definition: CreateDBSubnetGroupRequest.h:127