Partilhar via


GenericResourceInner Class

public class GenericResourceInner
extends Resource

Resource information.

Constructor Summary

Constructor Description
GenericResourceInner()

Creates an instance of GenericResourceInner class.

Method Summary

Modifier and Type Method and Description
ExtendedLocation extendedLocation()

Get the extendedLocation property: Resource extended location.

static GenericResourceInner fromJson(JsonReader jsonReader)

Reads an instance of GenericResourceInner from the JsonReader.

String id()

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

Identity identity()

Get the identity property: The identity of the resource.

String kind()

Get the kind property: The kind of the resource.

String managedBy()

Get the managedBy property: ID of the resource that manages this resource.

String name()

Get the name property: The name of the resource.

Plan plan()

Get the plan property: The plan of the resource.

Object properties()

Get the properties property: The resource properties.

Sku sku()

Get the sku property: The SKU of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

GenericResourceInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: Resource extended location.

GenericResourceInner withIdentity(Identity identity)

Set the identity property: The identity of the resource.

GenericResourceInner withKind(String kind)

Set the kind property: The kind of the resource.

GenericResourceInner withLocation(String location)
GenericResourceInner withManagedBy(String managedBy)

Set the managedBy property: ID of the resource that manages this resource.

GenericResourceInner withPlan(Plan plan)

Set the plan property: The plan of the resource.

GenericResourceInner withProperties(Object properties)

Set the properties property: The resource properties.

GenericResourceInner withSku(Sku sku)

Set the sku property: The SKU of the resource.

GenericResourceInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

GenericResourceInner

public GenericResourceInner()

Creates an instance of GenericResourceInner class.

Method Details

extendedLocation

public ExtendedLocation extendedLocation()

Get the extendedLocation property: Resource extended location.

Returns:

the extendedLocation value.

fromJson

public static GenericResourceInner fromJson(JsonReader jsonReader)

Reads an instance of GenericResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

GenericResourceInner.id()

Returns:

the id value.

identity

public Identity identity()

Get the identity property: The identity of the resource.

Returns:

the identity value.

kind

public String kind()

Get the kind property: The kind of the resource.

Returns:

the kind value.

managedBy

public String managedBy()

Get the managedBy property: ID of the resource that manages this resource.

Returns:

the managedBy value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

GenericResourceInner.name()

Returns:

the name value.

plan

public Plan plan()

Get the plan property: The plan of the resource.

Returns:

the plan value.

properties

public Object properties()

Get the properties property: The resource properties.

Returns:

the properties value.

sku

public Sku sku()

Get the sku property: The SKU of the resource.

Returns:

the sku value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

GenericResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

GenericResourceInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withExtendedLocation

public GenericResourceInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: Resource extended location.

Parameters:

extendedLocation - the extendedLocation value to set.

Returns:

the GenericResourceInner object itself.

withIdentity

public GenericResourceInner withIdentity(Identity identity)

Set the identity property: The identity of the resource.

Parameters:

identity - the identity value to set.

Returns:

the GenericResourceInner object itself.

withKind

public GenericResourceInner withKind(String kind)

Set the kind property: The kind of the resource.

Parameters:

kind - the kind value to set.

Returns:

the GenericResourceInner object itself.

withLocation

public GenericResourceInner withLocation(String location)

Overrides:

GenericResourceInner.withLocation(String location)

Parameters:

location

withManagedBy

public GenericResourceInner withManagedBy(String managedBy)

Set the managedBy property: ID of the resource that manages this resource.

Parameters:

managedBy - the managedBy value to set.

Returns:

the GenericResourceInner object itself.

withPlan

public GenericResourceInner withPlan(Plan plan)

Set the plan property: The plan of the resource.

Parameters:

plan - the plan value to set.

Returns:

the GenericResourceInner object itself.

withProperties

public GenericResourceInner withProperties(Object properties)

Set the properties property: The resource properties.

Parameters:

properties - the properties value to set.

Returns:

the GenericResourceInner object itself.

withSku

public GenericResourceInner withSku(Sku sku)

Set the sku property: The SKU of the resource.

Parameters:

sku - the sku value to set.

Returns:

the GenericResourceInner object itself.

withTags

public GenericResourceInner withTags(Map tags)

Overrides:

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

Parameters:

tags

Applies to