@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RevokeSecurityGroupIngressRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<RevokeSecurityGroupIngressRequest>
NOOP
Constructor and Description |
---|
RevokeSecurityGroupIngressRequest()
Default constructor for RevokeSecurityGroupIngressRequest object.
|
RevokeSecurityGroupIngressRequest(String groupName,
List<IpPermission> ipPermissions)
Constructs a new RevokeSecurityGroupIngressRequest object.
|
Modifier and Type | Method and Description |
---|---|
RevokeSecurityGroupIngressRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getCidrIp()
The CIDR IP address range.
|
Request<RevokeSecurityGroupIngressRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Integer |
getFromPort()
If the protocol is TCP or UDP, this is the start of the port range.
|
String |
getGroupId()
The ID of the security group.
|
String |
getGroupName()
[Default VPC] The name of the security group.
|
List<IpPermission> |
getIpPermissions()
The sets of IP permissions.
|
String |
getIpProtocol()
|
List<String> |
getSecurityGroupRuleIds()
The IDs of the security group rules.
|
String |
getSourceSecurityGroupName()
[Default VPC] The name of the source security group.
|
String |
getSourceSecurityGroupOwnerId()
Not supported.
|
Integer |
getToPort()
If the protocol is TCP or UDP, this is the end of the port range.
|
int |
hashCode() |
void |
setCidrIp(String cidrIp)
The CIDR IP address range.
|
void |
setFromPort(Integer fromPort)
If the protocol is TCP or UDP, this is the start of the port range.
|
void |
setGroupId(String groupId)
The ID of the security group.
|
void |
setGroupName(String groupName)
[Default VPC] The name of the security group.
|
void |
setIpPermissions(Collection<IpPermission> ipPermissions)
The sets of IP permissions.
|
void |
setIpProtocol(String ipProtocol)
|
void |
setSecurityGroupRuleIds(Collection<String> securityGroupRuleIds)
The IDs of the security group rules.
|
void |
setSourceSecurityGroupName(String sourceSecurityGroupName)
[Default VPC] The name of the source security group.
|
void |
setSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
Not supported.
|
void |
setToPort(Integer toPort)
If the protocol is TCP or UDP, this is the end of the port range.
|
String |
toString()
Returns a string representation of this object.
|
RevokeSecurityGroupIngressRequest |
withCidrIp(String cidrIp)
The CIDR IP address range.
|
RevokeSecurityGroupIngressRequest |
withFromPort(Integer fromPort)
If the protocol is TCP or UDP, this is the start of the port range.
|
RevokeSecurityGroupIngressRequest |
withGroupId(String groupId)
The ID of the security group.
|
RevokeSecurityGroupIngressRequest |
withGroupName(String groupName)
[Default VPC] The name of the security group.
|
RevokeSecurityGroupIngressRequest |
withIpPermissions(Collection<IpPermission> ipPermissions)
The sets of IP permissions.
|
RevokeSecurityGroupIngressRequest |
withIpPermissions(IpPermission... ipPermissions)
The sets of IP permissions.
|
RevokeSecurityGroupIngressRequest |
withIpProtocol(String ipProtocol)
|
RevokeSecurityGroupIngressRequest |
withSecurityGroupRuleIds(Collection<String> securityGroupRuleIds)
The IDs of the security group rules.
|
RevokeSecurityGroupIngressRequest |
withSecurityGroupRuleIds(String... securityGroupRuleIds)
The IDs of the security group rules.
|
RevokeSecurityGroupIngressRequest |
withSourceSecurityGroupName(String sourceSecurityGroupName)
[Default VPC] The name of the source security group.
|
RevokeSecurityGroupIngressRequest |
withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
Not supported.
|
RevokeSecurityGroupIngressRequest |
withToPort(Integer toPort)
If the protocol is TCP or UDP, this is the end of the port range.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public RevokeSecurityGroupIngressRequest()
public RevokeSecurityGroupIngressRequest(String groupName, List<IpPermission> ipPermissions)
groupName
- [Default VPC] The name of the security group. You must specify either the security group ID or the
security group name in the request. For security groups in a nondefault VPC, you must specify the security
group ID.ipPermissions
- The sets of IP permissions. You can't specify a source security group and a CIDR IP address range in the
same set of permissions.public void setCidrIp(String cidrIp)
The CIDR IP address range. You can't specify this parameter when specifying a source security group.
cidrIp
- The CIDR IP address range. You can't specify this parameter when specifying a source security group.public String getCidrIp()
The CIDR IP address range. You can't specify this parameter when specifying a source security group.
public RevokeSecurityGroupIngressRequest withCidrIp(String cidrIp)
The CIDR IP address range. You can't specify this parameter when specifying a source security group.
cidrIp
- The CIDR IP address range. You can't specify this parameter when specifying a source security group.public void setFromPort(Integer fromPort)
If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP, this is the ICMP type or -1 (all ICMP types).
fromPort
- If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP, this is the
ICMP type or -1 (all ICMP types).public Integer getFromPort()
If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP, this is the ICMP type or -1 (all ICMP types).
public RevokeSecurityGroupIngressRequest withFromPort(Integer fromPort)
If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP, this is the ICMP type or -1 (all ICMP types).
fromPort
- If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP, this is the
ICMP type or -1 (all ICMP types).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 RevokeSecurityGroupIngressRequest withGroupId(String groupId)
The ID of the security group.
groupId
- The ID of the security group.public void setGroupName(String groupName)
[Default VPC] The name of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.
groupName
- [Default VPC] The name of the security group. You must specify either the security group ID or the
security group name in the request. For security groups in a nondefault VPC, you must specify the security
group ID.public String getGroupName()
[Default VPC] The name of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.
public RevokeSecurityGroupIngressRequest withGroupName(String groupName)
[Default VPC] The name of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.
groupName
- [Default VPC] The name of the security group. You must specify either the security group ID or the
security group name in the request. For security groups in a nondefault VPC, you must specify the security
group ID.public List<IpPermission> getIpPermissions()
The sets of IP permissions. You can't specify a source security group and a CIDR IP address range in the same set of permissions.
public void setIpPermissions(Collection<IpPermission> ipPermissions)
The sets of IP permissions. You can't specify a source security group and a CIDR IP address range in the same set of permissions.
ipPermissions
- The sets of IP permissions. You can't specify a source security group and a CIDR IP address range in the
same set of permissions.public RevokeSecurityGroupIngressRequest withIpPermissions(IpPermission... ipPermissions)
The sets of IP permissions. You can't specify a source security group and a CIDR IP address range in the same set of permissions.
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
- The sets of IP permissions. You can't specify a source security group and a CIDR IP address range in the
same set of permissions.public RevokeSecurityGroupIngressRequest withIpPermissions(Collection<IpPermission> ipPermissions)
The sets of IP permissions. You can't specify a source security group and a CIDR IP address range in the same set of permissions.
ipPermissions
- The sets of IP permissions. You can't specify a source security group and a CIDR IP address range in the
same set of permissions.public void setIpProtocol(String ipProtocol)
The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). Use
-1
to specify all.
ipProtocol
- The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). Use
-1
to specify all.public String getIpProtocol()
The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). Use
-1
to specify all.
tcp
, udp
, icmp
) or number (see Protocol Numbers). Use
-1
to specify all.public RevokeSecurityGroupIngressRequest withIpProtocol(String ipProtocol)
The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). Use
-1
to specify all.
ipProtocol
- The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). Use
-1
to specify all.public void setSourceSecurityGroupName(String sourceSecurityGroupName)
[Default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. The source security group must be in the same VPC. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.
sourceSecurityGroupName
- [Default VPC] The name of the source security group. You can't specify this parameter in combination with
the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the
end of the port range. The source security group must be in the same VPC. To revoke a specific rule for an
IP protocol and port range, use a set of IP permissions instead.public String getSourceSecurityGroupName()
[Default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. The source security group must be in the same VPC. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.
public RevokeSecurityGroupIngressRequest withSourceSecurityGroupName(String sourceSecurityGroupName)
[Default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. The source security group must be in the same VPC. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.
sourceSecurityGroupName
- [Default VPC] The name of the source security group. You can't specify this parameter in combination with
the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the
end of the port range. The source security group must be in the same VPC. To revoke a specific rule for an
IP protocol and port range, use a set of IP permissions instead.public void setSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
Not supported.
sourceSecurityGroupOwnerId
- Not supported.public String getSourceSecurityGroupOwnerId()
Not supported.
public RevokeSecurityGroupIngressRequest withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
Not supported.
sourceSecurityGroupOwnerId
- Not supported.public void setToPort(Integer toPort)
If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP, this is the ICMP code or -1 (all ICMP codes).
toPort
- If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP, this is the
ICMP code or -1 (all ICMP codes).public Integer getToPort()
If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP, this is the ICMP code or -1 (all ICMP codes).
public RevokeSecurityGroupIngressRequest withToPort(Integer toPort)
If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP, this is the ICMP code or -1 (all ICMP codes).
toPort
- If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP, this is the
ICMP code or -1 (all ICMP codes).public List<String> getSecurityGroupRuleIds()
The IDs of the security group rules.
public void setSecurityGroupRuleIds(Collection<String> securityGroupRuleIds)
The IDs of the security group rules.
securityGroupRuleIds
- The IDs of the security group rules.public RevokeSecurityGroupIngressRequest withSecurityGroupRuleIds(String... securityGroupRuleIds)
The IDs of the security group rules.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroupRuleIds(java.util.Collection)
or withSecurityGroupRuleIds(java.util.Collection)
if you want to override the existing values.
securityGroupRuleIds
- The IDs of the security group rules.public RevokeSecurityGroupIngressRequest withSecurityGroupRuleIds(Collection<String> securityGroupRuleIds)
The IDs of the security group rules.
securityGroupRuleIds
- The IDs of the security group rules.public Request<RevokeSecurityGroupIngressRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<RevokeSecurityGroupIngressRequest>
public String toString()
toString
in class Object
Object.toString()
public RevokeSecurityGroupIngressRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()