Interface SubnetGroup.Builder

    • Method Detail

      • subnetGroupName

        SubnetGroup.Builder subnetGroupName​(String subnetGroupName)

        The name of the subnet group.

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

        SubnetGroup.Builder description​(String description)

        The description of the subnet group.

        Parameters:
        description - The description of the subnet group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • vpcId

        SubnetGroup.Builder vpcId​(String vpcId)

        The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.

        Parameters:
        vpcId - The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • subnets

        SubnetGroup.Builder subnets​(Collection<Subnet> subnets)

        A list of subnets associated with the subnet group.

        Parameters:
        subnets - A list of subnets associated with the subnet group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • subnets

        SubnetGroup.Builder subnets​(Subnet... subnets)

        A list of subnets associated with the subnet group.

        Parameters:
        subnets - A list of subnets associated with the subnet group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • subnets

        SubnetGroup.Builder subnets​(Consumer<Subnet.Builder>... subnets)

        A list of subnets associated with the subnet group.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #subnets(List).

        Parameters:
        subnets - a consumer that will call methods on Subnet.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #subnets(java.util.Collection)