@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AuthorizeSecurityGroupIngressRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<AuthorizeSecurityGroupIngressRequest>
Contains the parameters for AuthorizeSecurityGroupIngress.
NOOP
Constructor and Description |
---|
AuthorizeSecurityGroupIngressRequest()
Default constructor for AuthorizeSecurityGroupIngressRequest object.
|
AuthorizeSecurityGroupIngressRequest(String groupName,
List<IpPermission> ipPermissions)
Constructs a new AuthorizeSecurityGroupIngressRequest object.
|
Modifier and Type | Method and Description |
---|---|
AuthorizeSecurityGroupIngressRequest |
clone() |
boolean |
equals(Object obj) |
String |
getCidrIp()
The CIDR IPv4 address range.
|
Request<AuthorizeSecurityGroupIngressRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Integer |
getFromPort()
The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number.
|
String |
getGroupId()
The ID of the security group.
|
String |
getGroupName()
[EC2-Classic, default VPC] The name of the security group.
|
List<IpPermission> |
getIpPermissions()
A set of IP permissions.
|
String |
getIpProtocol()
|
String |
getSourceSecurityGroupName()
[EC2-Classic, default VPC] The name of the source security group.
|
String |
getSourceSecurityGroupOwnerId()
[EC2-Classic] The AWS account number for the source security group, if the source security group is in a
different account.
|
Integer |
getToPort()
The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code number.
|
int |
hashCode() |
void |
setCidrIp(String cidrIp)
The CIDR IPv4 address range.
|
void |
setFromPort(Integer fromPort)
The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number.
|
void |
setGroupId(String groupId)
The ID of the security group.
|
void |
setGroupName(String groupName)
[EC2-Classic, default VPC] The name of the security group.
|
void |
setIpPermissions(Collection<IpPermission> ipPermissions)
A set of IP permissions.
|
void |
setIpProtocol(String ipProtocol)
|
void |
setSourceSecurityGroupName(String sourceSecurityGroupName)
[EC2-Classic, default VPC] The name of the source security group.
|
void |
setSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
[EC2-Classic] The AWS account number for the source security group, if the source security group is in a
different account.
|
void |
setToPort(Integer toPort)
The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code number.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
AuthorizeSecurityGroupIngressRequest |
withCidrIp(String cidrIp)
The CIDR IPv4 address range.
|
AuthorizeSecurityGroupIngressRequest |
withFromPort(Integer fromPort)
The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number.
|
AuthorizeSecurityGroupIngressRequest |
withGroupId(String groupId)
The ID of the security group.
|
AuthorizeSecurityGroupIngressRequest |
withGroupName(String groupName)
[EC2-Classic, default VPC] The name of the security group.
|
AuthorizeSecurityGroupIngressRequest |
withIpPermissions(Collection<IpPermission> ipPermissions)
A set of IP permissions.
|
AuthorizeSecurityGroupIngressRequest |
withIpPermissions(IpPermission... ipPermissions)
A set of IP permissions.
|
AuthorizeSecurityGroupIngressRequest |
withIpProtocol(String ipProtocol)
|
AuthorizeSecurityGroupIngressRequest |
withSourceSecurityGroupName(String sourceSecurityGroupName)
[EC2-Classic, default VPC] The name of the source security group.
|
AuthorizeSecurityGroupIngressRequest |
withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
[EC2-Classic] The AWS account number for the source security group, if the source security group is in a
different account.
|
AuthorizeSecurityGroupIngressRequest |
withToPort(Integer toPort)
The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code number.
|
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public AuthorizeSecurityGroupIngressRequest()
public AuthorizeSecurityGroupIngressRequest(String groupName, List<IpPermission> ipPermissions)
groupName
- [EC2-Classic, default VPC] The name of the security group.ipPermissions
- A set of IP permissions. Can be used to specify multiple rules in a single command.public void setGroupName(String groupName)
[EC2-Classic, default VPC] The name of the security group.
groupName
- [EC2-Classic, default VPC] The name of the security group.public String getGroupName()
[EC2-Classic, default VPC] The name of the security group.
public AuthorizeSecurityGroupIngressRequest withGroupName(String groupName)
[EC2-Classic, default VPC] The name of the security group.
groupName
- [EC2-Classic, default VPC] The name of the security group.public void setGroupId(String groupId)
The ID of the security group. Required for a nondefault VPC.
groupId
- The ID of the security group. Required for a nondefault VPC.public String getGroupId()
The ID of the security group. Required for a nondefault VPC.
public AuthorizeSecurityGroupIngressRequest withGroupId(String groupId)
The ID of the security group. Required for a nondefault VPC.
groupId
- The ID of the security group. Required for a nondefault VPC.public void setSourceSecurityGroupName(String sourceSecurityGroupName)
[EC2-Classic, 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. For EC2-VPC, the source security group must be in the same VPC.
sourceSecurityGroupName
- [EC2-Classic, 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. For
EC2-VPC, the source security group must be in the same VPC.public String getSourceSecurityGroupName()
[EC2-Classic, 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. For EC2-VPC, the source security group must be in the same VPC.
public AuthorizeSecurityGroupIngressRequest withSourceSecurityGroupName(String sourceSecurityGroupName)
[EC2-Classic, 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. For EC2-VPC, the source security group must be in the same VPC.
sourceSecurityGroupName
- [EC2-Classic, 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. For
EC2-VPC, the source security group must be in the same VPC.public void setSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
[EC2-Classic] The AWS account number 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.
sourceSecurityGroupOwnerId
- [EC2-Classic] The AWS account number 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.public String getSourceSecurityGroupOwnerId()
[EC2-Classic] The AWS account number 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.
public AuthorizeSecurityGroupIngressRequest withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
[EC2-Classic] The AWS account number 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.
sourceSecurityGroupOwnerId
- [EC2-Classic] The AWS account number 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.public void setIpProtocol(String ipProtocol)
The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). (VPC only)
Use -1
to specify all protocols. If you specify -1
, or a protocol number other than
tcp
, udp
, icmp
, or 58
(ICMPv6), traffic on all ports is
allowed, regardless of any ports you specify. For tcp
, udp
, and icmp
, you
must specify a port range. For protocol 58
(ICMPv6), you can optionally specify a port range; if you
don't, traffic for all types and codes is allowed.
ipProtocol
- The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). (VPC
only) Use -1
to specify all protocols. If you specify -1
, or a protocol number
other than tcp
, udp
, icmp
, or 58
(ICMPv6), traffic on
all ports is allowed, regardless of any ports you specify. For tcp
, udp
, and
icmp
, you must specify a port range. For protocol 58
(ICMPv6), you can
optionally specify a port range; if you don't, traffic for all types and codes is allowed.public String getIpProtocol()
The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). (VPC only)
Use -1
to specify all protocols. If you specify -1
, or a protocol number other than
tcp
, udp
, icmp
, or 58
(ICMPv6), traffic on all ports is
allowed, regardless of any ports you specify. For tcp
, udp
, and icmp
, you
must specify a port range. For protocol 58
(ICMPv6), you can optionally specify a port range; if you
don't, traffic for all types and codes is allowed.
tcp
, udp
, icmp
) or number (see Protocol Numbers).
(VPC only) Use -1
to specify all protocols. If you specify -1
, or a protocol
number other than tcp
, udp
, icmp
, or 58
(ICMPv6),
traffic on all ports is allowed, regardless of any ports you specify. For tcp
,
udp
, and icmp
, you must specify a port range. For protocol 58
(ICMPv6), you can optionally specify a port range; if you don't, traffic for all types and codes is
allowed.public AuthorizeSecurityGroupIngressRequest withIpProtocol(String ipProtocol)
The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). (VPC only)
Use -1
to specify all protocols. If you specify -1
, or a protocol number other than
tcp
, udp
, icmp
, or 58
(ICMPv6), traffic on all ports is
allowed, regardless of any ports you specify. For tcp
, udp
, and icmp
, you
must specify a port range. For protocol 58
(ICMPv6), you can optionally specify a port range; if you
don't, traffic for all types and codes is allowed.
ipProtocol
- The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). (VPC
only) Use -1
to specify all protocols. If you specify -1
, or a protocol number
other than tcp
, udp
, icmp
, or 58
(ICMPv6), traffic on
all ports is allowed, regardless of any ports you specify. For tcp
, udp
, and
icmp
, you must specify a port range. For protocol 58
(ICMPv6), you can
optionally specify a port range; if you don't, traffic for all types and codes is allowed.public void setFromPort(Integer fromPort)
The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number. For the ICMP/ICMPv6 type
number, use -1
to specify all types.
fromPort
- The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number. For the ICMP/ICMPv6
type number, use -1
to specify all types.public Integer getFromPort()
The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number. For the ICMP/ICMPv6 type
number, use -1
to specify all types.
-1
to specify all types.public AuthorizeSecurityGroupIngressRequest withFromPort(Integer fromPort)
The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number. For the ICMP/ICMPv6 type
number, use -1
to specify all types.
fromPort
- The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number. For the ICMP/ICMPv6
type number, use -1
to specify all types.public void setToPort(Integer toPort)
The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code number. For the ICMP/ICMPv6 code
number, use -1
to specify all codes.
toPort
- The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code number. For the ICMP/ICMPv6
code number, use -1
to specify all codes.public Integer getToPort()
The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code number. For the ICMP/ICMPv6 code
number, use -1
to specify all codes.
-1
to specify all codes.public AuthorizeSecurityGroupIngressRequest withToPort(Integer toPort)
The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code number. For the ICMP/ICMPv6 code
number, use -1
to specify all codes.
toPort
- The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code number. For the ICMP/ICMPv6
code number, use -1
to specify all codes.public void setCidrIp(String cidrIp)
The CIDR IPv4 address range. You can't specify this parameter when specifying a source security group.
cidrIp
- The CIDR IPv4 address range. You can't specify this parameter when specifying a source security group.public String getCidrIp()
The CIDR IPv4 address range. You can't specify this parameter when specifying a source security group.
public AuthorizeSecurityGroupIngressRequest withCidrIp(String cidrIp)
The CIDR IPv4 address range. You can't specify this parameter when specifying a source security group.
cidrIp
- The CIDR IPv4 address range. You can't specify this parameter when specifying a source security group.public List<IpPermission> getIpPermissions()
A set of IP permissions. Can be used to specify multiple rules in a single command.
public void setIpPermissions(Collection<IpPermission> ipPermissions)
A set of IP permissions. Can be used to specify multiple rules in a single command.
ipPermissions
- A set of IP permissions. Can be used to specify multiple rules in a single command.public AuthorizeSecurityGroupIngressRequest withIpPermissions(IpPermission... ipPermissions)
A set of IP permissions. Can be used to specify multiple rules in a single command.
NOTE: This method appends the values to the existing list (if any). Use
setIpPermissions(java.util.Collection)
or withIpPermissions(java.util.Collection)
if you want
to override the existing values.
ipPermissions
- A set of IP permissions. Can be used to specify multiple rules in a single command.public AuthorizeSecurityGroupIngressRequest withIpPermissions(Collection<IpPermission> ipPermissions)
A set of IP permissions. Can be used to specify multiple rules in a single command.
ipPermissions
- A set of IP permissions. Can be used to specify multiple rules in a single command.public Request<AuthorizeSecurityGroupIngressRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<AuthorizeSecurityGroupIngressRequest>
public String toString()
toString
in class Object
Object.toString()
public AuthorizeSecurityGroupIngressRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2017. All rights reserved.