SwapResourceInner Class

public final class SwapResourceInner
extends ProxyResource

SwapResource to represent slot type on the specified cloud service.

Constructor Summary

Constructor Description
SwapResourceInner()

Creates an instance of SwapResourceInner class.

Method Summary

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

Reads an instance of SwapResourceInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

SwapResourceProperties properties()

Get the properties property: Swap resource properties.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

SwapResourceInner withProperties(SwapResourceProperties properties)

Set the properties property: Swap resource properties.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

SwapResourceInner

public SwapResourceInner()

Creates an instance of SwapResourceInner class.

Method Details

fromJson

public static SwapResourceInner fromJson(JsonReader jsonReader)

Reads an instance of SwapResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SwapResourceInner 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: Fully qualified resource Id for the resource.

Overrides:

SwapResourceInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

SwapResourceInner.name()

Returns:

the name value.

properties

public SwapResourceProperties properties()

Get the properties property: Swap resource properties.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SwapResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

SwapResourceInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withProperties

public SwapResourceInner withProperties(SwapResourceProperties properties)

Set the properties property: Swap resource properties.

Parameters:

properties - the properties value to set.

Returns:

the SwapResourceInner object itself.

Applies to