AWS SDK for C++  0.12.9
AWS SDK for C++
RevokeSecurityGroupIngressRequest.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
16 #include <aws/ec2/EC2_EXPORTS.h>
17 #include <aws/ec2/EC2Request.h>
21 
22 namespace Aws
23 {
24 namespace EC2
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
44  inline bool GetDryRun() const{ return m_dryRun; }
45 
52  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
53 
60  inline RevokeSecurityGroupIngressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
61 
65  inline const Aws::String& GetGroupName() const{ return m_groupName; }
66 
70  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
71 
75  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
76 
80  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
81 
85  inline RevokeSecurityGroupIngressRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
86 
90  inline RevokeSecurityGroupIngressRequest& WithGroupName(Aws::String&& value) { SetGroupName(value); return *this;}
91 
95  inline RevokeSecurityGroupIngressRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
96 
101  inline const Aws::String& GetGroupId() const{ return m_groupId; }
102 
107  inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
108 
113  inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
114 
119  inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
120 
125  inline RevokeSecurityGroupIngressRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
126 
131  inline RevokeSecurityGroupIngressRequest& WithGroupId(Aws::String&& value) { SetGroupId(value); return *this;}
132 
137  inline RevokeSecurityGroupIngressRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
138 
147  inline const Aws::String& GetSourceSecurityGroupName() const{ return m_sourceSecurityGroupName; }
148 
157  inline void SetSourceSecurityGroupName(const Aws::String& value) { m_sourceSecurityGroupNameHasBeenSet = true; m_sourceSecurityGroupName = value; }
158 
167  inline void SetSourceSecurityGroupName(Aws::String&& value) { m_sourceSecurityGroupNameHasBeenSet = true; m_sourceSecurityGroupName = value; }
168 
177  inline void SetSourceSecurityGroupName(const char* value) { m_sourceSecurityGroupNameHasBeenSet = true; m_sourceSecurityGroupName.assign(value); }
178 
187  inline RevokeSecurityGroupIngressRequest& WithSourceSecurityGroupName(const Aws::String& value) { SetSourceSecurityGroupName(value); return *this;}
188 
197  inline RevokeSecurityGroupIngressRequest& WithSourceSecurityGroupName(Aws::String&& value) { SetSourceSecurityGroupName(value); return *this;}
198 
207  inline RevokeSecurityGroupIngressRequest& WithSourceSecurityGroupName(const char* value) { SetSourceSecurityGroupName(value); return *this;}
208 
217  inline const Aws::String& GetSourceSecurityGroupOwnerId() const{ return m_sourceSecurityGroupOwnerId; }
218 
227  inline void SetSourceSecurityGroupOwnerId(const Aws::String& value) { m_sourceSecurityGroupOwnerIdHasBeenSet = true; m_sourceSecurityGroupOwnerId = value; }
228 
237  inline void SetSourceSecurityGroupOwnerId(Aws::String&& value) { m_sourceSecurityGroupOwnerIdHasBeenSet = true; m_sourceSecurityGroupOwnerId = value; }
238 
247  inline void SetSourceSecurityGroupOwnerId(const char* value) { m_sourceSecurityGroupOwnerIdHasBeenSet = true; m_sourceSecurityGroupOwnerId.assign(value); }
248 
257  inline RevokeSecurityGroupIngressRequest& WithSourceSecurityGroupOwnerId(const Aws::String& value) { SetSourceSecurityGroupOwnerId(value); return *this;}
258 
267  inline RevokeSecurityGroupIngressRequest& WithSourceSecurityGroupOwnerId(Aws::String&& value) { SetSourceSecurityGroupOwnerId(value); return *this;}
268 
277  inline RevokeSecurityGroupIngressRequest& WithSourceSecurityGroupOwnerId(const char* value) { SetSourceSecurityGroupOwnerId(value); return *this;}
278 
285  inline const Aws::String& GetIpProtocol() const{ return m_ipProtocol; }
286 
293  inline void SetIpProtocol(const Aws::String& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = value; }
294 
301  inline void SetIpProtocol(Aws::String&& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = value; }
302 
309  inline void SetIpProtocol(const char* value) { m_ipProtocolHasBeenSet = true; m_ipProtocol.assign(value); }
310 
317  inline RevokeSecurityGroupIngressRequest& WithIpProtocol(const Aws::String& value) { SetIpProtocol(value); return *this;}
318 
325  inline RevokeSecurityGroupIngressRequest& WithIpProtocol(Aws::String&& value) { SetIpProtocol(value); return *this;}
326 
333  inline RevokeSecurityGroupIngressRequest& WithIpProtocol(const char* value) { SetIpProtocol(value); return *this;}
334 
340  inline long GetFromPort() const{ return m_fromPort; }
341 
347  inline void SetFromPort(long value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
348 
354  inline RevokeSecurityGroupIngressRequest& WithFromPort(long value) { SetFromPort(value); return *this;}
355 
361  inline long GetToPort() const{ return m_toPort; }
362 
368  inline void SetToPort(long value) { m_toPortHasBeenSet = true; m_toPort = value; }
369 
375  inline RevokeSecurityGroupIngressRequest& WithToPort(long value) { SetToPort(value); return *this;}
376 
381  inline const Aws::String& GetCidrIp() const{ return m_cidrIp; }
382 
387  inline void SetCidrIp(const Aws::String& value) { m_cidrIpHasBeenSet = true; m_cidrIp = value; }
388 
393  inline void SetCidrIp(Aws::String&& value) { m_cidrIpHasBeenSet = true; m_cidrIp = value; }
394 
399  inline void SetCidrIp(const char* value) { m_cidrIpHasBeenSet = true; m_cidrIp.assign(value); }
400 
405  inline RevokeSecurityGroupIngressRequest& WithCidrIp(const Aws::String& value) { SetCidrIp(value); return *this;}
406 
411  inline RevokeSecurityGroupIngressRequest& WithCidrIp(Aws::String&& value) { SetCidrIp(value); return *this;}
412 
417  inline RevokeSecurityGroupIngressRequest& WithCidrIp(const char* value) { SetCidrIp(value); return *this;}
418 
423  inline const Aws::Vector<IpPermission>& GetIpPermissions() const{ return m_ipPermissions; }
424 
429  inline void SetIpPermissions(const Aws::Vector<IpPermission>& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions = value; }
430 
435  inline void SetIpPermissions(Aws::Vector<IpPermission>&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions = value; }
436 
441  inline RevokeSecurityGroupIngressRequest& WithIpPermissions(const Aws::Vector<IpPermission>& value) { SetIpPermissions(value); return *this;}
442 
447  inline RevokeSecurityGroupIngressRequest& WithIpPermissions(Aws::Vector<IpPermission>&& value) { SetIpPermissions(value); return *this;}
448 
453  inline RevokeSecurityGroupIngressRequest& AddIpPermissions(const IpPermission& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(value); return *this; }
454 
459  inline RevokeSecurityGroupIngressRequest& AddIpPermissions(IpPermission&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(value); return *this; }
460 
461  private:
462  bool m_dryRun;
463  bool m_dryRunHasBeenSet;
464  Aws::String m_groupName;
465  bool m_groupNameHasBeenSet;
466  Aws::String m_groupId;
467  bool m_groupIdHasBeenSet;
468  Aws::String m_sourceSecurityGroupName;
469  bool m_sourceSecurityGroupNameHasBeenSet;
470  Aws::String m_sourceSecurityGroupOwnerId;
471  bool m_sourceSecurityGroupOwnerIdHasBeenSet;
472  Aws::String m_ipProtocol;
473  bool m_ipProtocolHasBeenSet;
474  long m_fromPort;
475  bool m_fromPortHasBeenSet;
476  long m_toPort;
477  bool m_toPortHasBeenSet;
478  Aws::String m_cidrIp;
479  bool m_cidrIpHasBeenSet;
480  Aws::Vector<IpPermission> m_ipPermissions;
481  bool m_ipPermissionsHasBeenSet;
482  };
483 
484 } // namespace Model
485 } // namespace EC2
486 } // namespace Aws
RevokeSecurityGroupIngressRequest & WithSourceSecurityGroupOwnerId(const char *value)
RevokeSecurityGroupIngressRequest & WithGroupName(const char *value)
RevokeSecurityGroupIngressRequest & WithCidrIp(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
RevokeSecurityGroupIngressRequest & WithSourceSecurityGroupName(const Aws::String &value)
RevokeSecurityGroupIngressRequest & AddIpPermissions(IpPermission &&value)
RevokeSecurityGroupIngressRequest & WithFromPort(long value)
RevokeSecurityGroupIngressRequest & WithGroupName(const Aws::String &value)
RevokeSecurityGroupIngressRequest & WithCidrIp(const char *value)
RevokeSecurityGroupIngressRequest & WithCidrIp(const Aws::String &value)
RevokeSecurityGroupIngressRequest & WithSourceSecurityGroupOwnerId(const Aws::String &value)
RevokeSecurityGroupIngressRequest & WithToPort(long value)
void SetIpPermissions(const Aws::Vector< IpPermission > &value)
RevokeSecurityGroupIngressRequest & WithIpProtocol(const char *value)
RevokeSecurityGroupIngressRequest & WithGroupId(Aws::String &&value)
RevokeSecurityGroupIngressRequest & WithIpPermissions(const Aws::Vector< IpPermission > &value)
RevokeSecurityGroupIngressRequest & WithIpProtocol(Aws::String &&value)
RevokeSecurityGroupIngressRequest & WithGroupId(const char *value)
RevokeSecurityGroupIngressRequest & WithDryRun(bool value)
RevokeSecurityGroupIngressRequest & WithSourceSecurityGroupOwnerId(Aws::String &&value)
RevokeSecurityGroupIngressRequest & WithIpProtocol(const Aws::String &value)
RevokeSecurityGroupIngressRequest & WithGroupName(Aws::String &&value)
RevokeSecurityGroupIngressRequest & WithIpPermissions(Aws::Vector< IpPermission > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RevokeSecurityGroupIngressRequest & AddIpPermissions(const IpPermission &value)
const Aws::Vector< IpPermission > & GetIpPermissions() const
RevokeSecurityGroupIngressRequest & WithSourceSecurityGroupName(Aws::String &&value)
RevokeSecurityGroupIngressRequest & WithSourceSecurityGroupName(const char *value)
RevokeSecurityGroupIngressRequest & WithGroupId(const Aws::String &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
JSON (JavaScript Object Notation).