Class DedicatedHostInstanceViewWithName
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.DedicatedHostInstanceView
-
- com.azure.resourcemanager.compute.models.DedicatedHostInstanceViewWithName
-
public final class DedicatedHostInstanceViewWithName extends DedicatedHostInstanceView
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 Constructor Description DedicatedHostInstanceViewWithName()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringname()Get the name property: The name of the dedicated host.voidvalidate()Validates the instance.DedicatedHostInstanceViewWithNamewithAvailableCapacity(DedicatedHostAvailableCapacity availableCapacity)Set the availableCapacity property: Unutilized capacity of the dedicated host.DedicatedHostInstanceViewWithNamewithStatuses(List<InstanceViewStatus> statuses)Set the statuses property: The resource status information.-
Methods inherited from class com.azure.resourcemanager.compute.models.DedicatedHostInstanceView
assetId, availableCapacity, statuses
-
-
-
-
Method Detail
-
name
public String 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
public DedicatedHostInstanceViewWithName withStatuses(List<InstanceViewStatus> statuses)
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.
-
-