Package com.ibm.cloud.is.vpc.v1.model
Class CreateClusterNetworkOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.CreateClusterNetworkOptions.Builder
-
- Enclosing class:
- CreateClusterNetworkOptions
public static class CreateClusterNetworkOptions.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(ClusterNetworkProfileIdentity profile, VPCIdentity vpc, ZoneIdentity zone)
Instantiates a new builder with required properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateClusterNetworkOptions.Builder
addSubnetPrefixes(ClusterNetworkSubnetPrefixPrototype subnetPrefixes)
Adds a new element to subnetPrefixes.CreateClusterNetworkOptions
build()
Builds a CreateClusterNetworkOptions.CreateClusterNetworkOptions.Builder
name(String name)
Set the name.CreateClusterNetworkOptions.Builder
profile(ClusterNetworkProfileIdentity profile)
Set the profile.CreateClusterNetworkOptions.Builder
resourceGroup(ResourceGroupIdentity resourceGroup)
Set the resourceGroup.CreateClusterNetworkOptions.Builder
subnetPrefixes(List<ClusterNetworkSubnetPrefixPrototype> subnetPrefixes)
Set the subnetPrefixes.CreateClusterNetworkOptions.Builder
vpc(VPCIdentity vpc)
Set the vpc.CreateClusterNetworkOptions.Builder
zone(ZoneIdentity zone)
Set the zone.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(ClusterNetworkProfileIdentity profile, VPCIdentity vpc, ZoneIdentity zone)
Instantiates a new builder with required properties.- Parameters:
profile
- the profilevpc
- the vpczone
- the zone
-
-
Method Detail
-
build
public CreateClusterNetworkOptions 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
public CreateClusterNetworkOptions.Builder profile(ClusterNetworkProfileIdentity profile)
Set the profile.- Parameters:
profile
- the profile- Returns:
- the CreateClusterNetworkOptions builder
-
vpc
public CreateClusterNetworkOptions.Builder vpc(VPCIdentity vpc)
Set the vpc.- Parameters:
vpc
- the vpc- Returns:
- the CreateClusterNetworkOptions builder
-
zone
public CreateClusterNetworkOptions.Builder zone(ZoneIdentity zone)
Set the zone.- Parameters:
zone
- the zone- Returns:
- the CreateClusterNetworkOptions builder
-
name
public CreateClusterNetworkOptions.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the CreateClusterNetworkOptions builder
-
resourceGroup
public CreateClusterNetworkOptions.Builder resourceGroup(ResourceGroupIdentity 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
-
-