Interface SecurityGroup.Builder

All Superinterfaces:
Buildable, CopyableBuilder<SecurityGroup.Builder,SecurityGroup>, SdkBuilder<SecurityGroup.Builder,SecurityGroup>, SdkPojo
Enclosing class:
SecurityGroup

public static interface SecurityGroup.Builder extends SdkPojo, CopyableBuilder<SecurityGroup.Builder,SecurityGroup>
  • Method Details

    • description

      SecurityGroup.Builder description(String description)

      A description of the security group.

      Parameters:
      description - A description of the security group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • groupName

      SecurityGroup.Builder groupName(String groupName)

      The name of the security group.

      Parameters:
      groupName - The name of the security group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ipPermissions

      SecurityGroup.Builder ipPermissions(Collection<IpPermission> ipPermissions)

      The inbound rules associated with the security group.

      Parameters:
      ipPermissions - The inbound rules associated with the security group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ipPermissions

      SecurityGroup.Builder ipPermissions(IpPermission... ipPermissions)

      The inbound rules associated with the security group.

      Parameters:
      ipPermissions - The inbound rules associated with the security group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ipPermissions

      SecurityGroup.Builder ipPermissions(Consumer<IpPermission.Builder>... ipPermissions)

      The inbound rules associated with the security group.

      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:
    • ownerId

      SecurityGroup.Builder ownerId(String ownerId)

      The Amazon Web Services account ID of the owner of the security group.

      Parameters:
      ownerId - The Amazon Web Services account ID of the owner of the security group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • groupId

      SecurityGroup.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.
    • ipPermissionsEgress

      SecurityGroup.Builder ipPermissionsEgress(Collection<IpPermission> ipPermissionsEgress)

      The outbound rules associated with the security group.

      Parameters:
      ipPermissionsEgress - The outbound rules associated with the security group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ipPermissionsEgress

      SecurityGroup.Builder ipPermissionsEgress(IpPermission... ipPermissionsEgress)

      The outbound rules associated with the security group.

      Parameters:
      ipPermissionsEgress - The outbound rules associated with the security group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ipPermissionsEgress

      SecurityGroup.Builder ipPermissionsEgress(Consumer<IpPermission.Builder>... ipPermissionsEgress)

      The outbound rules associated with the security group.

      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 ipPermissionsEgress(List<IpPermission>).

      Parameters:
      ipPermissionsEgress - 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:
    • tags

      Any tags assigned to the security group.

      Parameters:
      tags - Any tags assigned to the security group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      SecurityGroup.Builder tags(Tag... tags)

      Any tags assigned to the security group.

      Parameters:
      tags - Any tags assigned to the security group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Any tags assigned to the security group.

      This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

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

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • vpcId

      The ID of the VPC for the security group.

      Parameters:
      vpcId - The ID of the VPC for the security group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.