AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CreateClusterSecurityGroupRequest.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace Redshift
17{
18namespace 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
38
39 protected:
40 AWS_REDSHIFT_API 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
103
113
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
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 = false;
210
211 Aws::String m_description;
212 bool m_descriptionHasBeenSet = false;
213
214 Aws::Vector<Tag> m_tags;
215 bool m_tagsHasBeenSet = false;
216 };
217
218} // namespace Model
219} // namespace Redshift
220} // namespace Aws
#define AWS_REDSHIFT_API
CreateClusterSecurityGroupRequest & WithDescription(Aws::String &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
CreateClusterSecurityGroupRequest & WithClusterSecurityGroupName(Aws::String &&value)
CreateClusterSecurityGroupRequest & WithTags(const Aws::Vector< Tag > &value)
CreateClusterSecurityGroupRequest & WithClusterSecurityGroupName(const char *value)
CreateClusterSecurityGroupRequest & WithClusterSecurityGroupName(const Aws::String &value)
CreateClusterSecurityGroupRequest & WithDescription(const Aws::String &value)
CreateClusterSecurityGroupRequest & WithDescription(const char *value)
CreateClusterSecurityGroupRequest & AddTags(const Tag &value)
CreateClusterSecurityGroupRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector