Interface Subnet.Builder

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

@Mutable @NotThreadSafe public static interface Subnet.Builder extends SdkPojo, CopyableBuilder<Subnet.Builder,Subnet>
  • Method Details

    • identifier

      Subnet.Builder identifier(String identifier)

      The unique identifier for the subnet.

      Parameters:
      identifier - The unique identifier for the subnet.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • availabilityZone

      Subnet.Builder availabilityZone(AvailabilityZone availabilityZone)

      The Availability Zone where the subnet resides

      Parameters:
      availabilityZone - The Availability Zone where the subnet resides
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • availabilityZone

      default Subnet.Builder availabilityZone(Consumer<AvailabilityZone.Builder> availabilityZone)

      The Availability Zone where the subnet resides

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to availabilityZone(AvailabilityZone).

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

      Subnet.Builder supportedNetworkTypesWithStrings(Collection<String> supportedNetworkTypes)

      The network types supported by this subnet. Returns an array of strings that can include 'ipv4', 'ipv6', or both, indicating whether the subnet supports IPv4 only, IPv6 only, or dual-stack deployments.

      Parameters:
      supportedNetworkTypes - The network types supported by this subnet. Returns an array of strings that can include 'ipv4', 'ipv6', or both, indicating whether the subnet supports IPv4 only, IPv6 only, or dual-stack deployments.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportedNetworkTypesWithStrings

      Subnet.Builder supportedNetworkTypesWithStrings(String... supportedNetworkTypes)

      The network types supported by this subnet. Returns an array of strings that can include 'ipv4', 'ipv6', or both, indicating whether the subnet supports IPv4 only, IPv6 only, or dual-stack deployments.

      Parameters:
      supportedNetworkTypes - The network types supported by this subnet. Returns an array of strings that can include 'ipv4', 'ipv6', or both, indicating whether the subnet supports IPv4 only, IPv6 only, or dual-stack deployments.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportedNetworkTypes

      Subnet.Builder supportedNetworkTypes(Collection<NetworkType> supportedNetworkTypes)

      The network types supported by this subnet. Returns an array of strings that can include 'ipv4', 'ipv6', or both, indicating whether the subnet supports IPv4 only, IPv6 only, or dual-stack deployments.

      Parameters:
      supportedNetworkTypes - The network types supported by this subnet. Returns an array of strings that can include 'ipv4', 'ipv6', or both, indicating whether the subnet supports IPv4 only, IPv6 only, or dual-stack deployments.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportedNetworkTypes

      Subnet.Builder supportedNetworkTypes(NetworkType... supportedNetworkTypes)

      The network types supported by this subnet. Returns an array of strings that can include 'ipv4', 'ipv6', or both, indicating whether the subnet supports IPv4 only, IPv6 only, or dual-stack deployments.

      Parameters:
      supportedNetworkTypes - The network types supported by this subnet. Returns an array of strings that can include 'ipv4', 'ipv6', or both, indicating whether the subnet supports IPv4 only, IPv6 only, or dual-stack deployments.
      Returns:
      Returns a reference to this object so that method calls can be chained together.