@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AuthorizeSecurityGroupEgressRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<AuthorizeSecurityGroupEgressRequest>
Contains the parameters for AuthorizeSecurityGroupEgress.
NOOP
Constructor and Description |
---|
AuthorizeSecurityGroupEgressRequest() |
Modifier and Type | Method and Description |
---|---|
AuthorizeSecurityGroupEgressRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getCidrIp()
The CIDR IPv4 address range.
|
Request<AuthorizeSecurityGroupEgressRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Integer |
getFromPort()
The start of port range for the TCP and UDP protocols, or an ICMP type number.
|
String |
getGroupId()
The ID of the security group.
|
List<IpPermission> |
getIpPermissions()
A set of IP permissions.
|
String |
getIpProtocol()
The IP protocol name or number.
|
String |
getSourceSecurityGroupName()
The name of a destination security group.
|
String |
getSourceSecurityGroupOwnerId()
The AWS account number for a destination security group.
|
Integer |
getToPort()
The end of port range for the TCP and UDP protocols, or an ICMP type number.
|
int |
hashCode() |
void |
setCidrIp(String cidrIp)
The CIDR IPv4 address range.
|
void |
setFromPort(Integer fromPort)
The start of port range for the TCP and UDP protocols, or an ICMP type number.
|
void |
setGroupId(String groupId)
The ID of the security group.
|
void |
setIpPermissions(Collection<IpPermission> ipPermissions)
A set of IP permissions.
|
void |
setIpProtocol(String ipProtocol)
The IP protocol name or number.
|
void |
setSourceSecurityGroupName(String sourceSecurityGroupName)
The name of a destination security group.
|
void |
setSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
The AWS account number for a destination security group.
|
void |
setToPort(Integer toPort)
The end of port range for the TCP and UDP protocols, or an ICMP type number.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
AuthorizeSecurityGroupEgressRequest |
withCidrIp(String cidrIp)
The CIDR IPv4 address range.
|
AuthorizeSecurityGroupEgressRequest |
withFromPort(Integer fromPort)
The start of port range for the TCP and UDP protocols, or an ICMP type number.
|
AuthorizeSecurityGroupEgressRequest |
withGroupId(String groupId)
The ID of the security group.
|
AuthorizeSecurityGroupEgressRequest |
withIpPermissions(Collection<IpPermission> ipPermissions)
A set of IP permissions.
|
AuthorizeSecurityGroupEgressRequest |
withIpPermissions(IpPermission... ipPermissions)
A set of IP permissions.
|
AuthorizeSecurityGroupEgressRequest |
withIpProtocol(String ipProtocol)
The IP protocol name or number.
|
AuthorizeSecurityGroupEgressRequest |
withSourceSecurityGroupName(String sourceSecurityGroupName)
The name of a destination security group.
|
AuthorizeSecurityGroupEgressRequest |
withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
The AWS account number for a destination security group.
|
AuthorizeSecurityGroupEgressRequest |
withToPort(Integer toPort)
The end of port range for the TCP and UDP protocols, or an ICMP type number.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setGroupId(String groupId)
The ID of the security group.
groupId
- The ID of the security group.public String getGroupId()
The ID of the security group.
public AuthorizeSecurityGroupEgressRequest withGroupId(String groupId)
The ID of the security group.
groupId
- The ID of the security group.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.
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.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.
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.
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.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.
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.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.
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.
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.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.
ipProtocol
- The IP protocol name or number. We recommend that you specify the protocol in a set of IP permissions
instead.public String getIpProtocol()
The IP protocol name or number. We recommend that you specify the protocol in a set of IP permissions instead.
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.
ipProtocol
- The IP protocol name or number. We recommend that you specify the protocol in a set of IP permissions
instead.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.
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.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.
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.
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.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.
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.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.
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.
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.public void setCidrIp(String cidrIp)
The CIDR IPv4 address range. We recommend that you specify the CIDR range in a set of IP permissions instead.
cidrIp
- The CIDR IPv4 address range. We recommend that you specify the CIDR range in a set of IP permissions
instead.public String getCidrIp()
The CIDR IPv4 address range. We recommend that you specify the CIDR range in a set of IP permissions instead.
public AuthorizeSecurityGroupEgressRequest withCidrIp(String cidrIp)
The CIDR IPv4 address range. We recommend that you specify the CIDR range in a set of IP permissions instead.
cidrIp
- The CIDR IPv4 address range. We recommend that you specify the CIDR range in a set of IP permissions
instead.public List<IpPermission> getIpPermissions()
A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.
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.
ipPermissions
- A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.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)
or withIpPermissions(java.util.Collection)
if you want
to override the existing values.
ipPermissions
- A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.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.
ipPermissions
- A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.public Request<AuthorizeSecurityGroupEgressRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<AuthorizeSecurityGroupEgressRequest>
public String toString()
toString
in class Object
Object.toString()
public AuthorizeSecurityGroupEgressRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.