Compartilhar via


GenericResourceExpandedInner Class

public final class GenericResourceExpandedInner
extends GenericResourceInner

Resource information.

Constructor Summary

Constructor Description
GenericResourceExpandedInner()

Creates an instance of GenericResourceExpandedInner class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime changedTime()

Get the changedTime property: The changed time of the resource.

OffsetDateTime createdTime()

Get the createdTime property: The created time of the resource.

static GenericResourceExpandedInner fromJson(JsonReader jsonReader)

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

String provisioningState()

Get the provisioningState property: The provisioning state of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

GenericResourceExpandedInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: Resource extended location.

GenericResourceExpandedInner withIdentity(Identity identity)

Set the identity property: The identity of the resource.

GenericResourceExpandedInner withKind(String kind)

Set the kind property: The kind of the resource.

GenericResourceExpandedInner withLocation(String location)
GenericResourceExpandedInner withManagedBy(String managedBy)

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

GenericResourceExpandedInner withPlan(Plan plan)

Set the plan property: The plan of the resource.

GenericResourceExpandedInner withProperties(Object properties)

Set the properties property: The resource properties.

GenericResourceExpandedInner withSku(Sku sku)

Set the sku property: The SKU of the resource.

GenericResourceExpandedInner withTags(Map<String,String> tags)

Methods inherited from Resource

Methods inherited from GenericResourceInner

Methods inherited from java.lang.Object

Constructor Details

GenericResourceExpandedInner

public GenericResourceExpandedInner()

Creates an instance of GenericResourceExpandedInner class.

Method Details

changedTime

public OffsetDateTime changedTime()

Get the changedTime property: The changed time of the resource. This is only present if requested via the $expand query parameter.

Returns:

the changedTime value.

createdTime

public OffsetDateTime createdTime()

Get the createdTime property: The created time of the resource. This is only present if requested via the $expand query parameter.

Returns:

the createdTime value.

fromJson

public static GenericResourceExpandedInner fromJson(JsonReader jsonReader)

Reads an instance of GenericResourceExpandedInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

GenericResourceExpandedInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

GenericResourceExpandedInner.name()

Returns:

the name value.

provisioningState

public String provisioningState()

Get the provisioningState property: The provisioning state of the resource. This is only present if requested via the $expand query parameter.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

GenericResourceExpandedInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

GenericResourceExpandedInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

GenericResourceExpandedInner.validate()

withExtendedLocation

public GenericResourceExpandedInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: Resource extended location.

Overrides:

GenericResourceExpandedInner.withExtendedLocation(ExtendedLocation extendedLocation)

Parameters:

extendedLocation

withIdentity

public GenericResourceExpandedInner withIdentity(Identity identity)

Set the identity property: The identity of the resource.

Overrides:

GenericResourceExpandedInner.withIdentity(Identity identity)

Parameters:

identity

withKind

public GenericResourceExpandedInner withKind(String kind)

Set the kind property: The kind of the resource.

Overrides:

GenericResourceExpandedInner.withKind(String kind)

Parameters:

kind

withLocation

public GenericResourceExpandedInner withLocation(String location)

Overrides:

GenericResourceExpandedInner.withLocation(String location)

Parameters:

location

withManagedBy

public GenericResourceExpandedInner withManagedBy(String managedBy)

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

Overrides:

GenericResourceExpandedInner.withManagedBy(String managedBy)

Parameters:

managedBy

withPlan

public GenericResourceExpandedInner withPlan(Plan plan)

Set the plan property: The plan of the resource.

Overrides:

GenericResourceExpandedInner.withPlan(Plan plan)

Parameters:

plan

withProperties

public GenericResourceExpandedInner withProperties(Object properties)

Set the properties property: The resource properties.

Overrides:

GenericResourceExpandedInner.withProperties(Object properties)

Parameters:

properties

withSku

public GenericResourceExpandedInner withSku(Sku sku)

Set the sku property: The SKU of the resource.

Overrides:

GenericResourceExpandedInner.withSku(Sku sku)

Parameters:

sku

withTags

public GenericResourceExpandedInner withTags(Map tags)

Overrides:

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

Parameters:

tags

Applies to