AWS SDK for C++  1.9.104
AWS SDK for C++
AuthorizeClusterSecurityGroupIngressRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Redshift
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "AuthorizeClusterSecurityGroupIngress"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
45  inline const Aws::String& GetClusterSecurityGroupName() const{ return m_clusterSecurityGroupName; }
46 
50  inline bool ClusterSecurityGroupNameHasBeenSet() const { return m_clusterSecurityGroupNameHasBeenSet; }
51 
55  inline void SetClusterSecurityGroupName(const Aws::String& value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName = value; }
56 
60  inline void SetClusterSecurityGroupName(Aws::String&& value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName = std::move(value); }
61 
65  inline void SetClusterSecurityGroupName(const char* value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName.assign(value); }
66 
70  inline AuthorizeClusterSecurityGroupIngressRequest& WithClusterSecurityGroupName(const Aws::String& value) { SetClusterSecurityGroupName(value); return *this;}
71 
75  inline AuthorizeClusterSecurityGroupIngressRequest& WithClusterSecurityGroupName(Aws::String&& value) { SetClusterSecurityGroupName(std::move(value)); return *this;}
76 
80  inline AuthorizeClusterSecurityGroupIngressRequest& WithClusterSecurityGroupName(const char* value) { SetClusterSecurityGroupName(value); return *this;}
81 
82 
86  inline const Aws::String& GetCIDRIP() const{ return m_cIDRIP; }
87 
91  inline bool CIDRIPHasBeenSet() const { return m_cIDRIPHasBeenSet; }
92 
96  inline void SetCIDRIP(const Aws::String& value) { m_cIDRIPHasBeenSet = true; m_cIDRIP = value; }
97 
101  inline void SetCIDRIP(Aws::String&& value) { m_cIDRIPHasBeenSet = true; m_cIDRIP = std::move(value); }
102 
106  inline void SetCIDRIP(const char* value) { m_cIDRIPHasBeenSet = true; m_cIDRIP.assign(value); }
107 
111  inline AuthorizeClusterSecurityGroupIngressRequest& WithCIDRIP(const Aws::String& value) { SetCIDRIP(value); return *this;}
112 
116  inline AuthorizeClusterSecurityGroupIngressRequest& WithCIDRIP(Aws::String&& value) { SetCIDRIP(std::move(value)); return *this;}
117 
121  inline AuthorizeClusterSecurityGroupIngressRequest& WithCIDRIP(const char* value) { SetCIDRIP(value); return *this;}
122 
123 
127  inline const Aws::String& GetEC2SecurityGroupName() const{ return m_eC2SecurityGroupName; }
128 
132  inline bool EC2SecurityGroupNameHasBeenSet() const { return m_eC2SecurityGroupNameHasBeenSet; }
133 
137  inline void SetEC2SecurityGroupName(const Aws::String& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = value; }
138 
142  inline void SetEC2SecurityGroupName(Aws::String&& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = std::move(value); }
143 
147  inline void SetEC2SecurityGroupName(const char* value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName.assign(value); }
148 
152  inline AuthorizeClusterSecurityGroupIngressRequest& WithEC2SecurityGroupName(const Aws::String& value) { SetEC2SecurityGroupName(value); return *this;}
153 
157  inline AuthorizeClusterSecurityGroupIngressRequest& WithEC2SecurityGroupName(Aws::String&& value) { SetEC2SecurityGroupName(std::move(value)); return *this;}
158 
162  inline AuthorizeClusterSecurityGroupIngressRequest& WithEC2SecurityGroupName(const char* value) { SetEC2SecurityGroupName(value); return *this;}
163 
164 
171  inline const Aws::String& GetEC2SecurityGroupOwnerId() const{ return m_eC2SecurityGroupOwnerId; }
172 
179  inline bool EC2SecurityGroupOwnerIdHasBeenSet() const { return m_eC2SecurityGroupOwnerIdHasBeenSet; }
180 
187  inline void SetEC2SecurityGroupOwnerId(const Aws::String& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = value; }
188 
195  inline void SetEC2SecurityGroupOwnerId(Aws::String&& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = std::move(value); }
196 
203  inline void SetEC2SecurityGroupOwnerId(const char* value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId.assign(value); }
204 
211  inline AuthorizeClusterSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(const Aws::String& value) { SetEC2SecurityGroupOwnerId(value); return *this;}
212 
219  inline AuthorizeClusterSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(Aws::String&& value) { SetEC2SecurityGroupOwnerId(std::move(value)); return *this;}
220 
227  inline AuthorizeClusterSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(const char* value) { SetEC2SecurityGroupOwnerId(value); return *this;}
228 
229  private:
230 
231  Aws::String m_clusterSecurityGroupName;
232  bool m_clusterSecurityGroupNameHasBeenSet;
233 
234  Aws::String m_cIDRIP;
235  bool m_cIDRIPHasBeenSet;
236 
237  Aws::String m_eC2SecurityGroupName;
238  bool m_eC2SecurityGroupNameHasBeenSet;
239 
240  Aws::String m_eC2SecurityGroupOwnerId;
241  bool m_eC2SecurityGroupOwnerIdHasBeenSet;
242  };
243 
244 } // namespace Model
245 } // namespace Redshift
246 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::SetClusterSecurityGroupName
void SetClusterSecurityGroupName(Aws::String &&value)
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:60
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:25
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::SetEC2SecurityGroupOwnerId
void SetEC2SecurityGroupOwnerId(const Aws::String &value)
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:187
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::AuthorizeClusterSecurityGroupIngressRequest
AuthorizeClusterSecurityGroupIngressRequest()
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::WithEC2SecurityGroupOwnerId
AuthorizeClusterSecurityGroupIngressRequest & WithEC2SecurityGroupOwnerId(const Aws::String &value)
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:211
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::WithClusterSecurityGroupName
AuthorizeClusterSecurityGroupIngressRequest & WithClusterSecurityGroupName(const Aws::String &value)
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:70
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::WithEC2SecurityGroupOwnerId
AuthorizeClusterSecurityGroupIngressRequest & WithEC2SecurityGroupOwnerId(const char *value)
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:227
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::SetEC2SecurityGroupOwnerId
void SetEC2SecurityGroupOwnerId(const char *value)
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:203
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::SetEC2SecurityGroupName
void SetEC2SecurityGroupName(Aws::String &&value)
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:142
RedshiftRequest.h
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::EC2SecurityGroupNameHasBeenSet
bool EC2SecurityGroupNameHasBeenSet() const
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:132
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::WithEC2SecurityGroupName
AuthorizeClusterSecurityGroupIngressRequest & WithEC2SecurityGroupName(Aws::String &&value)
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:157
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::WithEC2SecurityGroupOwnerId
AuthorizeClusterSecurityGroupIngressRequest & WithEC2SecurityGroupOwnerId(Aws::String &&value)
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:219
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::SetClusterSecurityGroupName
void SetClusterSecurityGroupName(const char *value)
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:65
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::WithEC2SecurityGroupName
AuthorizeClusterSecurityGroupIngressRequest & WithEC2SecurityGroupName(const Aws::String &value)
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:152
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:33
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::SetEC2SecurityGroupName
void SetEC2SecurityGroupName(const Aws::String &value)
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:137
AWSString.h
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::SetClusterSecurityGroupName
void SetClusterSecurityGroupName(const Aws::String &value)
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:55
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::GetClusterSecurityGroupName
const Aws::String & GetClusterSecurityGroupName() const
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:45
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::SetEC2SecurityGroupOwnerId
void SetEC2SecurityGroupOwnerId(Aws::String &&value)
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:195
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::SetCIDRIP
void SetCIDRIP(const char *value)
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:106
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::GetCIDRIP
const Aws::String & GetCIDRIP() const
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:86
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::WithCIDRIP
AuthorizeClusterSecurityGroupIngressRequest & WithCIDRIP(const Aws::String &value)
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:111
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::GetEC2SecurityGroupOwnerId
const Aws::String & GetEC2SecurityGroupOwnerId() const
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:171
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::CIDRIPHasBeenSet
bool CIDRIPHasBeenSet() const
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:91
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::SetCIDRIP
void SetCIDRIP(const Aws::String &value)
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:96
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::EC2SecurityGroupOwnerIdHasBeenSet
bool EC2SecurityGroupOwnerIdHasBeenSet() const
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:179
Redshift_EXPORTS.h
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::SetEC2SecurityGroupName
void SetEC2SecurityGroupName(const char *value)
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:147
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::WithEC2SecurityGroupName
AuthorizeClusterSecurityGroupIngressRequest & WithEC2SecurityGroupName(const char *value)
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:162
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::SetCIDRIP
void SetCIDRIP(Aws::String &&value)
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:101
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::WithCIDRIP
AuthorizeClusterSecurityGroupIngressRequest & WithCIDRIP(const char *value)
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:121
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::WithClusterSecurityGroupName
AuthorizeClusterSecurityGroupIngressRequest & WithClusterSecurityGroupName(Aws::String &&value)
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:75
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::ClusterSecurityGroupNameHasBeenSet
bool ClusterSecurityGroupNameHasBeenSet() const
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:50
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::GetEC2SecurityGroupName
const Aws::String & GetEC2SecurityGroupName() const
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:127
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::WithClusterSecurityGroupName
AuthorizeClusterSecurityGroupIngressRequest & WithClusterSecurityGroupName(const char *value)
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:80
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::WithCIDRIP
AuthorizeClusterSecurityGroupIngressRequest & WithCIDRIP(Aws::String &&value)
Definition: AuthorizeClusterSecurityGroupIngressRequest.h:116
Aws::Redshift::Model::AuthorizeClusterSecurityGroupIngressRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override