PirResource Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. PirResource
- com.
Implements
public class PirResource
implements JsonSerializable<PirResource>
The Resource model definition.
Constructor Summary
Constructor | Description |
---|---|
PirResource() |
Creates an instance of Pir |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Pir |
fromJson(JsonReader jsonReader)
Reads an instance of Pir |
String |
location()
Get the location property: Resource location. |
String |
name()
Get the name property: Resource name. |
Json |
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:
- 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
validate
public void validate()
Validates the instance.