/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class AuthorizeSecurityGroupIngressRequest : public EC2Request { public: AWS_EC2_API AuthorizeSecurityGroupIngressRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "AuthorizeSecurityGroupIngress"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The IPv4 address range, in CIDR format. You can't specify this parameter when * specifying a source security group. To specify an IPv6 address range, use a set * of IP permissions.

Alternatively, use a set of IP permissions to specify * multiple rules and a description for the rule.

*/ inline const Aws::String& GetCidrIp() const{ return m_cidrIp; } /** *

The IPv4 address range, in CIDR format. You can't specify this parameter when * specifying a source security group. To specify an IPv6 address range, use a set * of IP permissions.

Alternatively, use a set of IP permissions to specify * multiple rules and a description for the rule.

*/ inline bool CidrIpHasBeenSet() const { return m_cidrIpHasBeenSet; } /** *

The IPv4 address range, in CIDR format. You can't specify this parameter when * specifying a source security group. To specify an IPv6 address range, use a set * of IP permissions.

Alternatively, use a set of IP permissions to specify * multiple rules and a description for the rule.

*/ inline void SetCidrIp(const Aws::String& value) { m_cidrIpHasBeenSet = true; m_cidrIp = value; } /** *

The IPv4 address range, in CIDR format. You can't specify this parameter when * specifying a source security group. To specify an IPv6 address range, use a set * of IP permissions.

Alternatively, use a set of IP permissions to specify * multiple rules and a description for the rule.

*/ inline void SetCidrIp(Aws::String&& value) { m_cidrIpHasBeenSet = true; m_cidrIp = std::move(value); } /** *

The IPv4 address range, in CIDR format. You can't specify this parameter when * specifying a source security group. To specify an IPv6 address range, use a set * of IP permissions.

Alternatively, use a set of IP permissions to specify * multiple rules and a description for the rule.

*/ inline void SetCidrIp(const char* value) { m_cidrIpHasBeenSet = true; m_cidrIp.assign(value); } /** *

The IPv4 address range, in CIDR format. You can't specify this parameter when * specifying a source security group. To specify an IPv6 address range, use a set * of IP permissions.

Alternatively, use a set of IP permissions to specify * multiple rules and a description for the rule.

*/ inline AuthorizeSecurityGroupIngressRequest& WithCidrIp(const Aws::String& value) { SetCidrIp(value); return *this;} /** *

The IPv4 address range, in CIDR format. You can't specify this parameter when * specifying a source security group. To specify an IPv6 address range, use a set * of IP permissions.

Alternatively, use a set of IP permissions to specify * multiple rules and a description for the rule.

*/ inline AuthorizeSecurityGroupIngressRequest& WithCidrIp(Aws::String&& value) { SetCidrIp(std::move(value)); return *this;} /** *

The IPv4 address range, in CIDR format. You can't specify this parameter when * specifying a source security group. To specify an IPv6 address range, use a set * of IP permissions.

Alternatively, use a set of IP permissions to specify * multiple rules and a description for the rule.

*/ inline AuthorizeSecurityGroupIngressRequest& WithCidrIp(const char* value) { SetCidrIp(value); return *this;} /** *

If the protocol is TCP or UDP, this is the start of the port range. If the * protocol is ICMP, this is the type number. A value of -1 indicates all ICMP * types. If you specify all ICMP types, you must specify all ICMP codes.

*

Alternatively, use a set of IP permissions to specify multiple rules and a * description for the rule.

*/ inline int GetFromPort() const{ return m_fromPort; } /** *

If the protocol is TCP or UDP, this is the start of the port range. If the * protocol is ICMP, this is the type number. A value of -1 indicates all ICMP * types. If you specify all ICMP types, you must specify all ICMP codes.

*

Alternatively, use a set of IP permissions to specify multiple rules and a * description for the rule.

*/ inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; } /** *

If the protocol is TCP or UDP, this is the start of the port range. If the * protocol is ICMP, this is the type number. A value of -1 indicates all ICMP * types. If you specify all ICMP types, you must specify all ICMP codes.

*

Alternatively, use a set of IP permissions to specify multiple rules and a * description for the rule.

*/ inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; } /** *

If the protocol is TCP or UDP, this is the start of the port range. If the * protocol is ICMP, this is the type number. A value of -1 indicates all ICMP * types. If you specify all ICMP types, you must specify all ICMP codes.

*

Alternatively, use a set of IP permissions to specify multiple rules and a * description for the rule.

*/ inline AuthorizeSecurityGroupIngressRequest& WithFromPort(int value) { SetFromPort(value); return *this;} /** *

The ID of the security group. You must specify either the security group ID * or the security group name in the request. For security groups in a nondefault * VPC, you must specify the security group ID.

*/ inline const Aws::String& GetGroupId() const{ return m_groupId; } /** *

The ID of the security group. You must specify either the security group ID * or the security group name in the request. For security groups in a nondefault * VPC, you must specify the security group ID.

*/ inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; } /** *

The ID of the security group. You must specify either the security group ID * or the security group name in the request. For security groups in a nondefault * VPC, you must specify the security group ID.

*/ inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; } /** *

The ID of the security group. You must specify either the security group ID * or the security group name in the request. For security groups in a nondefault * VPC, you must specify the security group ID.

*/ inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); } /** *

The ID of the security group. You must specify either the security group ID * or the security group name in the request. For security groups in a nondefault * VPC, you must specify the security group ID.

*/ inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); } /** *

The ID of the security group. You must specify either the security group ID * or the security group name in the request. For security groups in a nondefault * VPC, you must specify the security group ID.

*/ inline AuthorizeSecurityGroupIngressRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;} /** *

The ID of the security group. You must specify either the security group ID * or the security group name in the request. For security groups in a nondefault * VPC, you must specify the security group ID.

*/ inline AuthorizeSecurityGroupIngressRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;} /** *

The ID of the security group. You must specify either the security group ID * or the security group name in the request. For security groups in a nondefault * VPC, you must specify the security group ID.

*/ inline AuthorizeSecurityGroupIngressRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;} /** *

[Default VPC] The name of the security group. You must specify either the * security group ID or the security group name in the request. For security groups * in a nondefault VPC, you must specify the security group ID.

*/ inline const Aws::String& GetGroupName() const{ return m_groupName; } /** *

[Default VPC] The name of the security group. You must specify either the * security group ID or the security group name in the request. For security groups * in a nondefault VPC, you must specify the security group ID.

*/ inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; } /** *

[Default VPC] The name of the security group. You must specify either the * security group ID or the security group name in the request. For security groups * in a nondefault VPC, you must specify the security group ID.

*/ inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; } /** *

[Default VPC] The name of the security group. You must specify either the * security group ID or the security group name in the request. For security groups * in a nondefault VPC, you must specify the security group ID.

*/ inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); } /** *

[Default VPC] The name of the security group. You must specify either the * security group ID or the security group name in the request. For security groups * in a nondefault VPC, you must specify the security group ID.

*/ inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); } /** *

[Default VPC] The name of the security group. You must specify either the * security group ID or the security group name in the request. For security groups * in a nondefault VPC, you must specify the security group ID.

*/ inline AuthorizeSecurityGroupIngressRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;} /** *

[Default VPC] The name of the security group. You must specify either the * security group ID or the security group name in the request. For security groups * in a nondefault VPC, you must specify the security group ID.

*/ inline AuthorizeSecurityGroupIngressRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;} /** *

[Default VPC] The name of the security group. You must specify either the * security group ID or the security group name in the request. For security groups * in a nondefault VPC, you must specify the security group ID.

*/ inline AuthorizeSecurityGroupIngressRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;} /** *

The sets of IP permissions.

*/ inline const Aws::Vector& GetIpPermissions() const{ return m_ipPermissions; } /** *

The sets of IP permissions.

*/ inline bool IpPermissionsHasBeenSet() const { return m_ipPermissionsHasBeenSet; } /** *

The sets of IP permissions.

*/ inline void SetIpPermissions(const Aws::Vector& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions = value; } /** *

The sets of IP permissions.

*/ inline void SetIpPermissions(Aws::Vector&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions = std::move(value); } /** *

The sets of IP permissions.

*/ inline AuthorizeSecurityGroupIngressRequest& WithIpPermissions(const Aws::Vector& value) { SetIpPermissions(value); return *this;} /** *

The sets of IP permissions.

*/ inline AuthorizeSecurityGroupIngressRequest& WithIpPermissions(Aws::Vector&& value) { SetIpPermissions(std::move(value)); return *this;} /** *

The sets of IP permissions.

*/ inline AuthorizeSecurityGroupIngressRequest& AddIpPermissions(const IpPermission& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(value); return *this; } /** *

The sets of IP permissions.

*/ inline AuthorizeSecurityGroupIngressRequest& AddIpPermissions(IpPermission&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(std::move(value)); return *this; } /** *

The IP protocol name (tcp, udp, icmp) * or number (see Protocol * Numbers). To specify icmpv6, use a set of IP permissions.

*

Use -1 to specify all protocols. If you specify -1 * or a protocol other than tcp, udp, or * icmp, traffic on all ports is allowed, regardless of any ports you * specify.

Alternatively, use a set of IP permissions to specify multiple * rules and a description for the rule.

*/ inline const Aws::String& GetIpProtocol() const{ return m_ipProtocol; } /** *

The IP protocol name (tcp, udp, icmp) * or number (see Protocol * Numbers). To specify icmpv6, use a set of IP permissions.

*

Use -1 to specify all protocols. If you specify -1 * or a protocol other than tcp, udp, or * icmp, traffic on all ports is allowed, regardless of any ports you * specify.

Alternatively, use a set of IP permissions to specify multiple * rules and a description for the rule.

*/ inline bool IpProtocolHasBeenSet() const { return m_ipProtocolHasBeenSet; } /** *

The IP protocol name (tcp, udp, icmp) * or number (see Protocol * Numbers). To specify icmpv6, use a set of IP permissions.

*

Use -1 to specify all protocols. If you specify -1 * or a protocol other than tcp, udp, or * icmp, traffic on all ports is allowed, regardless of any ports you * specify.

Alternatively, use a set of IP permissions to specify multiple * rules and a description for the rule.

*/ inline void SetIpProtocol(const Aws::String& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = value; } /** *

The IP protocol name (tcp, udp, icmp) * or number (see Protocol * Numbers). To specify icmpv6, use a set of IP permissions.

*

Use -1 to specify all protocols. If you specify -1 * or a protocol other than tcp, udp, or * icmp, traffic on all ports is allowed, regardless of any ports you * specify.

Alternatively, use a set of IP permissions to specify multiple * rules and a description for the rule.

*/ inline void SetIpProtocol(Aws::String&& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = std::move(value); } /** *

The IP protocol name (tcp, udp, icmp) * or number (see Protocol * Numbers). To specify icmpv6, use a set of IP permissions.

*

Use -1 to specify all protocols. If you specify -1 * or a protocol other than tcp, udp, or * icmp, traffic on all ports is allowed, regardless of any ports you * specify.

Alternatively, use a set of IP permissions to specify multiple * rules and a description for the rule.

*/ inline void SetIpProtocol(const char* value) { m_ipProtocolHasBeenSet = true; m_ipProtocol.assign(value); } /** *

The IP protocol name (tcp, udp, icmp) * or number (see Protocol * Numbers). To specify icmpv6, use a set of IP permissions.

*

Use -1 to specify all protocols. If you specify -1 * or a protocol other than tcp, udp, or * icmp, traffic on all ports is allowed, regardless of any ports you * specify.

Alternatively, use a set of IP permissions to specify multiple * rules and a description for the rule.

*/ inline AuthorizeSecurityGroupIngressRequest& WithIpProtocol(const Aws::String& value) { SetIpProtocol(value); return *this;} /** *

The IP protocol name (tcp, udp, icmp) * or number (see Protocol * Numbers). To specify icmpv6, use a set of IP permissions.

*

Use -1 to specify all protocols. If you specify -1 * or a protocol other than tcp, udp, or * icmp, traffic on all ports is allowed, regardless of any ports you * specify.

Alternatively, use a set of IP permissions to specify multiple * rules and a description for the rule.

*/ inline AuthorizeSecurityGroupIngressRequest& WithIpProtocol(Aws::String&& value) { SetIpProtocol(std::move(value)); return *this;} /** *

The IP protocol name (tcp, udp, icmp) * or number (see Protocol * Numbers). To specify icmpv6, use a set of IP permissions.

*

Use -1 to specify all protocols. If you specify -1 * or a protocol other than tcp, udp, or * icmp, traffic on all ports is allowed, regardless of any ports you * specify.

Alternatively, use a set of IP permissions to specify multiple * rules and a description for the rule.

*/ inline AuthorizeSecurityGroupIngressRequest& WithIpProtocol(const char* value) { SetIpProtocol(value); return *this;} /** *

[Default VPC] The name of the source security group. You can't specify this * parameter in combination with the following parameters: the CIDR IP address * range, the start of the port range, the IP protocol, and the end of the port * range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule * with a specific IP protocol and port range, use a set of IP permissions instead. * The source security group must be in the same VPC.

*/ inline const Aws::String& GetSourceSecurityGroupName() const{ return m_sourceSecurityGroupName; } /** *

[Default VPC] The name of the source security group. You can't specify this * parameter in combination with the following parameters: the CIDR IP address * range, the start of the port range, the IP protocol, and the end of the port * range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule * with a specific IP protocol and port range, use a set of IP permissions instead. * The source security group must be in the same VPC.

*/ inline bool SourceSecurityGroupNameHasBeenSet() const { return m_sourceSecurityGroupNameHasBeenSet; } /** *

[Default VPC] The name of the source security group. You can't specify this * parameter in combination with the following parameters: the CIDR IP address * range, the start of the port range, the IP protocol, and the end of the port * range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule * with a specific IP protocol and port range, use a set of IP permissions instead. * The source security group must be in the same VPC.

*/ inline void SetSourceSecurityGroupName(const Aws::String& value) { m_sourceSecurityGroupNameHasBeenSet = true; m_sourceSecurityGroupName = value; } /** *

[Default VPC] The name of the source security group. You can't specify this * parameter in combination with the following parameters: the CIDR IP address * range, the start of the port range, the IP protocol, and the end of the port * range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule * with a specific IP protocol and port range, use a set of IP permissions instead. * The source security group must be in the same VPC.

*/ inline void SetSourceSecurityGroupName(Aws::String&& value) { m_sourceSecurityGroupNameHasBeenSet = true; m_sourceSecurityGroupName = std::move(value); } /** *

[Default VPC] The name of the source security group. You can't specify this * parameter in combination with the following parameters: the CIDR IP address * range, the start of the port range, the IP protocol, and the end of the port * range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule * with a specific IP protocol and port range, use a set of IP permissions instead. * The source security group must be in the same VPC.

*/ inline void SetSourceSecurityGroupName(const char* value) { m_sourceSecurityGroupNameHasBeenSet = true; m_sourceSecurityGroupName.assign(value); } /** *

[Default VPC] The name of the source security group. You can't specify this * parameter in combination with the following parameters: the CIDR IP address * range, the start of the port range, the IP protocol, and the end of the port * range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule * with a specific IP protocol and port range, use a set of IP permissions instead. * The source security group must be in the same VPC.

*/ inline AuthorizeSecurityGroupIngressRequest& WithSourceSecurityGroupName(const Aws::String& value) { SetSourceSecurityGroupName(value); return *this;} /** *

[Default VPC] The name of the source security group. You can't specify this * parameter in combination with the following parameters: the CIDR IP address * range, the start of the port range, the IP protocol, and the end of the port * range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule * with a specific IP protocol and port range, use a set of IP permissions instead. * The source security group must be in the same VPC.

*/ inline AuthorizeSecurityGroupIngressRequest& WithSourceSecurityGroupName(Aws::String&& value) { SetSourceSecurityGroupName(std::move(value)); return *this;} /** *

[Default VPC] The name of the source security group. You can't specify this * parameter in combination with the following parameters: the CIDR IP address * range, the start of the port range, the IP protocol, and the end of the port * range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule * with a specific IP protocol and port range, use a set of IP permissions instead. * The source security group must be in the same VPC.

*/ inline AuthorizeSecurityGroupIngressRequest& WithSourceSecurityGroupName(const char* value) { SetSourceSecurityGroupName(value); return *this;} /** *

[Nondefault VPC] The Amazon Web Services account ID for the source security * group, if the source security group is in a different account. You can't specify * this parameter in combination with the following parameters: the CIDR IP address * range, the IP protocol, the start of the port range, and the end of the port * range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule * with a specific IP protocol and port range, use a set of IP permissions * instead.

*/ inline const Aws::String& GetSourceSecurityGroupOwnerId() const{ return m_sourceSecurityGroupOwnerId; } /** *

[Nondefault VPC] The Amazon Web Services account ID for the source security * group, if the source security group is in a different account. You can't specify * this parameter in combination with the following parameters: the CIDR IP address * range, the IP protocol, the start of the port range, and the end of the port * range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule * with a specific IP protocol and port range, use a set of IP permissions * instead.

*/ inline bool SourceSecurityGroupOwnerIdHasBeenSet() const { return m_sourceSecurityGroupOwnerIdHasBeenSet; } /** *

[Nondefault VPC] The Amazon Web Services account ID for the source security * group, if the source security group is in a different account. You can't specify * this parameter in combination with the following parameters: the CIDR IP address * range, the IP protocol, the start of the port range, and the end of the port * range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule * with a specific IP protocol and port range, use a set of IP permissions * instead.

*/ inline void SetSourceSecurityGroupOwnerId(const Aws::String& value) { m_sourceSecurityGroupOwnerIdHasBeenSet = true; m_sourceSecurityGroupOwnerId = value; } /** *

[Nondefault VPC] The Amazon Web Services account ID for the source security * group, if the source security group is in a different account. You can't specify * this parameter in combination with the following parameters: the CIDR IP address * range, the IP protocol, the start of the port range, and the end of the port * range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule * with a specific IP protocol and port range, use a set of IP permissions * instead.

*/ inline void SetSourceSecurityGroupOwnerId(Aws::String&& value) { m_sourceSecurityGroupOwnerIdHasBeenSet = true; m_sourceSecurityGroupOwnerId = std::move(value); } /** *

[Nondefault VPC] The Amazon Web Services account ID for the source security * group, if the source security group is in a different account. You can't specify * this parameter in combination with the following parameters: the CIDR IP address * range, the IP protocol, the start of the port range, and the end of the port * range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule * with a specific IP protocol and port range, use a set of IP permissions * instead.

*/ inline void SetSourceSecurityGroupOwnerId(const char* value) { m_sourceSecurityGroupOwnerIdHasBeenSet = true; m_sourceSecurityGroupOwnerId.assign(value); } /** *

[Nondefault VPC] The Amazon Web Services account ID for the source security * group, if the source security group is in a different account. You can't specify * this parameter in combination with the following parameters: the CIDR IP address * range, the IP protocol, the start of the port range, and the end of the port * range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule * with a specific IP protocol and port range, use a set of IP permissions * instead.

*/ inline AuthorizeSecurityGroupIngressRequest& WithSourceSecurityGroupOwnerId(const Aws::String& value) { SetSourceSecurityGroupOwnerId(value); return *this;} /** *

[Nondefault VPC] The Amazon Web Services account ID for the source security * group, if the source security group is in a different account. You can't specify * this parameter in combination with the following parameters: the CIDR IP address * range, the IP protocol, the start of the port range, and the end of the port * range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule * with a specific IP protocol and port range, use a set of IP permissions * instead.

*/ inline AuthorizeSecurityGroupIngressRequest& WithSourceSecurityGroupOwnerId(Aws::String&& value) { SetSourceSecurityGroupOwnerId(std::move(value)); return *this;} /** *

[Nondefault VPC] The Amazon Web Services account ID for the source security * group, if the source security group is in a different account. You can't specify * this parameter in combination with the following parameters: the CIDR IP address * range, the IP protocol, the start of the port range, and the end of the port * range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule * with a specific IP protocol and port range, use a set of IP permissions * instead.

*/ inline AuthorizeSecurityGroupIngressRequest& WithSourceSecurityGroupOwnerId(const char* value) { SetSourceSecurityGroupOwnerId(value); return *this;} /** *

If the protocol is TCP or UDP, this is the end of the port range. If the * protocol is ICMP, this is the code. A value of -1 indicates all ICMP codes. If * you specify all ICMP types, you must specify all ICMP codes.

*

Alternatively, use a set of IP permissions to specify multiple rules and a * description for the rule.

*/ inline int GetToPort() const{ return m_toPort; } /** *

If the protocol is TCP or UDP, this is the end of the port range. If the * protocol is ICMP, this is the code. A value of -1 indicates all ICMP codes. If * you specify all ICMP types, you must specify all ICMP codes.

*

Alternatively, use a set of IP permissions to specify multiple rules and a * description for the rule.

*/ inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; } /** *

If the protocol is TCP or UDP, this is the end of the port range. If the * protocol is ICMP, this is the code. A value of -1 indicates all ICMP codes. If * you specify all ICMP types, you must specify all ICMP codes.

*

Alternatively, use a set of IP permissions to specify multiple rules and a * description for the rule.

*/ inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; } /** *

If the protocol is TCP or UDP, this is the end of the port range. If the * protocol is ICMP, this is the code. A value of -1 indicates all ICMP codes. If * you specify all ICMP types, you must specify all ICMP codes.

*

Alternatively, use a set of IP permissions to specify multiple rules and a * description for the rule.

*/ inline AuthorizeSecurityGroupIngressRequest& WithToPort(int value) { SetToPort(value); return *this;} /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline AuthorizeSecurityGroupIngressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

