PredefinedAcceleratorResourceInner Class

public final class PredefinedAcceleratorResourceInner
extends ProxyResource

Predefined accelerator resource.

Constructor Summary

Constructor Description
PredefinedAcceleratorResourceInner()

Creates an instance of PredefinedAcceleratorResourceInner class.

Method Summary

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

Reads an instance of PredefinedAcceleratorResourceInner 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.

PredefinedAcceleratorProperties properties()

Get the properties property: Predefined accelerator properties payload.

Sku sku()

Get the sku property: Sku of the predefined accelerator resource.

SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

PredefinedAcceleratorResourceInner withProperties(PredefinedAcceleratorProperties properties)

Set the properties property: Predefined accelerator properties payload.

PredefinedAcceleratorResourceInner withSku(Sku sku)

Set the sku property: Sku of the predefined accelerator resource.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

PredefinedAcceleratorResourceInner

public PredefinedAcceleratorResourceInner()

Creates an instance of PredefinedAcceleratorResourceInner class.

Method Details

fromJson

public static PredefinedAcceleratorResourceInner fromJson(JsonReader jsonReader)

Reads an instance of PredefinedAcceleratorResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PredefinedAcceleratorResourceInner 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:

PredefinedAcceleratorResourceInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

PredefinedAcceleratorResourceInner.name()

Returns:

the name value.

properties

public PredefinedAcceleratorProperties properties()

Get the properties property: Predefined accelerator properties payload.

Returns:

the properties value.

sku

public Sku sku()

Get the sku property: Sku of the predefined accelerator resource.

Returns:

the sku value.

systemData

public SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

PredefinedAcceleratorResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

PredefinedAcceleratorResourceInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withProperties

public PredefinedAcceleratorResourceInner withProperties(PredefinedAcceleratorProperties properties)

Set the properties property: Predefined accelerator properties payload.

Parameters:

properties - the properties value to set.

Returns:

the PredefinedAcceleratorResourceInner object itself.

withSku

public PredefinedAcceleratorResourceInner withSku(Sku sku)

Set the sku property: Sku of the predefined accelerator resource.

Parameters:

sku - the sku value to set.

Returns:

the PredefinedAcceleratorResourceInner object itself.

Applies to