PirResource Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.PirResource

Implements

public class PirResource
implements JsonSerializable<PirResource>

The Resource model definition.

Constructor Summary

Constructor Description
PirResource()

Creates an instance of PirResource class.

Method Summary

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

Reads an instance of PirResource from the JsonReader.

String location()

Get the location property: Resource location.

String name()

Get the name property: Resource name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

PirResource

public PirResource()

Creates an instance of PirResource class.

Method Details

fromJson

public static PirResource fromJson(JsonReader jsonReader)

Reads an instance of PirResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PirResource 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 PirResource.

location

public String location()

Get the location property: Resource location.

Returns:

the location value.

name

public String name()

Get the name property: Resource name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to