Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.ec2.model
Class AuthorizeSecurityGroupEgressRequest

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

public class AuthorizeSecurityGroupEgressRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the AuthorizeSecurityGroupEgress operation.

This action applies only to security groups in a VPC; it's not supported for 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 adds one or more egress rules to a VPC security group. Specifically, this permits instances in a security group to send traffic to either one or more destination CIDR IP address ranges, or to one or more destination security groups in the same VPC.

Each rule consists of the protocol (e.g., TCP), plus either a CIDR range, or a source group. For the TCP and UDP protocols, you must also specify the destination port or port range. For the ICMP protocol, you must also specify the ICMP type and code. You can use -1 as a wildcard for the ICMP type or code.

Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

Important: For VPC security groups: You can have up to 50 rules total per group (covering both ingress and egress).

See Also:
AmazonEC2.authorizeSecurityGroupEgress(AuthorizeSecurityGroupEgressRequest), Serialized Form

Constructor Summary
AuthorizeSecurityGroupEgressRequest()
           
 
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.
 AuthorizeSecurityGroupEgressRequest withCidrIp(String cidrIp)
          Deprecated.
 AuthorizeSecurityGroupEgressRequest withFromPort(Integer fromPort)
          Deprecated.
 AuthorizeSecurityGroupEgressRequest withGroupId(String groupId)
          ID of the VPC security group to modify.
 AuthorizeSecurityGroupEgressRequest withIpPermissions(Collection<IpPermission> ipPermissions)
          List of IP permissions to authorize on the specified security group.
 AuthorizeSecurityGroupEgressRequest withIpPermissions(IpPermission... ipPermissions)
          List of IP permissions to authorize on the specified security group.
 AuthorizeSecurityGroupEgressRequest withIpProtocol(String ipProtocol)
          Deprecated.
 AuthorizeSecurityGroupEgressRequest withSourceSecurityGroupName(String sourceSecurityGroupName)
          Deprecated.
 AuthorizeSecurityGroupEgressRequest withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
          Deprecated.
 AuthorizeSecurityGroupEgressRequest 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

AuthorizeSecurityGroupEgressRequest

public AuthorizeSecurityGroupEgressRequest()
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 AuthorizeSecurityGroupEgressRequest 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 AuthorizeSecurityGroupEgressRequest 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 AuthorizeSecurityGroupEgressRequest 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 AuthorizeSecurityGroupEgressRequest 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 AuthorizeSecurityGroupEgressRequest 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 AuthorizeSecurityGroupEgressRequest 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 AuthorizeSecurityGroupEgressRequest 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 AuthorizeSecurityGroupEgressRequest 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 AuthorizeSecurityGroupEgressRequest 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.