DedicatedHostInstanceViewWithName Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. DedicatedHostInstanceView - com.
azure. resourcemanager. compute. models. DedicatedHostInstanceViewWithName
- com.
- com.
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
Constructor | Description |
---|---|
DedicatedHostInstanceViewWithName() |
Creates an instance of Dedicated |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
assetId()
Get the asset |
static
Dedicated |
fromJson(JsonReader jsonReader)
Reads an instance of Dedicated |
String |
name()
Get the name property: The name of the dedicated host. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Dedicated |
withAvailableCapacity(DedicatedHostAvailableCapacity availableCapacity)
Set the available |
Dedicated |
withStatuses(List<InstanceViewStatus> statuses)
Set the statuses property: The resource status information. |
Methods inherited from DedicatedHostInstanceView
Methods inherited from java.lang.Object
Constructor Details
DedicatedHostInstanceViewWithName
public DedicatedHostInstanceViewWithName()
Creates an instance of DedicatedHostInstanceViewWithName class.
Method Details
assetId
public String assetId()
Get the assetId property: Specifies the unique id of the dedicated physical machine on which the dedicated host resides.
Overrides:
DedicatedHostInstanceViewWithName.assetId()Returns:
fromJson
public static DedicatedHostInstanceViewWithName fromJson(JsonReader jsonReader)
Reads an instance of DedicatedHostInstanceViewWithName from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the dedicated host.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
DedicatedHostInstanceViewWithName.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
DedicatedHostInstanceViewWithName.validate()withAvailableCapacity
public DedicatedHostInstanceViewWithName withAvailableCapacity(DedicatedHostAvailableCapacity availableCapacity)
Set the availableCapacity property: Unutilized capacity of the dedicated host.
Overrides:
DedicatedHostInstanceViewWithName.withAvailableCapacity(DedicatedHostAvailableCapacity availableCapacity)Parameters:
withStatuses
public DedicatedHostInstanceViewWithName withStatuses(List
Set the statuses property: The resource status information.
Overrides:
DedicatedHostInstanceViewWithName.withStatuses(List<InstanceViewStatus> statuses)Parameters:
Applies to
Azure SDK for Java