Package com.ibm.cloud.is.vpc.v1.model
Class CreateVpcAddressPrefixOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.CreateVpcAddressPrefixOptions.Builder
-
- Enclosing class:
- CreateVpcAddressPrefixOptions
public static class CreateVpcAddressPrefixOptions.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(String vpcId, String cidr, ZoneIdentity zone)
Instantiates a new builder with required properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateVpcAddressPrefixOptions
build()
Builds a CreateVpcAddressPrefixOptions.CreateVpcAddressPrefixOptions.Builder
cidr(String cidr)
Set the cidr.CreateVpcAddressPrefixOptions.Builder
isDefault(Boolean isDefault)
Set the isDefault.CreateVpcAddressPrefixOptions.Builder
name(String name)
Set the name.CreateVpcAddressPrefixOptions.Builder
vpcId(String vpcId)
Set the vpcId.CreateVpcAddressPrefixOptions.Builder
zone(ZoneIdentity zone)
Set the zone.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String vpcId, String cidr, ZoneIdentity zone)
Instantiates a new builder with required properties.- Parameters:
vpcId
- the vpcIdcidr
- the cidrzone
- the zone
-
-
Method Detail
-
build
public CreateVpcAddressPrefixOptions build()
Builds a CreateVpcAddressPrefixOptions.- Returns:
- the new CreateVpcAddressPrefixOptions instance
-
vpcId
public CreateVpcAddressPrefixOptions.Builder vpcId(String vpcId)
Set the vpcId.- Parameters:
vpcId
- the vpcId- Returns:
- the CreateVpcAddressPrefixOptions builder
-
cidr
public CreateVpcAddressPrefixOptions.Builder cidr(String cidr)
Set the cidr.- Parameters:
cidr
- the cidr- Returns:
- the CreateVpcAddressPrefixOptions builder
-
zone
public CreateVpcAddressPrefixOptions.Builder zone(ZoneIdentity zone)
Set the zone.- Parameters:
zone
- the zone- Returns:
- the CreateVpcAddressPrefixOptions builder
-
isDefault
public CreateVpcAddressPrefixOptions.Builder isDefault(Boolean isDefault)
Set the isDefault.- Parameters:
isDefault
- the isDefault- Returns:
- the CreateVpcAddressPrefixOptions builder
-
name
public CreateVpcAddressPrefixOptions.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the CreateVpcAddressPrefixOptions builder
-
-