[VPC Only] The tags applied to the security group rule.

*/ inline const Aws::Vector& GetTagSpecifications() const{ return m_tagSpecifications; } /** *

[VPC Only] The tags applied to the security group rule.

*/ inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; } /** *

[VPC Only] The tags applied to the security group rule.

*/ inline void SetTagSpecifications(const Aws::Vector& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; } /** *

[VPC Only] The tags applied to the security group rule.

*/ inline void SetTagSpecifications(Aws::Vector&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); } /** *

[VPC Only] The tags applied to the security group rule.

*/ inline AuthorizeSecurityGroupIngressRequest& WithTagSpecifications(const Aws::Vector& value) { SetTagSpecifications(value); return *this;} /** *

[VPC Only] The tags applied to the security group rule.

*/ inline AuthorizeSecurityGroupIngressRequest& WithTagSpecifications(Aws::Vector&& value) { SetTagSpecifications(std::move(value)); return *this;} /** *

[VPC Only] The tags applied to the security group rule.

*/ inline AuthorizeSecurityGroupIngressRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; } /** *

[VPC Only] The tags applied to the security group rule.

*/ inline AuthorizeSecurityGroupIngressRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; } private: Aws::String m_cidrIp; bool m_cidrIpHasBeenSet = false; int m_fromPort; bool m_fromPortHasBeenSet = false; Aws::String m_groupId; bool m_groupIdHasBeenSet = false; Aws::String m_groupName; bool m_groupNameHasBeenSet = false; Aws::Vector m_ipPermissions; bool m_ipPermissionsHasBeenSet = false; Aws::String m_ipProtocol; bool m_ipProtocolHasBeenSet = false; Aws::String m_sourceSecurityGroupName; bool m_sourceSecurityGroupNameHasBeenSet = false; Aws::String m_sourceSecurityGroupOwnerId; bool m_sourceSecurityGroupOwnerIdHasBeenSet = false; int m_toPort; bool m_toPortHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; Aws::Vector m_tagSpecifications; bool m_tagSpecificationsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws