Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.ec2.model
Class RevokeSecurityGroupEgressRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.RevokeSecurityGroupEgressRequest
All Implemented Interfaces:
Serializable

public class RevokeSecurityGroupEgressRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the RevokeSecurityGroupEgress operation.

This action applies only to security groups in a VPC. It doesn't work with EC2 security groups. For information about Amazon Virtual Private Cloud and VPC security groups, go to the Amazon Virtual Private Cloud User Guide.

The action removes one or more egress rules from a VPC security group. The values that you specify in the revoke request (e.g., ports, etc.) must match the existing rule's values in order for the rule to be revoked.

Each rule consists of the protocol, and the CIDR range or destination 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.

See Also:
AmazonEC2.revokeSecurityGroupEgress(RevokeSecurityGroupEgressRequest), Serialized Form

Constructor Summary
RevokeSecurityGroupEgressRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getCidrIp()
          Deprecated.
 Integer getFromPort()
          Deprecated.
 String getGroupId()
          ID of the VPC security group to modify.
 List<IpPermission> getIpPermissions()
          List of IP permissions to authorize 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 VPC security group to modify.
 void setIpPermissions(Collection<IpPermission> ipPermissions)
          List of IP permissions to authorize 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.
 RevokeSecurityGroupEgressRequest withCidrIp(String cidrIp)
          Deprecated.
 RevokeSecurityGroupEgressRequest withFromPort(Integer fromPort)
          Deprecated.
 RevokeSecurityGroupEgressRequest withGroupId(String groupId)
          ID of the VPC security group to modify.
 RevokeSecurityGroupEgressRequest withIpPermissions(Collection<IpPermission> ipPermissions)
          List of IP permissions to authorize on the specified security group.
 RevokeSecurityGroupEgressRequest withIpPermissions(IpPermission... ipPermissions)
          List of IP permissions to authorize on the specified security group.
 RevokeSecurityGroupEgressRequest withIpProtocol(String ipProtocol)
          Deprecated.
 RevokeSecurityGroupEgressRequest withSourceSecurityGroupName(String sourceSecurityGroupName)
          Deprecated.
 RevokeSecurityGroupEgressRequest withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
          Deprecated.
 RevokeSecurityGroupEgressRequest withToPort(Integer toPort)
          Deprecated.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RevokeSecurityGroupEgressRequest

public RevokeSecurityGroupEgressRequest()
Method Detail

getGroupId

public String getGroupId()
ID of the VPC security group to modify.

Returns:
ID of the VPC security group to modify.

setGroupId

public void setGroupId(String groupId)
ID of the VPC security group to modify.

Parameters:
groupId - ID of the VPC security group to modify.

withGroupId

public RevokeSecurityGroupEgressRequest withGroupId(String groupId)
ID of the VPC security group to modify.

Returns a reference to this object so that method calls can be chained together.

Parameters:
groupId - ID of the VPC security group to modify.
Returns:
A reference to this updated object so that method calls can be chained together.

getSourceSecurityGroupName

public String getSourceSecurityGroupName()
Deprecated.

Returns:
Deprecated.

setSourceSecurityGroupName

public void setSourceSecurityGroupName(String sourceSecurityGroupName)
Deprecated.

Parameters:
sourceSecurityGroupName - Deprecated.

withSourceSecurityGroupName

public RevokeSecurityGroupEgressRequest withSourceSecurityGroupName(String sourceSecurityGroupName)
Deprecated.

Returns a reference to this object so that method calls can be chained together.

Parameters:
sourceSecurityGroupName - Deprecated.
Returns:
A reference to this updated object so that method calls can be chained together.

getSourceSecurityGroupOwnerId

public String getSourceSecurityGroupOwnerId()
Deprecated.

Returns:
Deprecated.

setSourceSecurityGroupOwnerId

public void setSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
Deprecated.

Parameters:
sourceSecurityGroupOwnerId - Deprecated.

