AWS SDK for C++  1.9.104
AWS SDK for C++
CreateDBSecurityGroupRequest.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 "CreateDBSecurityGroup"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
52  inline const Aws::String& GetDBSecurityGroupName() const{ return m_dBSecurityGroupName; }
53 
62  inline bool DBSecurityGroupNameHasBeenSet() const { return m_dBSecurityGroupNameHasBeenSet; }
63 
72  inline void SetDBSecurityGroupName(const Aws::String& value) { m_dBSecurityGroupNameHasBeenSet = true; m_dBSecurityGroupName = value; }
73 
82  inline void SetDBSecurityGroupName(Aws::String&& value) { m_dBSecurityGroupNameHasBeenSet = true; m_dBSecurityGroupName = std::move(value); }
83 
92  inline void SetDBSecurityGroupName(const char* value) { m_dBSecurityGroupNameHasBeenSet = true; m_dBSecurityGroupName.assign(value); }
93 
102  inline CreateDBSecurityGroupRequest& WithDBSecurityGroupName(const Aws::String& value) { SetDBSecurityGroupName(value); return *this;}
103 
112  inline CreateDBSecurityGroupRequest& WithDBSecurityGroupName(Aws::String&& value) { SetDBSecurityGroupName(std::move(value)); return *this;}
113 
122  inline CreateDBSecurityGroupRequest& WithDBSecurityGroupName(const char* value) { SetDBSecurityGroupName(value); return *this;}
123 
124 
128  inline const Aws::String& GetDBSecurityGroupDescription() const{ return m_dBSecurityGroupDescription; }
129 
133  inline bool DBSecurityGroupDescriptionHasBeenSet() const { return m_dBSecurityGroupDescriptionHasBeenSet; }
134 
138  inline void SetDBSecurityGroupDescription(const Aws::String& value) { m_dBSecurityGroupDescriptionHasBeenSet = true; m_dBSecurityGroupDescription = value; }
139 
143  inline void SetDBSecurityGroupDescription(Aws::String&& value) { m_dBSecurityGroupDescriptionHasBeenSet = true; m_dBSecurityGroupDescription = std::move(value); }
144 
148  inline void SetDBSecurityGroupDescription(const char* value) { m_dBSecurityGroupDescriptionHasBeenSet = true; m_dBSecurityGroupDescription.assign(value); }
149 
153  inline CreateDBSecurityGroupRequest& WithDBSecurityGroupDescription(const Aws::String& value) { SetDBSecurityGroupDescription(value); return *this;}
154 
158  inline CreateDBSecurityGroupRequest& WithDBSecurityGroupDescription(Aws::String&& value) { SetDBSecurityGroupDescription(std::move(value)); return *this;}
159 
163  inline CreateDBSecurityGroupRequest& WithDBSecurityGroupDescription(const char* value) { SetDBSecurityGroupDescription(value); return *this;}
164 
165 
169  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
170 
174  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
175 
179  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
180 
184  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
185 
189  inline CreateDBSecurityGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
190 
194  inline CreateDBSecurityGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
195 
199  inline CreateDBSecurityGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
200 
204  inline CreateDBSecurityGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
205 
206  private:
207 
208  Aws::String m_dBSecurityGroupName;
209  bool m_dBSecurityGroupNameHasBeenSet;
210 
211  Aws::String m_dBSecurityGroupDescription;
212  bool m_dBSecurityGroupDescriptionHasBeenSet;
213 
214  Aws::Vector<Tag> m_tags;
215  bool m_tagsHasBeenSet;
216  };
217 
218 } // namespace Model
219 } // namespace RDS
220 } // namespace Aws
Aws::RDS::Model::Tag
Definition: Tag.h:33
Aws::RDS::Model::CreateDBSecurityGroupRequest::GetDBSecurityGroupName
const Aws::String & GetDBSecurityGroupName() const
Definition: CreateDBSecurityGroupRequest.h:52
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::CreateDBSecurityGroupRequest::AddTags
CreateDBSecurityGroupRequest & AddTags(const Tag &value)
Definition: CreateDBSecurityGroupRequest.h:199
Aws::RDS::Model::CreateDBSecurityGroupRequest::AddTags
CreateDBSecurityGroupRequest & AddTags(Tag &&value)
Definition: CreateDBSecurityGroupRequest.h:204
Aws::RDS::Model::CreateDBSecurityGroupRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateDBSecurityGroupRequest.h:184
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::CreateDBSecurityGroupRequest::SetDBSecurityGroupName
void SetDBSecurityGroupName(const char *value)
Definition: CreateDBSecurityGroupRequest.h:92
Aws::RDS::Model::CreateDBSecurityGroupRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateDBSecurityGroupRequest.h:179
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RDS::Model::CreateDBSecurityGroupRequest::SetDBSecurityGroupDescription
void SetDBSecurityGroupDescription(const char *value)
Definition: CreateDBSecurityGroupRequest.h:148
Aws::RDS::Model::CreateDBSecurityGroupRequest::WithDBSecurityGroupDescription
CreateDBSecurityGroupRequest & WithDBSecurityGroupDescription(Aws::String &&value)
Definition: CreateDBSecurityGroupRequest.h:158
AWSVector.h
Aws::RDS::Model::CreateDBSecurityGroupRequest::WithDBSecurityGroupDescription
CreateDBSecurityGroupRequest & WithDBSecurityGroupDescription(const Aws::String &value)
Definition: CreateDBSecurityGroupRequest.h:153
Aws::RDS::Model::CreateDBSecurityGroupRequest::WithDBSecurityGroupName
CreateDBSecurityGroupRequest & WithDBSecurityGroupName(const Aws::String &value)
Definition: CreateDBSecurityGroupRequest.h:102
RDS_EXPORTS.h
Aws::RDS::Model::CreateDBSecurityGroupRequest::DBSecurityGroupNameHasBeenSet
bool DBSecurityGroupNameHasBeenSet() const
Definition: CreateDBSecurityGroupRequest.h:62
Aws::RDS::Model::CreateDBSecurityGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDBSecurityGroupRequest.h:35
Aws::RDS::Model::CreateDBSecurityGroupRequest
Definition: CreateDBSecurityGroupRequest.h:27
Aws::RDS::Model::CreateDBSecurityGroupRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateDBSecurityGroupRequest.h:169
Aws::RDS::Model::CreateDBSecurityGroupRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWSString.h
Aws::RDS::Model::CreateDBSecurityGroupRequest::SetDBSecurityGroupName
void SetDBSecurityGroupName(const Aws::String &value)
Definition: CreateDBSecurityGroupRequest.h:72
Aws::RDS::Model::CreateDBSecurityGroupRequest::WithDBSecurityGroupDescription
CreateDBSecurityGroupRequest & WithDBSecurityGroupDescription(const char *value)
Definition: CreateDBSecurityGroupRequest.h:163
Aws::RDS::Model::CreateDBSecurityGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RDS::Model::CreateDBSecurityGroupRequest::WithDBSecurityGroupName
CreateDBSecurityGroupRequest & WithDBSecurityGroupName(Aws::String &&value)
Definition: CreateDBSecurityGroupRequest.h:112
Aws::RDS::Model::CreateDBSecurityGroupRequest::WithTags
CreateDBSecurityGroupRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateDBSecurityGroupRequest.h:189
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::CreateDBSecurityGroupRequest::WithDBSecurityGroupName
CreateDBSecurityGroupRequest & WithDBSecurityGroupName(const char *value)
Definition: CreateDBSecurityGroupRequest.h:122
Aws::RDS::Model::CreateDBSecurityGroupRequest::GetDBSecurityGroupDescription
const Aws::String & GetDBSecurityGroupDescription() const
Definition: CreateDBSecurityGroupRequest.h:128
Aws::RDS::Model::CreateDBSecurityGroupRequest::SetDBSecurityGroupDescription
void SetDBSecurityGroupDescription(const Aws::String &value)
Definition: CreateDBSecurityGroupRequest.h:138
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::CreateDBSecurityGroupRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateDBSecurityGroupRequest.h:174
Aws::RDS::Model::CreateDBSecurityGroupRequest::DBSecurityGroupDescriptionHasBeenSet
bool DBSecurityGroupDescriptionHasBeenSet() const
Definition: CreateDBSecurityGroupRequest.h:133
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Tag.h
RDSRequest.h
Aws::RDS::Model::CreateDBSecurityGroupRequest::CreateDBSecurityGroupRequest
CreateDBSecurityGroupRequest()
Aws::RDS::Model::CreateDBSecurityGroupRequest::SetDBSecurityGroupName
void SetDBSecurityGroupName(Aws::String &&value)
Definition: CreateDBSecurityGroupRequest.h:82
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::CreateDBSecurityGroupRequest::SetDBSecurityGroupDescription
void SetDBSecurityGroupDescription(Aws::String &&value)
Definition: CreateDBSecurityGroupRequest.h:143
Aws::RDS::Model::CreateDBSecurityGroupRequest::WithTags
CreateDBSecurityGroupRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateDBSecurityGroupRequest.h:194