@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RevokeSecurityGroupIngressRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<RevokeSecurityGroupIngressRequest>
Contains the parameters for RevokeSecurityGroupIngress.
NOOP
Constructor and Description |
---|
RevokeSecurityGroupIngressRequest()
Default constructor for RevokeSecurityGroupIngressRequest object.
|
RevokeSecurityGroupIngressRequest(String groupName,
List<IpPermission> ipPermissions)
Constructs a new RevokeSecurityGroupIngressRequest object.
|
Modifier and Type | Method and Description |
---|---|
RevokeSecurityGroupIngressRequest |
clone() |
boolean |
equals(Object obj) |
String |
getCidrIp()
The CIDR IP address range.
|
Request<RevokeSecurityGroupIngressRequest> |
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 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 ID of 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 code number.
|
int |
hashCode() |
void |
setCidrIp(String cidrIp)
The CIDR IP address range.
|
void |
setFromPort(Integer fromPort)
The start of port range for the TCP and UDP protocols, or an ICMP 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 ID of 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 code number.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
RevokeSecurityGroupIngressRequest |
withCidrIp(String cidrIp)
The CIDR IP address range.
|
RevokeSecurityGroupIngressRequest |
withFromPort(Integer fromPort)
The start of port range for the TCP and UDP protocols, or an ICMP type number.
|
RevokeSecurityGroupIngressRequest |
withGroupId(String groupId)
The ID of the security group.
|
RevokeSecurityGroupIngressRequest |
withGroupName(String groupName)
[EC2-Classic, default VPC] The name of the security group.
|
RevokeSecurityGroupIngressRequest |
withIpPermissions(Collection<IpPermission> ipPermissions)
A set of IP permissions.
|
RevokeSecurityGroupIngressRequest |
withIpPermissions(IpPermission... ipPermissions)
A set of IP permissions.
|
RevokeSecurityGroupIngressRequest |
withIpProtocol(String ipProtocol)
|
RevokeSecurityGroupIngressRequest |
withSourceSecurityGroupName(String sourceSecurityGroupName)
[EC2-Classic, default VPC] The name of the source security group.
|
RevokeSecurityGroupIngressRequest |
withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
[EC2-Classic] The AWS account ID of the source security group, if the source security group is in a different
account.
|
RevokeSecurityGroupIngressRequest |
withToPort(Integer toPort)
The end of port range for the TCP and UDP protocols, or an ICMP 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 RevokeSecurityGroupIngressRequest()
public RevokeSecurityGroupIngressRequest(String groupName, List<IpPermission> ipPermissions)
groupName
- [EC2-Classic, default VPC] The name of the security group.ipPermissions
- A set of IP permissions. You can't specify a source security group and a CIDR IP address range.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 RevokeSecurityGroupIngressRequest 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 security group in a nondefault VPC.
groupId
- The ID of the security group. Required for a security group in a nondefault VPC.public String getGroupId()
The ID of the security group. Required for a security group in a nondefault VPC.
public RevokeSecurityGroupIngressRequest withGroupId(String groupId)
The ID of the security group. Required for a security group in a nondefault VPC.
groupId
- The ID of the security group. Required for a security group in 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. For EC2-VPC, the source security group must be in the same VPC. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.
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. For EC2-VPC, the source security group must be in the same VPC.
To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.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. For EC2-VPC, the source security group must be in the same VPC. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.
public RevokeSecurityGroupIngressRequest 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. For EC2-VPC, the source security group must be in the same VPC. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.
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. For EC2-VPC, the source security group must be in the same VPC.
To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.public void setSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
[EC2-Classic] The AWS account ID of 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. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.
sourceSecurityGroupOwnerId
- [EC2-Classic] The AWS account ID of 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. To revoke a
specific rule for an IP protocol and port range, use a set of IP permissions instead.public String getSourceSecurityGroupOwnerId()
[EC2-Classic] The AWS account ID of 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. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.
public RevokeSecurityGroupIngressRequest withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
[EC2-Classic] The AWS account ID of 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. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.
sourceSecurityGroupOwnerId
- [EC2-Classic] The AWS account ID of 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. To revoke a
specific rule for an 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). Use
-1
to specify all.
ipProtocol
- The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). Use
-1
to specify all.public String getIpProtocol()
The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). Use
-1
to specify all.
tcp
, udp
, icmp
) or number (see Protocol Numbers). Use
-1
to specify all.public RevokeSecurityGroupIngressRequest withIpProtocol(String ipProtocol)
The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). Use
-1
to specify all.
ipProtocol
- The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). Use
-1
to specify all.public void setFromPort(Integer fromPort)
The start of port range for the TCP and UDP protocols, or an ICMP type number. For the ICMP type number, use
-1
to specify all ICMP types.
fromPort
- The start of port range for the TCP and UDP protocols, or an ICMP type number. For the ICMP type number,
use -1
to specify all ICMP types.public Integer getFromPort()
The start of port range for the TCP and UDP protocols, or an ICMP type number. For the ICMP type number, use
-1
to specify all ICMP types.
-1
to specify all ICMP types.public RevokeSecurityGroupIngressRequest withFromPort(Integer fromPort)
The start of port range for the TCP and UDP protocols, or an ICMP type number. For the ICMP type number, use
-1
to specify all ICMP types.
fromPort
- The start of port range for the TCP and UDP protocols, or an ICMP type number. For the ICMP type number,
use -1
to specify all ICMP types.public void setToPort(Integer toPort)
The end of port range for the TCP and UDP protocols, or an ICMP code number. For the ICMP code number, use
-1
to specify all ICMP codes for the ICMP type.
toPort
- The end of port range for the TCP and UDP protocols, or an ICMP code number. For the ICMP code number, use
-1
to specify all ICMP codes for the ICMP type.public Integer getToPort()
The end of port range for the TCP and UDP protocols, or an ICMP code number. For the ICMP code number, use
-1
to specify all ICMP codes for the ICMP type.
-1
to specify all ICMP codes for the ICMP type.public RevokeSecurityGroupIngressRequest withToPort(Integer toPort)
The end of port range for the TCP and UDP protocols, or an ICMP code number. For the ICMP code number, use
-1
to specify all ICMP codes for the ICMP type.
toPort
- The end of port range for the TCP and UDP protocols, or an ICMP code number. For the ICMP code number, use
-1
to specify all ICMP codes for the ICMP type.public void setCidrIp(String cidrIp)
The CIDR IP address range. You can't specify this parameter when specifying a source security group.
cidrIp
- The CIDR IP address range. You can't specify this parameter when specifying a source security group.public String getCidrIp()
The CIDR IP address range. You can't specify this parameter when specifying a source security group.
public RevokeSecurityGroupIngressRequest withCidrIp(String cidrIp)
The CIDR IP address range. You can't specify this parameter when specifying a source security group.
cidrIp
- The CIDR IP address range. You can't specify this parameter when specifying a source security group.public List<IpPermission> getIpPermissions()
A set of IP permissions. You can't specify a source security group and a CIDR IP address range.
public void setIpPermissions(Collection<IpPermission> ipPermissions)
A set of IP permissions. You can't specify a source security group and a CIDR IP address range.
ipPermissions
- A set of IP permissions. You can't specify a source security group and a CIDR IP address range.public RevokeSecurityGroupIngressRequest withIpPermissions(IpPermission... ipPermissions)
A set of IP permissions. You can't specify a source security group and a CIDR IP address range.
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. You can't specify a source security group and a CIDR IP address range.public RevokeSecurityGroupIngressRequest withIpPermissions(Collection<IpPermission> ipPermissions)
A set of IP permissions. You can't specify a source security group and a CIDR IP address range.
ipPermissions
- A set of IP permissions. You can't specify a source security group and a CIDR IP address range.public Request<RevokeSecurityGroupIngressRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<RevokeSecurityGroupIngressRequest>
public String toString()
toString
in class Object
Object.toString()
public RevokeSecurityGroupIngressRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2017. All rights reserved.