Interface EC2SecurityGroup.Builder

    • Method Detail

      • status

        EC2SecurityGroup.Builder status​(String status)

        The status of the EC2 security group.

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

        EC2SecurityGroup.Builder ec2SecurityGroupName​(String ec2SecurityGroupName)

        The name of the EC2 Security Group.

        Parameters:
        ec2SecurityGroupName - The name of the EC2 Security Group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ec2SecurityGroupOwnerId

        EC2SecurityGroup.Builder ec2SecurityGroupOwnerId​(String ec2SecurityGroupOwnerId)

        The Amazon Web Services account ID of the owner of the EC2 security group specified in the EC2SecurityGroupName field.

        Parameters:
        ec2SecurityGroupOwnerId - The Amazon Web Services account ID of the owner of the EC2 security group specified in the EC2SecurityGroupName field.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        EC2SecurityGroup.Builder tags​(Collection<Tag> tags)

        The list of tags for the EC2 security group.

        Parameters:
        tags - The list of tags for the EC2 security group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        EC2SecurityGroup.Builder tags​(Tag... tags)

        The list of tags for the EC2 security group.

        Parameters:
        tags - The list of tags for the EC2 security group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        EC2SecurityGroup.Builder tags​(Consumer<Tag.Builder>... tags)

        The list of tags for the EC2 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)