다음을 통해 공유


ProxyOnlyResource Class

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

Implements

public class ProxyOnlyResource
implements JsonSerializable<ProxyOnlyResource>

The ProxyOnly Resource model definition.

Constructor Summary

Constructor Description
ProxyOnlyResource()

Creates an instance of ProxyOnlyResource class.

Method Summary

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

Reads an instance of ProxyOnlyResource from the JsonReader.

String id()

Get the id property: Resource Id.

String name()

Get the name property: Resource name.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

ProxyOnlyResource

public ProxyOnlyResource()

Creates an instance of ProxyOnlyResource class.

Method Details

fromJson

public static ProxyOnlyResource fromJson(JsonReader jsonReader)

Reads an instance of ProxyOnlyResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Resource Id.

Returns:

the id value.

name

public String name()

Get the name property: Resource name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Resource type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

Applies to