Class DedicatedHostInstanceView
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.DedicatedHostInstanceView
-
- Direct Known Subclasses:
DedicatedHostInstanceViewWithName
public class DedicatedHostInstanceView extends Object
The instance view of a dedicated host.
-
-
Constructor Summary
Constructors Constructor Description DedicatedHostInstanceView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringassetId()Get the assetId property: Specifies the unique id of the dedicated physical machine on which the dedicated host resides.DedicatedHostAvailableCapacityavailableCapacity()Get the availableCapacity property: Unutilized capacity of the dedicated host.List<InstanceViewStatus>statuses()Get the statuses property: The resource status information.voidvalidate()Validates the instance.DedicatedHostInstanceViewwithAvailableCapacity(DedicatedHostAvailableCapacity availableCapacity)Set the availableCapacity property: Unutilized capacity of the dedicated host.DedicatedHostInstanceViewwithStatuses(List<InstanceViewStatus> statuses)Set the statuses property: The resource status information.
-
-
-
Method Detail
-
assetId
public String assetId()
Get the assetId property: Specifies the unique id of the dedicated physical machine on which the dedicated host resides.- Returns:
- the assetId value.
-
availableCapacity
public DedicatedHostAvailableCapacity availableCapacity()
Get the availableCapacity property: Unutilized capacity of the dedicated host.- Returns:
- the availableCapacity value.
-
withAvailableCapacity
public DedicatedHostInstanceView withAvailableCapacity(DedicatedHostAvailableCapacity availableCapacity)
Set the availableCapacity property: Unutilized capacity of the dedicated host.- Parameters:
availableCapacity- the availableCapacity value to set.- Returns:
- the DedicatedHostInstanceView object itself.
-
statuses
public List<InstanceViewStatus> statuses()
Get the statuses property: The resource status information.- Returns:
- the statuses value.
-
withStatuses
public DedicatedHostInstanceView withStatuses(List<InstanceViewStatus> statuses)
Set the statuses property: The resource status information.- Parameters:
statuses- the statuses value to set.- Returns:
- the DedicatedHostInstanceView object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-