ArmProxyResource Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.ArmProxyResource

Implements

public class ArmProxyResource
implements JsonSerializable<ArmProxyResource>

The resource model definition for a ARM proxy resource. It will have everything other than required location and tags.

Constructor Summary

Constructor Description
ArmProxyResource()

Creates an instance of ArmProxyResource class.

Method Summary

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

Reads an instance of ArmProxyResource from the JsonReader.

String id()

Get the id property: The unique resource identifier of the database account.

String name()

Get the name property: The name of the database account.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of Azure resource.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

ArmProxyResource

public ArmProxyResource()

Creates an instance of ArmProxyResource class.

Method Details

fromJson

public static ArmProxyResource fromJson(JsonReader jsonReader)

Reads an instance of ArmProxyResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The unique resource identifier of the database account.

Returns:

the id value.

name

public String name()

Get the name property: The name of the database account.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of Azure resource.

Returns:

the type value.

validate

public void validate()

Validates the instance.

Applies to