Package com.ibm.cloud.is.vpc.v1.model
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CreateVpcAddressPrefixOptions.Builder
Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
cidr()
Gets the cidr.Boolean
isDefault()
Gets the isDefault.String
name()
Gets the name.CreateVpcAddressPrefixOptions.Builder
newBuilder()
New builder.String
vpcId()
Gets the vpcId.ZoneIdentity
zone()
Gets the zone.
-
-
-
Method Detail
-
newBuilder
public CreateVpcAddressPrefixOptions.Builder 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
-
-