Interface RevokeSecurityGroupIngressRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<RevokeSecurityGroupIngressRequest.Builder,RevokeSecurityGroupIngressRequest>
,Ec2Request.Builder
,SdkBuilder<RevokeSecurityGroupIngressRequest.Builder,RevokeSecurityGroupIngressRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- RevokeSecurityGroupIngressRequest
public static interface RevokeSecurityGroupIngressRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<RevokeSecurityGroupIngressRequest.Builder,RevokeSecurityGroupIngressRequest>
-
-
Method Summary
-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
cidrIp
RevokeSecurityGroupIngressRequest.Builder cidrIp(String 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
RevokeSecurityGroupIngressRequest.Builder fromPort(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).
- 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
RevokeSecurityGroupIngressRequest.Builder groupId(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.
-
groupName
RevokeSecurityGroupIngressRequest.Builder groupName(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.
- 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
RevokeSecurityGroupIngressRequest.Builder ipPermissions(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.
- 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(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.
- 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 to#ipPermissions(List
.) - 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:
#ipPermissions(java.util.Collection
)
-
ipProtocol
RevokeSecurityGroupIngressRequest.Builder ipProtocol(String 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
RevokeSecurityGroupIngressRequest.Builder sourceSecurityGroupName(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.
- 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
RevokeSecurityGroupIngressRequest.Builder toPort(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).
- 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
RevokeSecurityGroupIngressRequest.Builder securityGroupRuleIds(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.
-
dryRun
RevokeSecurityGroupIngressRequest.Builder dryRun(Boolean 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)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
RevokeSecurityGroupIngressRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-