|
|||||||
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
.
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.
AmazonEC2.revokeSecurityGroupIngress(RevokeSecurityGroupIngressRequest)
Constructor Summary | |
---|---|
RevokeSecurityGroupIngressRequest()
Default constructor for a new RevokeSecurityGroupIngressRequest object. |
|
RevokeSecurityGroupIngressRequest(String groupName,
List<IpPermission> ipPermissions)
Constructs a new RevokeSecurityGroupIngressRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getCidrIp()
Deprecated |
Integer |
getFromPort()
Deprecated |
String |
getGroupId()
ID of the standard (EC2) or VPC security group to modify. |
String |
getGroupName()
Name of the standard (EC2) security group to modify. |
List<IpPermission> |
getIpPermissions()
List of IP permissions to revoke on the specified security group. |
String |
getIpProtocol()
Deprecated |
String |
getSourceSecurityGroupName()
Deprecated |
String |
getSourceSecurityGroupOwnerId()
Deprecated |
Integer |
getToPort()
Deprecated |
int |
hashCode()
|
void |
setCidrIp(String cidrIp)
Deprecated |
void |
setFromPort(Integer fromPort)
Deprecated |
void |
setGroupId(String groupId)
ID of the standard (EC2) or VPC security group to modify. |
void |
setGroupName(String groupName)
Name of the standard (EC2) security group to modify. |
void |
setIpPermissions(Collection<IpPermission> ipPermissions)
List of IP permissions to revoke on the specified security group. |
void |
setIpProtocol(String ipProtocol)
Deprecated |
void |
setSourceSecurityGroupName(String sourceSecurityGroupName)
Deprecated |
void |
setSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
Deprecated |
void |
setToPort(Integer toPort)
Deprecated |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
RevokeSecurityGroupIngressRequest |
withCidrIp(String cidrIp)
Deprecated |
RevokeSecurityGroupIngressRequest |
withFromPort(Integer fromPort)
Deprecated |
RevokeSecurityGroupIngressRequest |
withGroupId(String groupId)
ID of the standard (EC2) or VPC security group to modify. |
RevokeSecurityGroupIngressRequest |
withGroupName(String groupName)
Name of the standard (EC2) security group to modify. |
RevokeSecurityGroupIngressRequest |
withIpPermissions(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(String ipProtocol)
Deprecated |
RevokeSecurityGroupIngressRequest |
withSourceSecurityGroupName(String sourceSecurityGroupName)
Deprecated |
RevokeSecurityGroupIngressRequest |
withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
Deprecated |
RevokeSecurityGroupIngressRequest |
withToPort(Integer toPort)
Deprecated |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RevokeSecurityGroupIngressRequest()
public RevokeSecurityGroupIngressRequest(String groupName, 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.Method Detail |
---|
public String getGroupName()
public void setGroupName(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(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 String getGroupId()
public void setGroupId(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(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 String getSourceSecurityGroupName()
public void setSourceSecurityGroupName(String sourceSecurityGroupName)
sourceSecurityGroupName
- Deprecatedpublic RevokeSecurityGroupIngressRequest withSourceSecurityGroupName(String sourceSecurityGroupName)
Returns a reference to this object so that method calls can be chained together.
sourceSecurityGroupName
- Deprecated
public String getSourceSecurityGroupOwnerId()
public void setSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
sourceSecurityGroupOwnerId
- Deprecatedpublic RevokeSecurityGroupIngressRequest withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
Returns a reference to this object so that method calls can be chained together.
sourceSecurityGroupOwnerId
- Deprecated
public String getIpProtocol()
public void setIpProtocol(String ipProtocol)
ipProtocol
- Deprecatedpublic RevokeSecurityGroupIngressRequest withIpProtocol(String ipProtocol)
Returns a reference to this object so that method calls can be chained together.
ipProtocol
- Deprecated
public Integer getFromPort()
public void setFromPort(Integer fromPort)
fromPort
- Deprecatedpublic RevokeSecurityGroupIngressRequest withFromPort(Integer fromPort)
Returns a reference to this object so that method calls can be chained together.
fromPort
- Deprecated
public Integer getToPort()
public void setToPort(Integer toPort)
toPort
- Deprecatedpublic RevokeSecurityGroupIngressRequest withToPort(Integer toPort)
Returns a reference to this object so that method calls can be chained together.
toPort
- Deprecated
public String getCidrIp()
public void setCidrIp(String cidrIp)
cidrIp
- Deprecatedpublic RevokeSecurityGroupIngressRequest withCidrIp(String cidrIp)
Returns a reference to this object so that method calls can be chained together.
cidrIp
- Deprecated
public List<IpPermission> getIpPermissions()
public void setIpPermissions(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(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 String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |