AWS SDK for C++  0.12.9
AWS SDK for C++
RevokeClusterSecurityGroupIngressRequest.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 RevokeClusterSecurityGroupIngressRequest& WithClusterSecurityGroupName(const Aws::String& value) { SetClusterSecurityGroupName(value); return *this;}
60 
64  inline RevokeClusterSecurityGroupIngressRequest& WithClusterSecurityGroupName(Aws::String&& value) { SetClusterSecurityGroupName(value); return *this;}
65 
69  inline RevokeClusterSecurityGroupIngressRequest& WithClusterSecurityGroupName(const char* value) { SetClusterSecurityGroupName(value); return *this;}
70 
77  inline const Aws::String& GetCIDRIP() const{ return m_cIDRIP; }
78 
85  inline void SetCIDRIP(const Aws::String& value) { m_cIDRIPHasBeenSet = true; m_cIDRIP = value; }
86 
93  inline void SetCIDRIP(Aws::String&& value) { m_cIDRIPHasBeenSet = true; m_cIDRIP = value; }
94 
101  inline void SetCIDRIP(const char* value) { m_cIDRIPHasBeenSet = true; m_cIDRIP.assign(value); }
102 
109  inline RevokeClusterSecurityGroupIngressRequest& WithCIDRIP(const Aws::String& value) { SetCIDRIP(value); return *this;}
110 
117  inline RevokeClusterSecurityGroupIngressRequest& WithCIDRIP(Aws::String&& value) { SetCIDRIP(value); return *this;}
118 
125  inline RevokeClusterSecurityGroupIngressRequest& WithCIDRIP(const char* value) { SetCIDRIP(value); return *this;}
126 
133  inline const Aws::String& GetEC2SecurityGroupName() const{ return m_eC2SecurityGroupName; }
134 
141  inline void SetEC2SecurityGroupName(const Aws::String& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = value; }
142 
149  inline void SetEC2SecurityGroupName(Aws::String&& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = value; }
150 
157  inline void SetEC2SecurityGroupName(const char* value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName.assign(value); }
158 
165  inline RevokeClusterSecurityGroupIngressRequest& WithEC2SecurityGroupName(const Aws::String& value) { SetEC2SecurityGroupName(value); return *this;}
166 
173  inline RevokeClusterSecurityGroupIngressRequest& WithEC2SecurityGroupName(Aws::String&& value) { SetEC2SecurityGroupName(value); return *this;}
174 
181  inline RevokeClusterSecurityGroupIngressRequest& WithEC2SecurityGroupName(const char* value) { SetEC2SecurityGroupName(value); return *this;}
182 
190  inline const Aws::String& GetEC2SecurityGroupOwnerId() const{ return m_eC2SecurityGroupOwnerId; }
191 
199  inline void SetEC2SecurityGroupOwnerId(const Aws::String& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = value; }
200 
208  inline void SetEC2SecurityGroupOwnerId(Aws::String&& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = value; }
209 
217  inline void SetEC2SecurityGroupOwnerId(const char* value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId.assign(value); }
218 
226  inline RevokeClusterSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(const Aws::String& value) { SetEC2SecurityGroupOwnerId(value); return *this;}
227 
235  inline RevokeClusterSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(Aws::String&& value) { SetEC2SecurityGroupOwnerId(value); return *this;}
236 
244  inline RevokeClusterSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(const char* value) { SetEC2SecurityGroupOwnerId(value); return *this;}
245 
246  private:
247  Aws::String m_clusterSecurityGroupName;
248  bool m_clusterSecurityGroupNameHasBeenSet;
249  Aws::String m_cIDRIP;
250  bool m_cIDRIPHasBeenSet;
251  Aws::String m_eC2SecurityGroupName;
252  bool m_eC2SecurityGroupNameHasBeenSet;
253  Aws::String m_eC2SecurityGroupOwnerId;
254  bool m_eC2SecurityGroupOwnerIdHasBeenSet;
255  };
256 
257 } // namespace Model
258 } // namespace Redshift
259 } // namespace Aws
RevokeClusterSecurityGroupIngressRequest & WithEC2SecurityGroupOwnerId(Aws::String &&value)
RevokeClusterSecurityGroupIngressRequest & WithCIDRIP(const char *value)
RevokeClusterSecurityGroupIngressRequest & WithCIDRIP(const Aws::String &value)
RevokeClusterSecurityGroupIngressRequest & WithCIDRIP(Aws::String &&value)
#define AWS_REDSHIFT_API
RevokeClusterSecurityGroupIngressRequest & WithEC2SecurityGroupName(Aws::String &&value)
RevokeClusterSecurityGroupIngressRequest & WithClusterSecurityGroupName(Aws::String &&value)
RevokeClusterSecurityGroupIngressRequest & WithEC2SecurityGroupOwnerId(const Aws::String &value)
RevokeClusterSecurityGroupIngressRequest & WithEC2SecurityGroupOwnerId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RevokeClusterSecurityGroupIngressRequest & WithEC2SecurityGroupName(const Aws::String &value)
RevokeClusterSecurityGroupIngressRequest & WithClusterSecurityGroupName(const Aws::String &value)
RevokeClusterSecurityGroupIngressRequest & WithClusterSecurityGroupName(const char *value)
RevokeClusterSecurityGroupIngressRequest & WithEC2SecurityGroupName(const char *value)
JSON (JavaScript Object Notation).