public class RevokeSecurityGroupIngressRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<RevokeSecurityGroupIngressRequest>
Contains the parameters for RevokeSecurityGroupIngress.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
cidrIp
The CIDR IP address range.
|
private java.lang.Integer |
fromPort
The start of port range for the TCP and UDP protocols, or an ICMP type
number.
|
private java.lang.String |
groupId
The ID of the security group.
|
private java.lang.String |
groupName
[EC2-Classic, default VPC] The name of the security group.
|
private SdkInternalList<IpPermission> |
ipPermissions
A set of IP permissions.
|
private java.lang.String |
ipProtocol
|
private java.lang.String |
sourceSecurityGroupName
[EC2-Classic, default VPC] The name of the source security group.
|
private java.lang.String |
sourceSecurityGroupOwnerId
[EC2-Classic] The AWS account ID of the source security group, if the
source security group is in a different account.
|
private java.lang.Integer |
toPort
The end of port range for the TCP and UDP protocols, or an ICMP code
number.
|
NOOP
Constructor and Description |
---|
RevokeSecurityGroupIngressRequest()
Default constructor for RevokeSecurityGroupIngressRequest object.
|
RevokeSecurityGroupIngressRequest(java.lang.String groupName,
java.util.List<IpPermission> ipPermissions)
Constructs a new RevokeSecurityGroupIngressRequest object.
|
Modifier and Type | Method and Description |
---|---|
RevokeSecurityGroupIngressRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCidrIp()
The CIDR IP address range.
|
Request<RevokeSecurityGroupIngressRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.Integer |
getFromPort()
The start of port range for the TCP and UDP protocols, or an ICMP type
number.
|
java.lang.String |
getGroupId()
The ID of the security group.
|
java.lang.String |
getGroupName()
[EC2-Classic, default VPC] The name of the security group.
|
java.util.List<IpPermission> |
getIpPermissions()
A set of IP permissions.
|
java.lang.String |
getIpProtocol()
|
java.lang.String |
getSourceSecurityGroupName()
[EC2-Classic, default VPC] The name of the source security group.
|
java.lang.String |
getSourceSecurityGroupOwnerId()
[EC2-Classic] The AWS account ID of the source security group, if the
source security group is in a different account.
|
java.lang.Integer |
getToPort()
The end of port range for the TCP and UDP protocols, or an ICMP code
number.
|
int |
hashCode() |
void |
setCidrIp(java.lang.String cidrIp)
The CIDR IP address range.
|
void |
setFromPort(java.lang.Integer fromPort)
The start of port range for the TCP and UDP protocols, or an ICMP type
number.
|
void |
setGroupId(java.lang.String groupId)
The ID of the security group.
|
void |
setGroupName(java.lang.String groupName)
[EC2-Classic, default VPC] The name of the security group.
|
void |
setIpPermissions(java.util.Collection<IpPermission> ipPermissions)
A set of IP permissions.
|
void |
setIpProtocol(java.lang.String ipProtocol)
|
void |
setSourceSecurityGroupName(java.lang.String sourceSecurityGroupName)
[EC2-Classic, default VPC] The name of the source security group.
|
void |
setSourceSecurityGroupOwnerId(java.lang.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(java.lang.Integer toPort)
The end of port range for the TCP and UDP protocols, or an ICMP code
number.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RevokeSecurityGroupIngressRequest |
withCidrIp(java.lang.String cidrIp)
The CIDR IP address range.
|
RevokeSecurityGroupIngressRequest |
withFromPort(java.lang.Integer fromPort)
The start of port range for the TCP and UDP protocols, or an ICMP type
number.
|
RevokeSecurityGroupIngressRequest |
withGroupId(java.lang.String groupId)
The ID of the security group.
|
RevokeSecurityGroupIngressRequest |
withGroupName(java.lang.String groupName)
[EC2-Classic, default VPC] The name of the security group.
|
RevokeSecurityGroupIngressRequest |
withIpPermissions(java.util.Collection<IpPermission> ipPermissions)
A set of IP permissions.
|
RevokeSecurityGroupIngressRequest |
withIpPermissions(IpPermission... ipPermissions)
A set of IP permissions.
|
RevokeSecurityGroupIngressRequest |
withIpProtocol(java.lang.String ipProtocol)
|
RevokeSecurityGroupIngressRequest |
withSourceSecurityGroupName(java.lang.String sourceSecurityGroupName)
[EC2-Classic, default VPC] The name of the source security group.
|
RevokeSecurityGroupIngressRequest |
withSourceSecurityGroupOwnerId(java.lang.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(java.lang.Integer toPort)
The end of port range for the TCP and UDP protocols, or an ICMP code
number.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String groupName
[EC2-Classic, default VPC] The name of the security group.
private java.lang.String groupId
The ID of the security group. Required for a security group in a nondefault VPC.
private java.lang.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.
private java.lang.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.
private java.lang.String ipProtocol
The IP protocol name (tcp
, udp
,
icmp
) or number (see Protocol Numbers). Use -1
to specify all.
private java.lang.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.
private java.lang.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.
private java.lang.String cidrIp
The CIDR IP address range. You can't specify this parameter when specifying a source security group.
private SdkInternalList<IpPermission> ipPermissions
A set of IP permissions. You can't specify a source security group and a CIDR IP address range.
public RevokeSecurityGroupIngressRequest()
public RevokeSecurityGroupIngressRequest(java.lang.String groupName, java.util.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(java.lang.String groupName)
[EC2-Classic, default VPC] The name of the security group.
groupName
- [EC2-Classic, default VPC] The name of the security group.public java.lang.String getGroupName()
[EC2-Classic, default VPC] The name of the security group.
public RevokeSecurityGroupIngressRequest withGroupName(java.lang.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(java.lang.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 java.lang.String getGroupId()
The ID of the security group. Required for a security group in a nondefault VPC.
public RevokeSecurityGroupIngressRequest withGroupId(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.String getCidrIp()
The CIDR IP address range. You can't specify this parameter when specifying a source security group.
public RevokeSecurityGroupIngressRequest withCidrIp(java.lang.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 java.util.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(java.util.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(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public RevokeSecurityGroupIngressRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()