Interface SecurityGroup.Builder

    • Method Detail

      • 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.
      • 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).

        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:
        #ipPermissionsEgress(java.util.Collection)
      • tags

        SecurityGroup.Builder tags​(Collection<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

        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

        SecurityGroup.Builder tags​(Consumer<Tag.Builder>... 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).

        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:
        #tags(java.util.Collection)
      • vpcId

        SecurityGroup.Builder vpcId​(String 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.