Partager via


DedicatedHostGroupInstanceView Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.DedicatedHostGroupInstanceView

Implements

public final class DedicatedHostGroupInstanceView
implements JsonSerializable<DedicatedHostGroupInstanceView>

The DedicatedHostGroupInstanceView model.

Constructor Summary

Constructor Description
DedicatedHostGroupInstanceView()

Creates an instance of DedicatedHostGroupInstanceView class.

Method Summary

Modifier and Type Method and Description
static DedicatedHostGroupInstanceView fromJson(JsonReader jsonReader)

Reads an instance of DedicatedHostGroupInstanceView from the JsonReader.

List<DedicatedHostInstanceViewWithName> hosts()

Get the hosts property: List of instance view of the dedicated hosts under the dedicated host group.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DedicatedHostGroupInstanceView withHosts(List<DedicatedHostInstanceViewWithName> hosts)

Set the hosts property: List of instance view of the dedicated hosts under the dedicated host group.

Methods inherited from java.lang.Object

Constructor Details

DedicatedHostGroupInstanceView

public DedicatedHostGroupInstanceView()

Creates an instance of DedicatedHostGroupInstanceView class.

Method Details

fromJson

public static DedicatedHostGroupInstanceView fromJson(JsonReader jsonReader)

Reads an instance of DedicatedHostGroupInstanceView from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DedicatedHostGroupInstanceView if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the DedicatedHostGroupInstanceView.

hosts

public List hosts()

Get the hosts property: List of instance view of the dedicated hosts under the dedicated host group.

Returns:

the hosts value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withHosts

public DedicatedHostGroupInstanceView withHosts(List hosts)

Set the hosts property: List of instance view of the dedicated hosts under the dedicated host group.

Parameters:

hosts - the hosts value to set.

Returns:

the DedicatedHostGroupInstanceView object itself.

Applies to