Partager via


RoleInstanceInner Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.fluent.models.RoleInstanceInner

Implements

public final class RoleInstanceInner
implements JsonSerializable<RoleInstanceInner>

Describes the cloud service role instance.

Constructor Summary

Constructor Description
RoleInstanceInner()

Creates an instance of RoleInstanceInner class.

Method Summary

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

Reads an instance of RoleInstanceInner from the JsonReader.

String id()

Get the id property: Resource Id.

String location()

Get the location property: Resource Location.

String name()

Get the name property: Resource Name.

RoleInstancePropertiesInner properties()

Get the properties property: Role instance properties.

InstanceSku sku()

Get the sku property: The role instance SKU.

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource Type.

void validate()

Validates the instance.

RoleInstanceInner withProperties(RoleInstancePropertiesInner properties)

Set the properties property: Role instance properties.

RoleInstanceInner withSku(InstanceSku sku)

Set the sku property: The role instance SKU.

Methods inherited from java.lang.Object

Constructor Details

RoleInstanceInner

public RoleInstanceInner()

Creates an instance of RoleInstanceInner class.

Method Details

fromJson

public static RoleInstanceInner fromJson(JsonReader jsonReader)

Reads an instance of RoleInstanceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Resource Id.

Returns:

the id value.

location

public String location()

Get the location property: Resource Location.

Returns:

the location value.

name

public String name()

Get the name property: Resource Name.

Returns:

the name value.

properties

public RoleInstancePropertiesInner properties()

Get the properties property: Role instance properties.

Returns:

the properties value.

sku

public InstanceSku sku()

Get the sku property: The role instance SKU.

Returns:

the sku value.

tags

public Map tags()

Get the tags property: Resource tags.

Returns:

the tags value.

toJson

public JsonWriter 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.

withProperties

public RoleInstanceInner withProperties(RoleInstancePropertiesInner properties)

Set the properties property: Role instance properties.

Parameters:

properties - the properties value to set.

Returns:

the RoleInstanceInner object itself.

withSku

public RoleInstanceInner withSku(InstanceSku sku)

Set the sku property: The role instance SKU.

Parameters:

sku - the sku value to set.

Returns:

the RoleInstanceInner object itself.

Applies to