ServiceResourceInner Class

public final class ServiceResourceInner
extends ProxyResource

The service resource.

Constructor Summary

Constructor Description
ServiceResourceInner()

Creates an instance of ServiceResourceInner class.

Method Summary

Modifier and Type Method and Description
String etag()

Get the etag property: Azure resource etag.

static ServiceResourceInner fromJson(JsonReader jsonReader)

Reads an instance of ServiceResourceInner from the JsonReader.

String id()

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

String location()

Get the location property: It will be deprecated in New API, resource location depends on the parent resource.

String name()

Get the name property: The name of the resource.

ServiceResourceProperties properties()

Get the properties property: The service resource properties.

SystemData systemData()

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

Map<String,String> tags()

Get the tags property: Azure resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ServiceResourceInner withLocation(String location)

Set the location property: It will be deprecated in New API, resource location depends on the parent resource.

ServiceResourceInner withProperties(ServiceResourceProperties properties)

Set the properties property: The service resource properties.

ServiceResourceInner withTags(Map<String,String> tags)

Set the tags property: Azure resource tags.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ServiceResourceInner

public ServiceResourceInner()

Creates an instance of ServiceResourceInner class.

Method Details

etag

public String etag()

Get the etag property: Azure resource etag.

Returns:

the etag value.

fromJson

public static ServiceResourceInner fromJson(JsonReader jsonReader)

Reads an instance of ServiceResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ServiceResourceInner.id()

Returns:

the id value.

location

public String location()

Get the location property: It will be deprecated in New API, resource location depends on the parent resource.

Returns:

the location value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ServiceResourceInner.name()

Returns:

the name value.

properties

public ServiceResourceProperties properties()

Get the properties property: The service resource properties.

Returns:

the properties value.

systemData

public SystemData systemData()

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

Returns:

the systemData value.

tags

public Map<String,String> tags()

Get the tags property: Azure resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ServiceResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ServiceResourceInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withLocation

public ServiceResourceInner withLocation(String location)

Set the location property: It will be deprecated in New API, resource location depends on the parent resource.

Parameters:

location - the location value to set.

Returns:

the ServiceResourceInner object itself.

withProperties

public ServiceResourceInner withProperties(ServiceResourceProperties properties)

Set the properties property: The service resource properties.

Parameters:

properties - the properties value to set.

Returns:

the ServiceResourceInner object itself.

withTags

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

Set the tags property: Azure resource tags.

Parameters:

tags - the tags value to set.

Returns:

the ServiceResourceInner object itself.

Applies to