@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RevokeSecurityGroupEgressRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<RevokeSecurityGroupEgressRequest>
Contains the parameters for RevokeSecurityGroupEgress.
NOOP
Constructor and Description |
---|
RevokeSecurityGroupEgressRequest() |
Modifier and Type | Method and Description |
---|---|
RevokeSecurityGroupEgressRequest |
clone() |
boolean |
equals(Object obj) |
String |
getCidrIp()
The CIDR IP address range.
|
Request<RevokeSecurityGroupEgressRequest> |
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 IP 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.
|
RevokeSecurityGroupEgressRequest |
withCidrIp(String cidrIp)
The CIDR IP address range.
|
RevokeSecurityGroupEgressRequest |
withFromPort(Integer fromPort)
The start of port range for the TCP and UDP protocols, or an ICMP type number.
|
RevokeSecurityGroupEgressRequest |
withGroupId(String groupId)
The ID of the security group.
|
RevokeSecurityGroupEgressRequest |
withIpPermissions(Collection<IpPermission> ipPermissions)
A set of IP permissions.
|
RevokeSecurityGroupEgressRequest |
withIpPermissions(IpPermission... ipPermissions)
A set of IP permissions.
|
RevokeSecurityGroupEgressRequest |
withIpProtocol(String ipProtocol)
The IP protocol name or number.
|
RevokeSecurityGroupEgressRequest |
withSourceSecurityGroupName(String sourceSecurityGroupName)
The name of a destination security group.
|
RevokeSecurityGroupEgressRequest |
withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
The AWS account number for a destination security group.
|
RevokeSecurityGroupEgressRequest |
withToPort(Integer toPort)
The end of port range for the TCP and UDP protocols, or an ICMP type number.
|
addHandlerContext, copyBaseTo, 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 RevokeSecurityGroupEgressRequest 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 revoke 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 revoke 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 revoke outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
public RevokeSecurityGroupEgressRequest withSourceSecurityGroupName(String sourceSecurityGroupName)
The name of a destination security group. To revoke 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 revoke 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 revoke 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 revoke 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 revoke outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
public RevokeSecurityGroupEgressRequest withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
The AWS account number for a destination security group. To revoke 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 revoke 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 RevokeSecurityGroupEgressRequest 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 RevokeSecurityGroupEgressRequest 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 RevokeSecurityGroupEgressRequest 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 IP address range. We recommend that you specify the CIDR range in a set of IP permissions instead.
cidrIp
- The CIDR IP address range. We recommend that you specify the CIDR range in a set of IP permissions
instead.public String getCidrIp()
The CIDR IP address range. We recommend that you specify the CIDR range in a set of IP permissions instead.
public RevokeSecurityGroupEgressRequest withCidrIp(String cidrIp)
The CIDR IP address range. We recommend that you specify the CIDR range in a set of IP permissions instead.
cidrIp
- The CIDR IP 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 RevokeSecurityGroupEgressRequest 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 RevokeSecurityGroupEgressRequest 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<RevokeSecurityGroupEgressRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<RevokeSecurityGroupEgressRequest>
public String toString()
toString
in class Object
Object.toString()
public RevokeSecurityGroupEgressRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2017. All rights reserved.