Partager via


ArmResourceProperties Class

public class ArmResourceProperties
extends Resource

The core properties of ARM resources.

Constructor Summary

Constructor Description
ArmResourceProperties()

Creates an instance of ArmResourceProperties class.

Method Summary

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

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

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ArmResourceProperties withLocation(String location)
ArmResourceProperties withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

ArmResourceProperties

public ArmResourceProperties()

Creates an instance of ArmResourceProperties class.

Method Details

fromJson

public static ArmResourceProperties fromJson(JsonReader jsonReader)

Reads an instance of ArmResourceProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ArmResourceProperties.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ArmResourceProperties.name()

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ArmResourceProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ArmResourceProperties.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withLocation

public ArmResourceProperties withLocation(String location)

Overrides:

ArmResourceProperties.withLocation(String location)

Parameters:

location

withTags

public ArmResourceProperties withTags(Map tags)

Overrides:

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

Parameters:

tags

Applies to