SettableResource Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.models.SettableResource

Implements

public class SettableResource
implements JsonSerializable<SettableResource>

The resource model definition for resource.

Constructor Summary

Modifier Constructor Description
protected SettableResource()

Creates an instance of SettableResource class.

Method Summary

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

Reads an instance of SettableResource from the JsonReader.

String id()

Get the id property: The provider ID.

String name()

Get the name property: The provider name.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The provider type.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

SettableResource

protected SettableResource()

Creates an instance of SettableResource class.

Method Details

fromJson

public static SettableResource fromJson(JsonReader jsonReader)

Reads an instance of SettableResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SettableResource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the SettableResource.

id

public String id()

Get the id property: The provider ID.

Returns:

the id value.

name

public String name()

Get the name property: The provider name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The provider type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

Applies to