public class RevokeSecurityGroupIngressRequest extends AmazonWebServiceRequest implements java.io.Serializable
RevokeSecurityGroupIngress operation.
The RevokeSecurityGroupIngress operation revokes permissions from a security group. The permissions used to revoke must be specified using the same values used to grant the permissions.
Permissions are specified by IP protocol (TCP, UDP, or ICMP), the source of the request (by IP range or an Amazon EC2 user-group pair), the source and destination port ranges (for TCP and UDP), and the ICMP codes and types (for ICMP).
Permission changes are quickly propagated to instances within the security group. However, depending on the number of instances in the group, a small delay might occur.
| コンストラクタと説明 |
|---|
RevokeSecurityGroupIngressRequest()
Default constructor for a new RevokeSecurityGroupIngressRequest object.
|
RevokeSecurityGroupIngressRequest(java.lang.String groupName,
java.util.List<IpPermission> ipPermissions)
Constructs a new RevokeSecurityGroupIngressRequest object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCidrIp()
Deprecated
|
java.lang.Integer |
getFromPort()
Deprecated
|
java.lang.String |
getGroupId()
ID of the standard (EC2) or VPC security group to modify.
|
java.lang.String |
getGroupName()
Name of the standard (EC2) security group to modify.
|
java.util.List<IpPermission> |
getIpPermissions()
List of IP permissions to revoke on the specified security group.
|
java.lang.String |
getIpProtocol()
Deprecated
|
java.lang.String |
getSourceSecurityGroupName()
Deprecated
|
java.lang.String |
getSourceSecurityGroupOwnerId()
Deprecated
|
java.lang.Integer |
getToPort()
Deprecated
|
int |
hashCode() |
void |
setCidrIp(java.lang.String cidrIp)
Deprecated
|
void |
setFromPort(java.lang.Integer fromPort)
Deprecated
|
void |
setGroupId(java.lang.String groupId)
ID of the standard (EC2) or VPC security group to modify.
|
void |
setGroupName(java.lang.String groupName)
Name of the standard (EC2) security group to modify.
|
void |
setIpPermissions(java.util.Collection<IpPermission> ipPermissions)
List of IP permissions to revoke on the specified security group.
|
void |
setIpProtocol(java.lang.String ipProtocol)
Deprecated
|
void |
setSourceSecurityGroupName(java.lang.String sourceSecurityGroupName)
Deprecated
|
void |
setSourceSecurityGroupOwnerId(java.lang.String sourceSecurityGroupOwnerId)
Deprecated
|
void |
setToPort(java.lang.Integer toPort)
Deprecated
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RevokeSecurityGroupIngressRequest |
withCidrIp(java.lang.String cidrIp)
Deprecated
Returns a reference to this object so that method calls can be chained together.
|
RevokeSecurityGroupIngressRequest |
withFromPort(java.lang.Integer fromPort)
Deprecated
Returns a reference to this object so that method calls can be chained together.
|
RevokeSecurityGroupIngressRequest |
withGroupId(java.lang.String groupId)
ID of the standard (EC2) or VPC security group to modify.
|
RevokeSecurityGroupIngressRequest |
withGroupName(java.lang.String groupName)
Name of the standard (EC2) security group to modify.
|
RevokeSecurityGroupIngressRequest |
withIpPermissions(java.util.Collection<IpPermission> ipPermissions)
List of IP permissions to revoke on the specified security group.
|
RevokeSecurityGroupIngressRequest |
withIpPermissions(IpPermission... ipPermissions)
List of IP permissions to revoke on the specified security group.
|
RevokeSecurityGroupIngressRequest |
withIpProtocol(java.lang.String ipProtocol)
Deprecated
Returns a reference to this object so that method calls can be chained together.
|
RevokeSecurityGroupIngressRequest |
withSourceSecurityGroupName(java.lang.String sourceSecurityGroupName)
Deprecated
Returns a reference to this object so that method calls can be chained together.
|
RevokeSecurityGroupIngressRequest |
withSourceSecurityGroupOwnerId(java.lang.String sourceSecurityGroupOwnerId)
Deprecated
Returns a reference to this object so that method calls can be chained together.
|
RevokeSecurityGroupIngressRequest |
withToPort(java.lang.Integer toPort)
Deprecated
Returns a reference to this object so that method calls can be chained together.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic RevokeSecurityGroupIngressRequest()
public RevokeSecurityGroupIngressRequest(java.lang.String groupName,
java.util.List<IpPermission> ipPermissions)
groupName - Name of the standard (EC2) security group to modify.
The group must belong to your account. Can be used instead of GroupID
for standard (EC2) security groups.ipPermissions - List of IP permissions to revoke on the specified
security group. For an IP permission to be removed, it must exactly
match one of the IP permissions you specify in this list. Specifying
permissions through IP permissions is the preferred way of revoking
permissions since it offers more flexibility and control.public java.lang.String getGroupName()
public void setGroupName(java.lang.String groupName)
groupName - Name of the standard (EC2) security group to modify. The group must
belong to your account. Can be used instead of GroupID for standard
(EC2) security groups.public RevokeSecurityGroupIngressRequest withGroupName(java.lang.String groupName)
Returns a reference to this object so that method calls can be chained together.
groupName - Name of the standard (EC2) security group to modify. The group must
belong to your account. Can be used instead of GroupID for standard
(EC2) security groups.public java.lang.String getGroupId()
public void setGroupId(java.lang.String groupId)
groupId - ID of the standard (EC2) or VPC security group to modify. The group
must belong to your account. Required for VPC security groups; can be
used instead of GroupName for standard (EC2) security groups.public RevokeSecurityGroupIngressRequest withGroupId(java.lang.String groupId)
Returns a reference to this object so that method calls can be chained together.
groupId - ID of the standard (EC2) or VPC security group to modify. The group
must belong to your account. Required for VPC security groups; can be
used instead of GroupName for standard (EC2) security groups.public java.lang.String getSourceSecurityGroupName()
public void setSourceSecurityGroupName(java.lang.String sourceSecurityGroupName)
sourceSecurityGroupName - Deprecatedpublic RevokeSecurityGroupIngressRequest withSourceSecurityGroupName(java.lang.String sourceSecurityGroupName)
Returns a reference to this object so that method calls can be chained together.
sourceSecurityGroupName - Deprecatedpublic java.lang.String getSourceSecurityGroupOwnerId()
public void setSourceSecurityGroupOwnerId(java.lang.String sourceSecurityGroupOwnerId)
sourceSecurityGroupOwnerId - Deprecatedpublic RevokeSecurityGroupIngressRequest withSourceSecurityGroupOwnerId(java.lang.String sourceSecurityGroupOwnerId)
Returns a reference to this object so that method calls can be chained together.
sourceSecurityGroupOwnerId - Deprecatedpublic java.lang.String getIpProtocol()
public void setIpProtocol(java.lang.String ipProtocol)
ipProtocol - Deprecatedpublic RevokeSecurityGroupIngressRequest withIpProtocol(java.lang.String ipProtocol)
Returns a reference to this object so that method calls can be chained together.
ipProtocol - Deprecatedpublic java.lang.Integer getFromPort()
public void setFromPort(java.lang.Integer fromPort)
fromPort - Deprecatedpublic RevokeSecurityGroupIngressRequest withFromPort(java.lang.Integer fromPort)
Returns a reference to this object so that method calls can be chained together.
fromPort - Deprecatedpublic java.lang.Integer getToPort()
public void setToPort(java.lang.Integer toPort)
toPort - Deprecatedpublic RevokeSecurityGroupIngressRequest withToPort(java.lang.Integer toPort)
Returns a reference to this object so that method calls can be chained together.
toPort - Deprecatedpublic java.lang.String getCidrIp()
public void setCidrIp(java.lang.String cidrIp)
cidrIp - Deprecatedpublic RevokeSecurityGroupIngressRequest withCidrIp(java.lang.String cidrIp)
Returns a reference to this object so that method calls can be chained together.
cidrIp - Deprecatedpublic java.util.List<IpPermission> getIpPermissions()
public void setIpPermissions(java.util.Collection<IpPermission> ipPermissions)
ipPermissions - List of IP permissions to revoke on the specified security group. For
an IP permission to be removed, it must exactly match one of the IP
permissions you specify in this list. Specifying permissions through
IP permissions is the preferred way of revoking permissions since it
offers more flexibility and control.public RevokeSecurityGroupIngressRequest withIpPermissions(IpPermission... ipPermissions)
Returns a reference to this object so that method calls can be chained together.
ipPermissions - List of IP permissions to revoke on the specified security group. For
an IP permission to be removed, it must exactly match one of the IP
permissions you specify in this list. Specifying permissions through
IP permissions is the preferred way of revoking permissions since it
offers more flexibility and control.public RevokeSecurityGroupIngressRequest withIpPermissions(java.util.Collection<IpPermission> ipPermissions)
Returns a reference to this object so that method calls can be chained together.
ipPermissions - List of IP permissions to revoke on the specified security group. For
an IP permission to be removed, it must exactly match one of the IP
permissions you specify in this list. Specifying permissions through
IP permissions is the preferred way of revoking permissions since it
offers more flexibility and control.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object