Package com.ibm.cloud.is.vpc.v1.model
Class CreatePlacementGroupOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.CreatePlacementGroupOptions.Builder
-
- Enclosing class:
- CreatePlacementGroupOptions
public static class CreatePlacementGroupOptions.Builder extends Object
Builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreatePlacementGroupOptions
build()
Builds a CreatePlacementGroupOptions.CreatePlacementGroupOptions.Builder
name(String name)
Set the name.CreatePlacementGroupOptions.Builder
resourceGroup(ResourceGroupIdentity resourceGroup)
Set the resourceGroup.CreatePlacementGroupOptions.Builder
strategy(String strategy)
Set the strategy.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String strategy)
Instantiates a new builder with required properties.- Parameters:
strategy
- the strategy
-
-
Method Detail
-
build
public CreatePlacementGroupOptions build()
Builds a CreatePlacementGroupOptions.- Returns:
- the new CreatePlacementGroupOptions instance
-
strategy
public CreatePlacementGroupOptions.Builder strategy(String strategy)
Set the strategy.- Parameters:
strategy
- the strategy- Returns:
- the CreatePlacementGroupOptions builder
-
name
public CreatePlacementGroupOptions.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the CreatePlacementGroupOptions builder
-
resourceGroup
public CreatePlacementGroupOptions.Builder resourceGroup(ResourceGroupIdentity resourceGroup)
Set the resourceGroup.- Parameters:
resourceGroup
- the resourceGroup- Returns:
- the CreatePlacementGroupOptions builder
-
-