ResourceGuardResourceInner Class

public final class ResourceGuardResourceInner
extends Resource

Concrete tracked resource types can be created by aliasing this type using a specific property type.

Constructor Summary

Constructor Description
ResourceGuardResourceInner()

Creates an instance of ResourceGuardResourceInner class.

Method Summary

Modifier and Type Method and Description
String etag()

Get the etag property: Optional ETag.

static ResourceGuardResourceInner fromJson(JsonReader jsonReader)

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

ResourceGuard properties()

Get the properties property: ResourceGuardResource properties.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

ResourceGuardResourceInner withEtag(String etag)

Set the etag property: Optional ETag.

ResourceGuardResourceInner withLocation(String location)
ResourceGuardResourceInner withProperties(ResourceGuard properties)

Set the properties property: ResourceGuardResource properties.

ResourceGuardResourceInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

ResourceGuardResourceInner

public ResourceGuardResourceInner()

Creates an instance of ResourceGuardResourceInner class.

Method Details

etag

public String etag()

Get the etag property: Optional ETag.

Returns:

the etag value.

fromJson

public static ResourceGuardResourceInner fromJson(JsonReader jsonReader)

Reads an instance of ResourceGuardResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ResourceGuardResourceInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ResourceGuardResourceInner.name()

Returns:

the name value.

properties

public ResourceGuard properties()

Get the properties property: ResourceGuardResource properties.

Returns:

the properties value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ResourceGuardResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ResourceGuardResourceInner.type()

Returns:

the type value.

withEtag

public ResourceGuardResourceInner withEtag(String etag)

Set the etag property: Optional ETag.

Parameters:

etag - the etag value to set.

Returns:

the ResourceGuardResourceInner object itself.

withLocation

public ResourceGuardResourceInner withLocation(String location)

Overrides:

ResourceGuardResourceInner.withLocation(String location)

Parameters:

location

withProperties

public ResourceGuardResourceInner withProperties(ResourceGuard properties)

Set the properties property: ResourceGuardResource properties.

Parameters:

properties - the properties value to set.

Returns:

the ResourceGuardResourceInner object itself.

withTags

public ResourceGuardResourceInner withTags(Map<String,String> tags)

Overrides:

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

Parameters:

tags

Applies to