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 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

      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 the IpPermission.Builder avoiding the need to create one manually via IpPermission.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to ipPermissions(List<IpPermission>).

      Parameters:
      ipPermissions - a consumer that will call methods on IpPermission.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

      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

      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.
    • 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 is UnauthorizedOperation.

      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 is DryRunOperation. Otherwise, it is UnauthorizedOperation.
      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.
    • overrideConfiguration

      RevokeSecurityGroupIngressRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.