Class AuthorizeSecurityGroupEgressRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.AuthorizeSecurityGroupEgressRequest
-
- All Implemented Interfaces:
ReadLimitInfo,DryRunSupportedRequest<AuthorizeSecurityGroupEgressRequest>,Serializable,Cloneable
public class AuthorizeSecurityGroupEgressRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<AuthorizeSecurityGroupEgressRequest>
Contains the parameters for AuthorizeSecurityGroupEgress.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description AuthorizeSecurityGroupEgressRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorizeSecurityGroupEgressRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetCidrIp()The CIDR IP address range.Request<AuthorizeSecurityGroupEgressRequest>getDryRunRequest()This method is intended for internal use only.IntegergetFromPort()The start of port range for the TCP and UDP protocols, or an ICMP type number.StringgetGroupId()The ID of the security group.List<IpPermission>getIpPermissions()A set of IP permissions.StringgetIpProtocol()The IP protocol name or number.StringgetSourceSecurityGroupName()The name of a destination security group.StringgetSourceSecurityGroupOwnerId()The AWS account number for a destination security group.IntegergetToPort()The end of port range for the TCP and UDP protocols, or an ICMP type number.inthashCode()voidsetCidrIp(String cidrIp)The CIDR IP address range.voidsetFromPort(Integer fromPort)The start of port range for the TCP and UDP protocols, or an ICMP type number.voidsetGroupId(String groupId)The ID of the security group.voidsetIpPermissions(Collection<IpPermission> ipPermissions)A set of IP permissions.voidsetIpProtocol(String ipProtocol)The IP protocol name or number.voidsetSourceSecurityGroupName(String sourceSecurityGroupName)The name of a destination security group.voidsetSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)The AWS account number for a destination security group.voidsetToPort(Integer toPort)The end of port range for the TCP and UDP protocols, or an ICMP type number.StringtoString()Returns a string representation of this object; useful for testing and debugging.AuthorizeSecurityGroupEgressRequestwithCidrIp(String cidrIp)The CIDR IP address range.AuthorizeSecurityGroupEgressRequestwithFromPort(Integer fromPort)The start of port range for the TCP and UDP protocols, or an ICMP type number.AuthorizeSecurityGroupEgressRequestwithGroupId(String groupId)The ID of the security group.AuthorizeSecurityGroupEgressRequestwithIpPermissions(IpPermission... ipPermissions)A set of IP permissions.AuthorizeSecurityGroupEgressRequestwithIpPermissions(Collection<IpPermission> ipPermissions)A set of IP permissions.AuthorizeSecurityGroupEgressRequestwithIpProtocol(String ipProtocol)The IP protocol name or number.AuthorizeSecurityGroupEgressRequestwithSourceSecurityGroupName(String sourceSecurityGroupName)The name of a destination security group.AuthorizeSecurityGroupEgressRequestwithSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)The AWS account number for a destination security group.AuthorizeSecurityGroupEgressRequestwithToPort(Integer toPort)The end of port range for the TCP and UDP protocols, or an ICMP type number.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setGroupId
public void setGroupId(String groupId)
The ID of the security group.
- Parameters:
groupId- The ID of the security group.
-
getGroupId
public String getGroupId()
The ID of the security group.
- Returns:
- The ID of the security group.
-
withGroupId
public AuthorizeSecurityGroupEgressRequest withGroupId(String groupId)
The ID of the security group.
- Parameters:
groupId- The ID of the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSourceSecurityGroupName
public void setSourceSecurityGroupName(String sourceSecurityGroupName)
The name of a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
- Parameters:
sourceSecurityGroupName- The name of a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
-
getSourceSecurityGroupName
public String getSourceSecurityGroupName()
The name of a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
- Returns:
- The name of a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
-
withSourceSecurityGroupName
public AuthorizeSecurityGroupEgressRequest withSourceSecurityGroupName(String sourceSecurityGroupName)
The name of a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
- Parameters:
sourceSecurityGroupName- The name of a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSourceSecurityGroupOwnerId
public void setSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
The AWS account number for a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
- Parameters:
sourceSecurityGroupOwnerId- The AWS account number for a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
-
getSourceSecurityGroupOwnerId
public String getSourceSecurityGroupOwnerId()
The AWS account number for a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
- Returns:
- The AWS account number for a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
-
withSourceSecurityGroupOwnerId
public AuthorizeSecurityGroupEgressRequest withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
The AWS account number for a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
- Parameters:
sourceSecurityGroupOwnerId- The AWS account number for a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIpProtocol
public void setIpProtocol(String ipProtocol)
The IP protocol name or number. We recommend that you specify the protocol in a set of IP permissions instead.
- Parameters:
ipProtocol- The IP protocol name or number. We recommend that you specify the protocol in a set of IP permissions instead.
-
getIpProtocol
public String getIpProtocol()
The IP protocol name or number. We recommend that you specify the protocol in a set of IP permissions instead.
- Returns:
- The IP protocol name or number. We recommend that you specify the protocol in a set of IP permissions instead.
-
withIpProtocol
public AuthorizeSecurityGroupEgressRequest withIpProtocol(String ipProtocol)
The IP protocol name or number. We recommend that you specify the protocol in a set of IP permissions instead.
- Parameters:
ipProtocol- The IP protocol name or number. We recommend that you specify the protocol in a set of IP permissions instead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFromPort
public void setFromPort(Integer fromPort)
The start of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.
- Parameters:
fromPort- The start of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.
-
getFromPort
public Integer getFromPort()
The start of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.
- Returns:
- The start of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.
-
withFromPort
public AuthorizeSecurityGroupEgressRequest withFromPort(Integer fromPort)
The start of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.
- Parameters:
fromPort- The start of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setToPort
public void setToPort(Integer toPort)
The end of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.
- Parameters:
toPort- The end of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.
-
getToPort
public Integer getToPort()
The end of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.
- Returns:
- The end of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.
-
withToPort
public AuthorizeSecurityGroupEgressRequest withToPort(Integer toPort)
The end of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.
- Parameters:
toPort- The end of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCidrIp
public void setCidrIp(String cidrIp)
The CIDR IP address range. We recommend that you specify the CIDR range in a set of IP permissions instead.
- Parameters:
cidrIp- The CIDR IP address range. We recommend that you specify the CIDR range in a set of IP permissions instead.
-
getCidrIp
public String getCidrIp()
The CIDR IP address range. We recommend that you specify the CIDR range in a set of IP permissions instead.
- Returns:
- The CIDR IP address range. We recommend that you specify the CIDR range in a set of IP permissions instead.
-
withCidrIp
public AuthorizeSecurityGroupEgressRequest withCidrIp(String cidrIp)
The CIDR IP address range. We recommend that you specify the CIDR range in a set of IP permissions instead.
- Parameters:
cidrIp- The CIDR IP address range. We recommend that you specify the CIDR range in a set of IP permissions instead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getIpPermissions
public List<IpPermission> getIpPermissions()
A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.
- Returns:
- A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.
-
setIpPermissions
public void setIpPermissions(Collection<IpPermission> ipPermissions)
A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.
- Parameters:
ipPermissions- A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.
-
withIpPermissions
public AuthorizeSecurityGroupEgressRequest withIpPermissions(IpPermission... ipPermissions)
A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.
NOTE: This method appends the values to the existing list (if any). Use
setIpPermissions(java.util.Collection)orwithIpPermissions(java.util.Collection)if you want to override the existing values.- Parameters:
ipPermissions- A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withIpPermissions
public AuthorizeSecurityGroupEgressRequest withIpPermissions(Collection<IpPermission> ipPermissions)
A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.
- Parameters:
ipPermissions- A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
public Request<AuthorizeSecurityGroupEgressRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequestin interfaceDryRunSupportedRequest<AuthorizeSecurityGroupEgressRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AuthorizeSecurityGroupEgressRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-