Package com.ibm.cloud.is.vpc.v1.model
Class PlacementGroup
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.PlacementGroup
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class PlacementGroup extends com.ibm.cloud.sdk.core.service.model.GenericModelPlacementGroup.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePlacementGroup.LifecycleStateThe lifecycle state of the placement group.static interfacePlacementGroup.ResourceTypeThe resource type.static interfacePlacementGroup.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 DategetCreatedAt()Gets the createdAt.StringgetCrn()Gets the crn.StringgetHref()Gets the href.StringgetId()Gets the id.StringgetLifecycleState()Gets the lifecycleState.StringgetName()Gets the name.ResourceGroupReferencegetResourceGroup()Gets the resourceGroup.StringgetResourceType()Gets the resourceType.StringgetStrategy()Gets the strategy.
-
-
-
Method Detail
-
getCreatedAt
public Date getCreatedAt()
Gets the createdAt. The date and time that the placement group was created.- Returns:
- the createdAt
-
getCrn
public String getCrn()
Gets the crn. The CRN for this placement group.- Returns:
- the crn
-
getHref
public String getHref()
Gets the href. The URL for this placement group.- Returns:
- the href
-
getId
public String getId()
Gets the id. The unique identifier for this placement group.- Returns:
- the id
-
getLifecycleState
public String getLifecycleState()
Gets the lifecycleState. The lifecycle state of the placement group.- Returns:
- the lifecycleState
-
getName
public String getName()
Gets the name. The name for this placement group. The name is unique across all placement groups in the region.- Returns:
- the name
-
getResourceGroup
public ResourceGroupReference getResourceGroup()
Gets the resourceGroup. The resource group for this placement group.- Returns:
- the resourceGroup
-
getResourceType
public String getResourceType()
Gets the resourceType. The resource type.- Returns:
- the resourceType
-
getStrategy
public String getStrategy()
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
-
-