Class DedicatedHostInstanceViewWithName
java.lang.Object
com.azure.resourcemanager.compute.models.DedicatedHostInstanceView
com.azure.resourcemanager.compute.models.DedicatedHostInstanceViewWithName
The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to
the instance view of a dedicated host group.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionname()Get the name property: The name of the dedicated host.voidvalidate()Validates the instance.withAvailableCapacity(DedicatedHostAvailableCapacity availableCapacity) Set the availableCapacity property: Unutilized capacity of the dedicated host.withStatuses(List<InstanceViewStatus> statuses) Set the statuses property: The resource status information.Methods inherited from class com.azure.resourcemanager.compute.models.DedicatedHostInstanceView
assetId, availableCapacity, statuses
-
Constructor Details
-
DedicatedHostInstanceViewWithName
public DedicatedHostInstanceViewWithName()
-
-
Method Details
-
name
Get the name property: The name of the dedicated host.- Returns:
- the name value.
-
withAvailableCapacity
public DedicatedHostInstanceViewWithName withAvailableCapacity(DedicatedHostAvailableCapacity availableCapacity) Set the availableCapacity property: Unutilized capacity of the dedicated host.- Overrides:
withAvailableCapacityin classDedicatedHostInstanceView- Parameters:
availableCapacity- the availableCapacity value to set.- Returns:
- the DedicatedHostInstanceView object itself.
-
withStatuses
Set the statuses property: The resource status information.- Overrides:
withStatusesin classDedicatedHostInstanceView- Parameters:
statuses- the statuses value to set.- Returns:
- the DedicatedHostInstanceView object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classDedicatedHostInstanceView- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-