SubResourceWithColocationStatus Class

public final class SubResourceWithColocationStatus
extends SubResource

The SubResourceWithColocationStatus model.

Constructor Summary

Constructor Description
SubResourceWithColocationStatus()

Creates an instance of SubResourceWithColocationStatus class.

Method Summary

Modifier and Type Method and Description
InstanceViewStatus colocationStatus()

Get the colocationStatus property: Describes colocation status of a resource in the Proximity Placement Group.

static SubResourceWithColocationStatus fromJson(JsonReader jsonReader)

Reads an instance of SubResourceWithColocationStatus from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SubResourceWithColocationStatus withColocationStatus(InstanceViewStatus colocationStatus)

Set the colocationStatus property: Describes colocation status of a resource in the Proximity Placement Group.

SubResourceWithColocationStatus withId(String id)

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

SubResourceWithColocationStatus

public SubResourceWithColocationStatus()

Creates an instance of SubResourceWithColocationStatus class.

Method Details

colocationStatus

public InstanceViewStatus colocationStatus()

Get the colocationStatus property: Describes colocation status of a resource in the Proximity Placement Group.

Returns:

the colocationStatus value.

fromJson

public static SubResourceWithColocationStatus fromJson(JsonReader jsonReader)

Reads an instance of SubResourceWithColocationStatus from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SubResourceWithColocationStatus.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withColocationStatus

public SubResourceWithColocationStatus withColocationStatus(InstanceViewStatus colocationStatus)

Set the colocationStatus property: Describes colocation status of a resource in the Proximity Placement Group.

Parameters:

colocationStatus - the colocationStatus value to set.

Returns:

the SubResourceWithColocationStatus object itself.

withId

public SubResourceWithColocationStatus withId(String id)

Overrides:

SubResourceWithColocationStatus.withId(String id)

Parameters:

id

Applies to