|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.RevokeSecurityGroupIngressRequest
public class RevokeSecurityGroupIngressRequest
Container for the parameters to the RevokeSecurityGroupIngress operation
.
Removes one or more ingress rules from a security group. The values that you specify in the revoke request (for example, ports) must match the existing rule's values for the rule to be removed.
Each rule consists of the protocol and the CIDR range or source security group. For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code.
Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.
AmazonEC2.revokeSecurityGroupIngress(RevokeSecurityGroupIngressRequest)
,
Serialized FormConstructor Summary | |
---|---|
RevokeSecurityGroupIngressRequest()
Default constructor for a new RevokeSecurityGroupIngressRequest object. |
|
RevokeSecurityGroupIngressRequest(java.lang.String groupName,
java.util.List<IpPermission> ipPermissions)
Constructs a new RevokeSecurityGroupIngressRequest object. |
Method Summary | |
---|---|
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()
|
java.lang.String |
getIpProtocol()
The IP protocol name ( tcp , udp ,
icmp ) or number (see Protocol
Numbers). |
java.lang.String |
getSourceSecurityGroupName()
[EC2-Classic, default VPC] The name of the source security group. |
java.lang.String |
getSourceSecurityGroupOwnerId()
The ID of the source security group. |
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)
|
void |
setIpProtocol(java.lang.String ipProtocol)
The IP protocol name ( tcp , udp ,
icmp ) or number (see Protocol
Numbers). |
void |
setSourceSecurityGroupName(java.lang.String sourceSecurityGroupName)
[EC2-Classic, default VPC] The name of the source security group. |
void |
setSourceSecurityGroupOwnerId(java.lang.String sourceSecurityGroupOwnerId)
The ID of the source security group. |
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)
|
RevokeSecurityGroupIngressRequest |
withIpPermissions(IpPermission... ipPermissions)
|
RevokeSecurityGroupIngressRequest |
withIpProtocol(java.lang.String ipProtocol)
The IP protocol name ( tcp , udp ,
icmp ) or number (see Protocol
Numbers). |
RevokeSecurityGroupIngressRequest |
withSourceSecurityGroupName(java.lang.String sourceSecurityGroupName)
[EC2-Classic, default VPC] The name of the source security group. |
RevokeSecurityGroupIngressRequest |
withSourceSecurityGroupOwnerId(java.lang.String sourceSecurityGroupOwnerId)
The ID of the source security group. |
RevokeSecurityGroupIngressRequest |
withToPort(java.lang.Integer toPort)
The end of port range for the TCP and UDP protocols, or an ICMP code number. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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
- Method Detail |
---|
public java.lang.String getGroupName()
public void setGroupName(java.lang.String groupName)
groupName
- [EC2-Classic, default VPC] The name of the security group.public RevokeSecurityGroupIngressRequest withGroupName(java.lang.String groupName)
Returns a reference to this object so that method calls can be chained together.
groupName
- [EC2-Classic, default VPC] The name of the security group.
public java.lang.String getGroupId()
public void setGroupId(java.lang.String groupId)
groupId
- The ID of the security group.public RevokeSecurityGroupIngressRequest withGroupId(java.lang.String groupId)
Returns a reference to this object so that method calls can be chained together.
groupId
- The ID of the security group.
public java.lang.String getSourceSecurityGroupName()
public void setSourceSecurityGroupName(java.lang.String sourceSecurityGroupName)
sourceSecurityGroupName
- [EC2-Classic, default VPC] The name of the source security group. You
can't specify a source security group and a CIDR IP address range.public RevokeSecurityGroupIngressRequest withSourceSecurityGroupName(java.lang.String sourceSecurityGroupName)
Returns a reference to this object so that method calls can be chained together.
sourceSecurityGroupName
- [EC2-Classic, default VPC] The name of the source security group. You
can't specify a source security group and a CIDR IP address range.
public java.lang.String getSourceSecurityGroupOwnerId()
public void setSourceSecurityGroupOwnerId(java.lang.String sourceSecurityGroupOwnerId)
sourceSecurityGroupOwnerId
- The ID of the source security group. You can't specify a source
security group and a CIDR IP address range.public RevokeSecurityGroupIngressRequest withSourceSecurityGroupOwnerId(java.lang.String sourceSecurityGroupOwnerId)
Returns a reference to this object so that method calls can be chained together.
sourceSecurityGroupOwnerId
- The ID of the source security group. You can't specify a source
security group and a CIDR IP address range.
public java.lang.String getIpProtocol()
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 void setIpProtocol(java.lang.String ipProtocol)
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 RevokeSecurityGroupIngressRequest withIpProtocol(java.lang.String ipProtocol)
tcp
, udp
,
icmp
) or number (see Protocol
Numbers). Use -1
to specify all.
Returns a reference to this object so that method calls can be chained together.
ipProtocol
- The IP protocol name (tcp
, udp
,
icmp
) or number (see Protocol
Numbers). Use -1
to specify all.
public java.lang.Integer getFromPort()
-1
to specify all
ICMP types.
-1
to specify all
ICMP types.public void setFromPort(java.lang.Integer fromPort)
-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 RevokeSecurityGroupIngressRequest withFromPort(java.lang.Integer fromPort)
-1
to specify all
ICMP types.
Returns a reference to this object so that method calls can be chained together.
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 getToPort()
-1
to specify all
ICMP codes for the ICMP type.
-1
to specify all
ICMP codes for the ICMP type.public void setToPort(java.lang.Integer toPort)
-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 RevokeSecurityGroupIngressRequest withToPort(java.lang.Integer toPort)
-1
to specify all
ICMP codes for the ICMP type.
Returns a reference to this object so that method calls can be chained together.
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.String getCidrIp()
public void setCidrIp(java.lang.String cidrIp)
cidrIp
- The CIDR IP address range. You can't specify this parameter when
specifying a source security group.public RevokeSecurityGroupIngressRequest withCidrIp(java.lang.String cidrIp)
Returns a reference to this object so that method calls can be chained together.
cidrIp
- The CIDR IP address range. You can't specify this parameter when
specifying a source security group.
public java.util.List<IpPermission> getIpPermissions()
public void setIpPermissions(java.util.Collection<IpPermission> ipPermissions)
ipPermissions
- public RevokeSecurityGroupIngressRequest withIpPermissions(IpPermission... ipPermissions)
Returns a reference to this object so that method calls can be chained together.
ipPermissions
-
public RevokeSecurityGroupIngressRequest withIpPermissions(java.util.Collection<IpPermission> ipPermissions)
Returns a reference to this object so that method calls can be chained together.
ipPermissions
-
public Request<RevokeSecurityGroupIngressRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<RevokeSecurityGroupIngressRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |