AWS SDK for C++  0.14.3
AWS SDK for C++
AuthorizeClusterSecurityGroupIngressRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Redshift
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
39  inline const Aws::String& GetClusterSecurityGroupName() const{ return m_clusterSecurityGroupName; }
40 
44  inline void SetClusterSecurityGroupName(const Aws::String& value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName = value; }
45 
49  inline void SetClusterSecurityGroupName(Aws::String&& value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName = value; }
50 
54  inline void SetClusterSecurityGroupName(const char* value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName.assign(value); }
55 
59  inline AuthorizeClusterSecurityGroupIngressRequest& WithClusterSecurityGroupName(const Aws::String& value) { SetClusterSecurityGroupName(value); return *this;}
60 
64  inline AuthorizeClusterSecurityGroupIngressRequest& WithClusterSecurityGroupName(Aws::String&& value) { SetClusterSecurityGroupName(value); return *this;}
65 
69  inline AuthorizeClusterSecurityGroupIngressRequest& WithClusterSecurityGroupName(const char* value) { SetClusterSecurityGroupName(value); return *this;}
70 
74  inline const Aws::String& GetCIDRIP() const{ return m_cIDRIP; }
75 
79  inline void SetCIDRIP(const Aws::String& value) { m_cIDRIPHasBeenSet = true; m_cIDRIP = value; }
80 
84  inline void SetCIDRIP(Aws::String&& value) { m_cIDRIPHasBeenSet = true; m_cIDRIP = value; }
85 
89  inline void SetCIDRIP(const char* value) { m_cIDRIPHasBeenSet = true; m_cIDRIP.assign(value); }
90 
94  inline AuthorizeClusterSecurityGroupIngressRequest& WithCIDRIP(const Aws::String& value) { SetCIDRIP(value); return *this;}
95 
99  inline AuthorizeClusterSecurityGroupIngressRequest& WithCIDRIP(Aws::String&& value) { SetCIDRIP(value); return *this;}
100 
104  inline AuthorizeClusterSecurityGroupIngressRequest& WithCIDRIP(const char* value) { SetCIDRIP(value); return *this;}
105 
109  inline const Aws::String& GetEC2SecurityGroupName() const{ return m_eC2SecurityGroupName; }
110 
114  inline void SetEC2SecurityGroupName(const Aws::String& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = value; }
115 
119  inline void SetEC2SecurityGroupName(Aws::String&& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = value; }
120 
124  inline void SetEC2SecurityGroupName(const char* value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName.assign(value); }
125 
129  inline AuthorizeClusterSecurityGroupIngressRequest& WithEC2SecurityGroupName(const Aws::String& value) { SetEC2SecurityGroupName(value); return *this;}
130 
134  inline AuthorizeClusterSecurityGroupIngressRequest& WithEC2SecurityGroupName(Aws::String&& value) { SetEC2SecurityGroupName(value); return *this;}
135 
139  inline AuthorizeClusterSecurityGroupIngressRequest& WithEC2SecurityGroupName(const char* value) { SetEC2SecurityGroupName(value); return *this;}
140 
146  inline const Aws::String& GetEC2SecurityGroupOwnerId() const{ return m_eC2SecurityGroupOwnerId; }
147 
153  inline void SetEC2SecurityGroupOwnerId(const Aws::String& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = value; }
154 
160  inline void SetEC2SecurityGroupOwnerId(Aws::String&& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = value; }
161 
167  inline void SetEC2SecurityGroupOwnerId(const char* value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId.assign(value); }
168 
174  inline AuthorizeClusterSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(const Aws::String& value) { SetEC2SecurityGroupOwnerId(value); return *this;}
175 
181  inline AuthorizeClusterSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(Aws::String&& value) { SetEC2SecurityGroupOwnerId(value); return *this;}
182 
188  inline AuthorizeClusterSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(const char* value) { SetEC2SecurityGroupOwnerId(value); return *this;}
189 
190  private:
191  Aws::String m_clusterSecurityGroupName;
192  bool m_clusterSecurityGroupNameHasBeenSet;
193  Aws::String m_cIDRIP;
194  bool m_cIDRIPHasBeenSet;
195  Aws::String m_eC2SecurityGroupName;
196  bool m_eC2SecurityGroupNameHasBeenSet;
197  Aws::String m_eC2SecurityGroupOwnerId;
198  bool m_eC2SecurityGroupOwnerIdHasBeenSet;
199  };
200 
201 } // namespace Model
202 } // namespace Redshift
203 } // namespace Aws
AuthorizeClusterSecurityGroupIngressRequest & WithEC2SecurityGroupName(Aws::String &&value)
AuthorizeClusterSecurityGroupIngressRequest & WithCIDRIP(Aws::String &&value)
AuthorizeClusterSecurityGroupIngressRequest & WithEC2SecurityGroupName(const char *value)
AuthorizeClusterSecurityGroupIngressRequest & WithEC2SecurityGroupName(const Aws::String &value)
AuthorizeClusterSecurityGroupIngressRequest & WithClusterSecurityGroupName(Aws::String &&value)
AuthorizeClusterSecurityGroupIngressRequest & WithClusterSecurityGroupName(const char *value)
AuthorizeClusterSecurityGroupIngressRequest & WithEC2SecurityGroupOwnerId(const char *value)
#define AWS_REDSHIFT_API
AuthorizeClusterSecurityGroupIngressRequest & WithEC2SecurityGroupOwnerId(const Aws::String &value)
AuthorizeClusterSecurityGroupIngressRequest & WithEC2SecurityGroupOwnerId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AuthorizeClusterSecurityGroupIngressRequest & WithClusterSecurityGroupName(const Aws::String &value)
AuthorizeClusterSecurityGroupIngressRequest & WithCIDRIP(const Aws::String &value)
JSON (JavaScript Object Notation).
AuthorizeClusterSecurityGroupIngressRequest & WithCIDRIP(const char *value)