Class CreateClusterNetworkOptions.Builder
java.lang.Object
com.ibm.cloud.is.vpc.v1.model.CreateClusterNetworkOptions.Builder
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()Instantiates a new builder.Builder(ClusterNetworkProfileIdentity profile, VPCIdentity vpc, ZoneIdentity zone) Instantiates a new builder with required properties. -
Method Summary
Modifier and TypeMethodDescriptionaddSubnetPrefixes(ClusterNetworkSubnetPrefixPrototype subnetPrefixes) Adds a new element to subnetPrefixes.build()Builds a CreateClusterNetworkOptions.Set the name.profile(ClusterNetworkProfileIdentity profile) Set the profile.resourceGroup(ResourceGroupIdentity resourceGroup) Set the resourceGroup.subnetPrefixes(List<ClusterNetworkSubnetPrefixPrototype> subnetPrefixes) Set the subnetPrefixes.vpc(VPCIdentity vpc) Set the vpc.zone(ZoneIdentity zone) Set the zone.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
profile- the profilevpc- the vpczone- the zone
-
-
Method Details
-
build
Builds a CreateClusterNetworkOptions.- Returns:
- the new CreateClusterNetworkOptions instance
-
addSubnetPrefixes
public CreateClusterNetworkOptions.Builder addSubnetPrefixes(ClusterNetworkSubnetPrefixPrototype subnetPrefixes) Adds a new element to subnetPrefixes.- Parameters:
subnetPrefixes- the new element to be added- Returns:
- the CreateClusterNetworkOptions builder
-
profile
Set the profile.- Parameters:
profile- the profile- Returns:
- the CreateClusterNetworkOptions builder
-
vpc
Set the vpc.- Parameters:
vpc- the vpc- Returns:
- the CreateClusterNetworkOptions builder
-
zone
Set the zone.- Parameters:
zone- the zone- Returns:
- the CreateClusterNetworkOptions builder
-
name
Set the name.- Parameters:
name- the name- Returns:
- the CreateClusterNetworkOptions builder
-
resourceGroup
Set the resourceGroup.- Parameters:
resourceGroup- the resourceGroup- Returns:
- the CreateClusterNetworkOptions builder
-
subnetPrefixes
public CreateClusterNetworkOptions.Builder subnetPrefixes(List<ClusterNetworkSubnetPrefixPrototype> subnetPrefixes) Set the subnetPrefixes. Existing subnetPrefixes will be replaced.- Parameters:
subnetPrefixes- the subnetPrefixes- Returns:
- the CreateClusterNetworkOptions builder
-