MachineInner Class

public final class MachineInner
extends SubResource

A machine. Contains details about the underlying virtual machine. A machine may be visible here but not in kubectl get nodes; if so it may be because the machine has not been registered with the Kubernetes API Server yet.

Constructor Summary

Constructor Description
MachineInner()

Creates an instance of MachineInner class.

Method Summary

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

Reads an instance of MachineInner from the JsonReader.

String name()

Get the name property: The name of the resource that is unique within a resource group.

MachineProperties properties()

Get the properties property: The properties of the machine.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type.

void validate()

Validates the instance.

MachineInner withId(String id)

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

MachineInner

public MachineInner()

Creates an instance of MachineInner class.

Method Details

fromJson

public static MachineInner fromJson(JsonReader jsonReader)

Reads an instance of MachineInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.

Returns:

the name value.

properties

public MachineProperties properties()

Get the properties property: The properties of the machine.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MachineInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Resource type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withId

public MachineInner withId(String id)

Overrides:

MachineInner.withId(String id)

Parameters:

id

Applies to