Interface RevokeSecurityGroupIngressRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<RevokeSecurityGroupIngressRequest.Builder,
,RevokeSecurityGroupIngressRequest> Ec2Request.Builder
,SdkBuilder<RevokeSecurityGroupIngressRequest.Builder,
,RevokeSecurityGroupIngressRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
RevokeSecurityGroupIngressRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe CIDR IP address range.Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.If the protocol is TCP or UDP, this is the start of the port range.The ID of the security group.[Default VPC] The name of the security group.ipPermissions
(Collection<IpPermission> ipPermissions) The sets of IP permissions.ipPermissions
(Consumer<IpPermission.Builder>... ipPermissions) The sets of IP permissions.ipPermissions
(IpPermission... ipPermissions) The sets of IP permissions.ipProtocol
(String ipProtocol) overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.securityGroupRuleIds
(String... securityGroupRuleIds) The IDs of the security group rules.securityGroupRuleIds
(Collection<String> securityGroupRuleIds) The IDs of the security group rules.sourceSecurityGroupName
(String sourceSecurityGroupName) [Default VPC] The name of the source security group.sourceSecurityGroupOwnerId
(String sourceSecurityGroupOwnerId) Not supported.If the protocol is TCP or UDP, this is the end of the port range.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
cidrIp
The CIDR IP address range. You can't specify this parameter when specifying a source security group.
- Parameters:
cidrIp
- The CIDR IP address range. You can't specify this parameter when specifying a source security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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).
- Parameters:
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).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipPermissions
RevokeSecurityGroupIngressRequest.Builder ipPermissions(Consumer<IpPermission.Builder>... 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.
This is a convenience method that creates an instance of theIpPermission.Builder
avoiding the need to create one manually viaIpPermission.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toipPermissions(List<IpPermission>)
.- Parameters:
ipPermissions
- a consumer that will call methods onIpPermission.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ipProtocol
The IP protocol name (
tcp
,udp
,icmp
) or number (see Protocol Numbers). Use-1
to specify all.- Parameters:
ipProtocol
- The IP protocol name (tcp
,udp
,icmp
) or number (see Protocol Numbers). Use-1
to specify all.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceSecurityGroupOwnerId
RevokeSecurityGroupIngressRequest.Builder sourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId) Not supported.
- Parameters:
sourceSecurityGroupOwnerId
- Not supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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).
- Parameters:
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).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupRuleIds
RevokeSecurityGroupIngressRequest.Builder securityGroupRuleIds(Collection<String> securityGroupRuleIds) The IDs of the security group rules.
- Parameters:
securityGroupRuleIds
- The IDs of the security group rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupRuleIds
The IDs of the security group rules.
- Parameters:
securityGroupRuleIds
- The IDs of the security group rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dryRun
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Parameters:
dryRun
- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
RevokeSecurityGroupIngressRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
RevokeSecurityGroupIngressRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-