Share via


EndpointResource Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.models.EndpointResource

Implements

public final class EndpointResource
implements JsonSerializable<EndpointResource>

Defines the ARM Resource ID for the linked endpoints.

Constructor Summary

Constructor Description
EndpointResource()

Creates an instance of EndpointResource class.

Method Summary

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

Reads an instance of EndpointResource from the JsonReader.

String id()

Get the id property: ARM Resource ID string.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EndpointResource withId(String id)

Set the id property: ARM Resource ID string.

Methods inherited from java.lang.Object

Constructor Details

EndpointResource

public EndpointResource()

Creates an instance of EndpointResource class.

Method Details

fromJson

public static EndpointResource fromJson(JsonReader jsonReader)

Reads an instance of EndpointResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: ARM Resource ID string.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public EndpointResource withId(String id)

Set the id property: ARM Resource ID string.

Parameters:

id - the id value to set.

Returns:

the EndpointResource object itself.

Applies to