AWS SDK for C++  1.9.40
AWS SDK for C++
CreateDBSubnetGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/neptune/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Neptune
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateDBSubnetGroup"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
47  inline const Aws::String& GetDBSubnetGroupName() const{ return m_dBSubnetGroupName; }
48 
55  inline bool DBSubnetGroupNameHasBeenSet() const { return m_dBSubnetGroupNameHasBeenSet; }
56 
63  inline void SetDBSubnetGroupName(const Aws::String& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = value; }
64 
71  inline void SetDBSubnetGroupName(Aws::String&& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = std::move(value); }
72 
79  inline void SetDBSubnetGroupName(const char* value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName.assign(value); }
80 
87  inline CreateDBSubnetGroupRequest& WithDBSubnetGroupName(const Aws::String& value) { SetDBSubnetGroupName(value); return *this;}
88 
95  inline CreateDBSubnetGroupRequest& WithDBSubnetGroupName(Aws::String&& value) { SetDBSubnetGroupName(std::move(value)); return *this;}
96 
103  inline CreateDBSubnetGroupRequest& WithDBSubnetGroupName(const char* value) { SetDBSubnetGroupName(value); return *this;}
104 
105 
109  inline const Aws::String& GetDBSubnetGroupDescription() const{ return m_dBSubnetGroupDescription; }
110 
114  inline bool DBSubnetGroupDescriptionHasBeenSet() const { return m_dBSubnetGroupDescriptionHasBeenSet; }
115 
119  inline void SetDBSubnetGroupDescription(const Aws::String& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = value; }
120 
124  inline void SetDBSubnetGroupDescription(Aws::String&& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = std::move(value); }
125 
129  inline void SetDBSubnetGroupDescription(const char* value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription.assign(value); }
130 
134  inline CreateDBSubnetGroupRequest& WithDBSubnetGroupDescription(const Aws::String& value) { SetDBSubnetGroupDescription(value); return *this;}
135 
139  inline CreateDBSubnetGroupRequest& WithDBSubnetGroupDescription(Aws::String&& value) { SetDBSubnetGroupDescription(std::move(value)); return *this;}
140 
144  inline CreateDBSubnetGroupRequest& WithDBSubnetGroupDescription(const char* value) { SetDBSubnetGroupDescription(value); return *this;}
145 
146 
150  inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
151 
155  inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
156 
160  inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
161 
165  inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
166 
170  inline CreateDBSubnetGroupRequest& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
171 
175  inline CreateDBSubnetGroupRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
176 
180  inline CreateDBSubnetGroupRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
181 
185  inline CreateDBSubnetGroupRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
186 
190  inline CreateDBSubnetGroupRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
191 
192 
196  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
197 
201  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
202 
206  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
207 
211  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
212 
216  inline CreateDBSubnetGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
217 
221  inline CreateDBSubnetGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
222 
226  inline CreateDBSubnetGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
227 
231  inline CreateDBSubnetGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
232 
233  private:
234 
235  Aws::String m_dBSubnetGroupName;
236  bool m_dBSubnetGroupNameHasBeenSet;
237 
238  Aws::String m_dBSubnetGroupDescription;
239  bool m_dBSubnetGroupDescriptionHasBeenSet;
240 
241  Aws::Vector<Aws::String> m_subnetIds;
242  bool m_subnetIdsHasBeenSet;
243 
244  Aws::Vector<Tag> m_tags;
245  bool m_tagsHasBeenSet;
246  };
247 
248 } // namespace Model
249 } // namespace Neptune
250 } // namespace Aws
Aws::Neptune::Model::CreateDBSubnetGroupRequest::AddSubnetIds
CreateDBSubnetGroupRequest & AddSubnetIds(Aws::String &&value)
Definition: CreateDBSubnetGroupRequest.h:185
Aws::Neptune::Model::CreateDBSubnetGroupRequest::DBSubnetGroupNameHasBeenSet
bool DBSubnetGroupNameHasBeenSet() const
Definition: CreateDBSubnetGroupRequest.h:55
Aws::Http::URI
Definition: URI.h:32
Neptune_EXPORTS.h
Aws::Neptune::Model::CreateDBSubnetGroupRequest::DBSubnetGroupDescriptionHasBeenSet
bool DBSubnetGroupDescriptionHasBeenSet() const
Definition: CreateDBSubnetGroupRequest.h:114
Aws::Neptune::Model::CreateDBSubnetGroupRequest::SetDBSubnetGroupDescription
void SetDBSubnetGroupDescription(const char *value)
Definition: CreateDBSubnetGroupRequest.h:129
Aws::Neptune::Model::CreateDBSubnetGroupRequest::WithDBSubnetGroupName
CreateDBSubnetGroupRequest & WithDBSubnetGroupName(const char *value)
Definition: CreateDBSubnetGroupRequest.h:103
Aws::Neptune::Model::CreateDBSubnetGroupRequest::GetSubnetIds
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition: CreateDBSubnetGroupRequest.h:150
Aws::Neptune::Model::CreateDBSubnetGroupRequest::AddTags
CreateDBSubnetGroupRequest & AddTags(Tag &&value)
Definition: CreateDBSubnetGroupRequest.h:231
AWS_NEPTUNE_API
#define AWS_NEPTUNE_API
Definition: Neptune_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Neptune::Model::CreateDBSubnetGroupRequest::SetSubnetIds
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: CreateDBSubnetGroupRequest.h:160
Aws::Neptune::Model::CreateDBSubnetGroupRequest::SetDBSubnetGroupName
void SetDBSubnetGroupName(const Aws::String &value)
Definition: CreateDBSubnetGroupRequest.h:63
Aws::Neptune::Model::CreateDBSubnetGroupRequest::WithDBSubnetGroupName
CreateDBSubnetGroupRequest & WithDBSubnetGroupName(Aws::String &&value)
Definition: CreateDBSubnetGroupRequest.h:95
AWSVector.h
Aws::Neptune::Model::CreateDBSubnetGroupRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateDBSubnetGroupRequest.h:201
Aws::Neptune::Model::CreateDBSubnetGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDBSubnetGroupRequest.h:32
Aws::Neptune::NeptuneRequest
Definition: NeptuneRequest.h:17
Aws::Neptune::Model::CreateDBSubnetGroupRequest::WithSubnetIds
CreateDBSubnetGroupRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: CreateDBSubnetGroupRequest.h:175
Aws::Neptune::Model::CreateDBSubnetGroupRequest::GetDBSubnetGroupName
const Aws::String & GetDBSubnetGroupName() const
Definition: CreateDBSubnetGroupRequest.h:47
Tag.h
Aws::Neptune::Model::CreateDBSubnetGroupRequest::AddTags
CreateDBSubnetGroupRequest & AddTags(const Tag &value)
Definition: CreateDBSubnetGroupRequest.h:226
Aws::Neptune::Model::CreateDBSubnetGroupRequest::CreateDBSubnetGroupRequest
CreateDBSubnetGroupRequest()
Aws::Neptune::Model::CreateDBSubnetGroupRequest::GetDBSubnetGroupDescription
const Aws::String & GetDBSubnetGroupDescription() const
Definition: CreateDBSubnetGroupRequest.h:109
Aws::Neptune::Model::CreateDBSubnetGroupRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateDBSubnetGroupRequest.h:196
Aws::Neptune::Model::CreateDBSubnetGroupRequest::SubnetIdsHasBeenSet
bool SubnetIdsHasBeenSet() const
Definition: CreateDBSubnetGroupRequest.h:155
Aws::Neptune::Model::Tag
Definition: Tag.h:33
AWSString.h
Aws::Neptune::Model::CreateDBSubnetGroupRequest::SetDBSubnetGroupName
void SetDBSubnetGroupName(const char *value)
Definition: CreateDBSubnetGroupRequest.h:79
Aws::Neptune::Model::CreateDBSubnetGroupRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateDBSubnetGroupRequest.h:206
Aws::Neptune::Model::CreateDBSubnetGroupRequest::SetDBSubnetGroupDescription
void SetDBSubnetGroupDescription(const Aws::String &value)
Definition: CreateDBSubnetGroupRequest.h:119
Aws::Neptune::Model::CreateDBSubnetGroupRequest::SetSubnetIds
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: CreateDBSubnetGroupRequest.h:165
Aws::Neptune::Model::CreateDBSubnetGroupRequest::WithTags
CreateDBSubnetGroupRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateDBSubnetGroupRequest.h:221
Aws::Neptune::Model::CreateDBSubnetGroupRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Neptune::Model::CreateDBSubnetGroupRequest::WithSubnetIds
CreateDBSubnetGroupRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: CreateDBSubnetGroupRequest.h:170
Aws::Neptune::Model::CreateDBSubnetGroupRequest
Definition: CreateDBSubnetGroupRequest.h:24
Aws::Neptune::Model::CreateDBSubnetGroupRequest::WithDBSubnetGroupDescription
CreateDBSubnetGroupRequest & WithDBSubnetGroupDescription(const char *value)
Definition: CreateDBSubnetGroupRequest.h:144
NeptuneRequest.h
Aws::Neptune::Model::CreateDBSubnetGroupRequest::WithDBSubnetGroupName
CreateDBSubnetGroupRequest & WithDBSubnetGroupName(const Aws::String &value)
Definition: CreateDBSubnetGroupRequest.h:87
Aws::Neptune::Model::CreateDBSubnetGroupRequest::SetDBSubnetGroupDescription
void SetDBSubnetGroupDescription(Aws::String &&value)
Definition: CreateDBSubnetGroupRequest.h:124
Aws
Definition: AccessManagementClient.h:15
Aws::Neptune::Model::CreateDBSubnetGroupRequest::AddSubnetIds
CreateDBSubnetGroupRequest & AddSubnetIds(const char *value)
Definition: CreateDBSubnetGroupRequest.h:190
Aws::Neptune::Model::CreateDBSubnetGroupRequest::SetDBSubnetGroupName
void SetDBSubnetGroupName(Aws::String &&value)
Definition: CreateDBSubnetGroupRequest.h:71
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Neptune::Model::CreateDBSubnetGroupRequest::WithDBSubnetGroupDescription
CreateDBSubnetGroupRequest & WithDBSubnetGroupDescription(const Aws::String &value)
Definition: CreateDBSubnetGroupRequest.h:134
Aws::Neptune::Model::CreateDBSubnetGroupRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateDBSubnetGroupRequest.h:211
Aws::Neptune::Model::CreateDBSubnetGroupRequest::WithTags
CreateDBSubnetGroupRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateDBSubnetGroupRequest.h:216
Aws::Neptune::Model::CreateDBSubnetGroupRequest::WithDBSubnetGroupDescription
CreateDBSubnetGroupRequest & WithDBSubnetGroupDescription(Aws::String &&value)
Definition: CreateDBSubnetGroupRequest.h:139
Aws::Neptune::Model::CreateDBSubnetGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Neptune::Model::CreateDBSubnetGroupRequest::AddSubnetIds
CreateDBSubnetGroupRequest & AddSubnetIds(const Aws::String &value)
Definition: CreateDBSubnetGroupRequest.h:180