Class CreateVpcAddressPrefixOptions

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.CreateVpcAddressPrefixOptions
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class CreateVpcAddressPrefixOptions extends com.ibm.cloud.sdk.core.service.model.GenericModel
The createVpcAddressPrefix options.
  • Method Details

    • newBuilder

      New builder.
      Returns:
      a CreateVpcAddressPrefixOptions builder
    • vpcId

      public String vpcId()
      Gets the vpcId. The VPC identifier.
      Returns:
      the vpcId
    • cidr

      public String cidr()
      Gets the cidr. The IPv4 range of the address prefix, expressed in CIDR format. The range must not overlap with any existing address prefixes in the VPC or any of the following reserved address ranges: - `127.0.0.0/8` (IPv4 loopback addresses) - `161.26.0.0/16` (IBM services) - `166.8.0.0/14` (Cloud Service Endpoints) - `169.254.0.0/16` (IPv4 link-local addresses) - `224.0.0.0/4` (IPv4 multicast addresses) The prefix length of the address prefix's CIDR must be between `/9` (8,388,608 addresses) and `/29` (8 addresses).
      Returns:
      the cidr
    • zone

      public ZoneIdentity zone()
      Gets the zone. The zone this address prefix will reside in.
      Returns:
      the zone
    • isDefault

      public Boolean isDefault()
      Gets the isDefault. Indicates whether this will be the default address prefix for this zone in this VPC. If `true`, the VPC must not have a default address prefix for this zone.
      Returns:
      the isDefault
    • name

      public String name()
      Gets the name. The name for this address prefix. The name must not be used by another address prefix for the VPC. If unspecified, the name will be a hyphenated list of randomly-selected words.
      Returns:
      the name