Package com.ibm.cloud.is.vpc.v1.model
Class CreatePlacementGroupOptions
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.CreatePlacementGroupOptions
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class CreatePlacementGroupOptions extends com.ibm.cloud.sdk.core.service.model.GenericModelThe createPlacementGroup options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreatePlacementGroupOptions.BuilderBuilder.static interfaceCreatePlacementGroupOptions.StrategyThe strategy for this placement group - `host_spread`: place on different compute hosts - `power_spread`: place on compute hosts that use different power sources The enumerated values for this property may expand in the future.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringname()Gets the name.CreatePlacementGroupOptions.BuildernewBuilder()New builder.ResourceGroupIdentityresourceGroup()Gets the resourceGroup.Stringstrategy()Gets the strategy.
-
-
-
Method Detail
-
newBuilder
public CreatePlacementGroupOptions.Builder newBuilder()
New builder.- Returns:
- a CreatePlacementGroupOptions builder
-
strategy
public String strategy()
Gets the strategy. The strategy for this placement group - `host_spread`: place on different compute hosts - `power_spread`: place on compute hosts that use different power sources The enumerated values for this property may expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the placement group on which the unexpected strategy was encountered.- Returns:
- the strategy
-
name
public String name()
Gets the name. The name for this placement group. The name must not be used by another placement group in the region. If unspecified, the name will be a hyphenated list of randomly-selected words.- Returns:
- the name
-
resourceGroup
public ResourceGroupIdentity resourceGroup()
Gets the resourceGroup. The resource group to use. If unspecified, the account's [default resource group](https://cloud.ibm.com/apidocs/resource-manager#introduction) will be used.- Returns:
- the resourceGroup
-
-