AWS SDK for C++  1.9.104
AWS SDK for C++
CreateClusterSecurityGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/redshift/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Redshift
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 "CreateClusterSecurityGroup"; }
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& GetClusterSecurityGroupName() const{ return m_clusterSecurityGroupName; }
53 
62  inline bool ClusterSecurityGroupNameHasBeenSet() const { return m_clusterSecurityGroupNameHasBeenSet; }
63 
72  inline void SetClusterSecurityGroupName(const Aws::String& value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName = value; }
73 
82  inline void SetClusterSecurityGroupName(Aws::String&& value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName = std::move(value); }
83 
92  inline void SetClusterSecurityGroupName(const char* value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName.assign(value); }
93 
102  inline CreateClusterSecurityGroupRequest& WithClusterSecurityGroupName(const Aws::String& value) { SetClusterSecurityGroupName(value); return *this;}
103 
112  inline CreateClusterSecurityGroupRequest& WithClusterSecurityGroupName(Aws::String&& value) { SetClusterSecurityGroupName(std::move(value)); return *this;}
113 
122  inline CreateClusterSecurityGroupRequest& WithClusterSecurityGroupName(const char* value) { SetClusterSecurityGroupName(value); return *this;}
123 
124 
128  inline const Aws::String& GetDescription() const{ return m_description; }
129 
133  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
134 
138  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
139 
143  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
144 
148  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
149 
153  inline CreateClusterSecurityGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
154 
158  inline CreateClusterSecurityGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
159 
163  inline CreateClusterSecurityGroupRequest& WithDescription(const char* value) { SetDescription(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 CreateClusterSecurityGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
190 
194  inline CreateClusterSecurityGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
195 
199  inline CreateClusterSecurityGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
200 
204  inline CreateClusterSecurityGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
205 
206  private:
207 
208  Aws::String m_clusterSecurityGroupName;
209  bool m_clusterSecurityGroupNameHasBeenSet;
210 
211  Aws::String m_description;
212  bool m_descriptionHasBeenSet;
213 
214  Aws::Vector<Tag> m_tags;
215  bool m_tagsHasBeenSet;
216  };
217 
218 } // namespace Model
219 } // namespace Redshift
220 } // namespace Aws
Aws::Redshift::Model::Tag
Definition: Tag.h:33
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::ClusterSecurityGroupNameHasBeenSet
bool ClusterSecurityGroupNameHasBeenSet() const
Definition: CreateClusterSecurityGroupRequest.h:62
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::WithTags
CreateClusterSecurityGroupRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateClusterSecurityGroupRequest.h:189
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::WithDescription
CreateClusterSecurityGroupRequest & WithDescription(Aws::String &&value)
Definition: CreateClusterSecurityGroupRequest.h:158
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateClusterSecurityGroupRequest.h:174
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::WithDescription
CreateClusterSecurityGroupRequest & WithDescription(const char *value)
Definition: CreateClusterSecurityGroupRequest.h:163
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::SetClusterSecurityGroupName
void SetClusterSecurityGroupName(const char *value)
Definition: CreateClusterSecurityGroupRequest.h:92
Tag.h
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateClusterSecurityGroupRequest.h:133
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::WithClusterSecurityGroupName
CreateClusterSecurityGroupRequest & WithClusterSecurityGroupName(const char *value)
Definition: CreateClusterSecurityGroupRequest.h:122
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Redshift::Model::CreateClusterSecurityGroupRequest
Definition: CreateClusterSecurityGroupRequest.h:27
RedshiftRequest.h
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateClusterSecurityGroupRequest.h:148
AWSVector.h
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateClusterSecurityGroupRequest.h:179
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::WithTags
CreateClusterSecurityGroupRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateClusterSecurityGroupRequest.h:194
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::AddTags
CreateClusterSecurityGroupRequest & AddTags(Tag &&value)
Definition: CreateClusterSecurityGroupRequest.h:204
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::AddTags
CreateClusterSecurityGroupRequest & AddTags(const Tag &value)
Definition: CreateClusterSecurityGroupRequest.h:199
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::WithClusterSecurityGroupName
CreateClusterSecurityGroupRequest & WithClusterSecurityGroupName(const Aws::String &value)
Definition: CreateClusterSecurityGroupRequest.h:102
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::SetClusterSecurityGroupName
void SetClusterSecurityGroupName(const Aws::String &value)
Definition: CreateClusterSecurityGroupRequest.h:72
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::WithDescription
CreateClusterSecurityGroupRequest & WithDescription(const Aws::String &value)
Definition: CreateClusterSecurityGroupRequest.h:153
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateClusterSecurityGroupRequest.h:184
AWSString.h
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::GetClusterSecurityGroupName
const Aws::String & GetClusterSecurityGroupName() const
Definition: CreateClusterSecurityGroupRequest.h:52
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateClusterSecurityGroupRequest.h:143
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateClusterSecurityGroupRequest.h:35
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateClusterSecurityGroupRequest.h:138
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateClusterSecurityGroupRequest.h:169
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::WithClusterSecurityGroupName
CreateClusterSecurityGroupRequest & WithClusterSecurityGroupName(Aws::String &&value)
Definition: CreateClusterSecurityGroupRequest.h:112
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::CreateClusterSecurityGroupRequest
CreateClusterSecurityGroupRequest()
Redshift_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::SetClusterSecurityGroupName
void SetClusterSecurityGroupName(Aws::String &&value)
Definition: CreateClusterSecurityGroupRequest.h:82
Aws::Redshift::Model::CreateClusterSecurityGroupRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateClusterSecurityGroupRequest.h:128