AvailabilitySetListItem Class

  • java.lang.Object
    • com.azure.resourcemanager.scvmm.models.AvailabilitySetListItem

Implements

public final class AvailabilitySetListItem
implements JsonSerializable<AvailabilitySetListItem>

Availability Set model.

Constructor Summary

Constructor Description
AvailabilitySetListItem()

Creates an instance of AvailabilitySetListItem class.

Method Summary

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

Reads an instance of AvailabilitySetListItem from the JsonReader.

String id()

Get the id property: Gets the ARM Id of the microsoft.scvmm/availabilitySets resource.

String name()

Get the name property: Gets or sets the name of the availability set.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AvailabilitySetListItem withId(String id)

Set the id property: Gets the ARM Id of the microsoft.scvmm/availabilitySets resource.

AvailabilitySetListItem withName(String name)

Set the name property: Gets or sets the name of the availability set.

Methods inherited from java.lang.Object

Constructor Details

AvailabilitySetListItem

public AvailabilitySetListItem()

Creates an instance of AvailabilitySetListItem class.

Method Details

fromJson

public static AvailabilitySetListItem fromJson(JsonReader jsonReader)

Reads an instance of AvailabilitySetListItem from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AvailabilitySetListItem 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 AvailabilitySetListItem.

id

public String id()

Get the id property: Gets the ARM Id of the microsoft.scvmm/availabilitySets resource.

Returns:

the id value.

name

public String name()

Get the name property: Gets or sets the name of the availability set.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public AvailabilitySetListItem withId(String id)

Set the id property: Gets the ARM Id of the microsoft.scvmm/availabilitySets resource.

Parameters:

id - the id value to set.

Returns:

the AvailabilitySetListItem object itself.

withName

public AvailabilitySetListItem withName(String name)

Set the name property: Gets or sets the name of the availability set.

Parameters:

name - the name value to set.

Returns:

the AvailabilitySetListItem object itself.

Applies to