VM Class

public final class VM
extends Resource

Describes a Virtual Machine.

Constructor Summary

Constructor Description
VM()

Creates an instance of VM class.

Method Summary

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

Reads an instance of VM from the JsonReader.

String id()

Get the id property: Resource ID.

String name()

Get the name property: The name of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

VM withId(String id)

Set the id property: Resource ID.

VM withLocation(String location)
VM withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

VM

public VM()

Creates an instance of VM class.

Method Details

fromJson

public static VM fromJson(JsonReader jsonReader)

Reads an instance of VM from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Resource ID.

Overrides:

VM.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

VM.name()

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

VM.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

VM.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withId

public VM withId(String id)

Set the id property: Resource ID.

Parameters:

id - the id value to set.

Returns:

the VM object itself.

withLocation

public VM withLocation(String location)

Overrides:

VM.withLocation(String location)

Parameters:

location

withTags

public VM withTags(Map tags)

Overrides:

VM.withTags(Map<String,String> tags)

Parameters:

tags

Applies to