withSourceSecurityGroupOwnerId

public RevokeSecurityGroupEgressRequest withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
Deprecated.

Returns a reference to this object so that method calls can be chained together.

Parameters:
sourceSecurityGroupOwnerId - Deprecated.
Returns:
A reference to this updated object so that method calls can be chained together.

getIpProtocol

public String getIpProtocol()
Deprecated.

Returns:
Deprecated.

setIpProtocol

public void setIpProtocol(String ipProtocol)
Deprecated.

Parameters:
ipProtocol - Deprecated.

withIpProtocol

public RevokeSecurityGroupEgressRequest withIpProtocol(String ipProtocol)
Deprecated.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ipProtocol - Deprecated.
Returns:
A reference to this updated object so that method calls can be chained together.

getFromPort

public Integer getFromPort()
Deprecated.

Returns:
Deprecated.

setFromPort

public void setFromPort(Integer fromPort)
Deprecated.

Parameters:
fromPort - Deprecated.

withFromPort

public RevokeSecurityGroupEgressRequest withFromPort(Integer fromPort)
Deprecated.

Returns a reference to this object so that method calls can be chained together.

Parameters:
fromPort - Deprecated.
Returns:
A reference to this updated object so that method calls can be chained together.

getToPort

public Integer getToPort()
Deprecated.

Returns:
Deprecated.

setToPort

public void setToPort(Integer toPort)
Deprecated.

Parameters:
toPort - Deprecated.

withToPort

public RevokeSecurityGroupEgressRequest withToPort(Integer toPort)
Deprecated.

Returns a reference to this object so that method calls can be chained together.

Parameters:
toPort - Deprecated.
Returns:
A reference to this updated object so that method calls can be chained together.

getCidrIp

public String getCidrIp()
Deprecated.

Returns:
Deprecated.

setCidrIp

public void setCidrIp(String cidrIp)
Deprecated.

Parameters:
cidrIp - Deprecated.

withCidrIp

public RevokeSecurityGroupEgressRequest withCidrIp(String cidrIp)
Deprecated.

Returns a reference to this object so that method calls can be chained together.

Parameters:
cidrIp - Deprecated.
Returns:
A reference to this updated object so that method calls can be chained together.

getIpPermissions

public List<IpPermission> getIpPermissions()
List of IP permissions to authorize on the specified security group. Specifying permissions through IP permissions is the preferred way of authorizing permissions since it offers more flexibility and control.

Returns:
List of IP permissions to authorize on the specified security group. Specifying permissions through IP permissions is the preferred way of authorizing permissions since it offers more flexibility and control.

setIpPermissions

public void setIpPermissions(Collection<IpPermission> ipPermissions)
List of IP permissions to authorize on the specified security group. Specifying permissions through IP permissions is the preferred way of authorizing permissions since it offers more flexibility and control.

Parameters:
ipPermissions - List of IP permissions to authorize on the specified security group. Specifying permissions through IP permissions is the preferred way of authorizing permissions since it offers more flexibility and control.

withIpPermissions

public RevokeSecurityGroupEgressRequest withIpPermissions(IpPermission... ipPermissions)
List of IP permissions to authorize on the specified security group. Specifying permissions through IP permissions is the preferred way of authorizing permissions since it offers more flexibility and control.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ipPermissions - List of IP permissions to authorize on the specified security group. Specifying permissions through IP permissions is the preferred way of authorizing permissions since it offers more flexibility and control.
Returns:
A reference to this updated object so that method calls can be chained together.

withIpPermissions

public RevokeSecurityGroupEgressRequest withIpPermissions(Collection<IpPermission> ipPermissions)
List of IP permissions to authorize on the specified security group. Specifying permissions through IP permissions is the preferred way of authorizing permissions since it offers more flexibility and control.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ipPermissions - List of IP permissions to authorize on the specified security group. Specifying permissions through IP permissions is the preferred way of authorizing permissions since it offers more flexibility and control.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.