PeeringServiceLocationInner Class

public final class PeeringServiceLocationInner
extends ProxyResource

The peering service location.

Constructor Summary

Constructor Description
PeeringServiceLocationInner()

Creates an instance of PeeringServiceLocationInner class.

Method Summary

Modifier and Type Method and Description
String azureRegion()

Get the azureRegion property: Azure region for the location.

String country()

Get the country property: Country of the customer.

static PeeringServiceLocationInner fromJson(JsonReader jsonReader)

Reads an instance of PeeringServiceLocationInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

String state()

Get the state property: State of the customer.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

PeeringServiceLocationInner withAzureRegion(String azureRegion)

Set the azureRegion property: Azure region for the location.

PeeringServiceLocationInner withCountry(String country)

Set the country property: Country of the customer.

PeeringServiceLocationInner withState(String state)

Set the state property: State of the customer.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

PeeringServiceLocationInner

public PeeringServiceLocationInner()

Creates an instance of PeeringServiceLocationInner class.

Method Details

azureRegion

public String azureRegion()

Get the azureRegion property: Azure region for the location.

Returns:

the azureRegion value.

country

public String country()

Get the country property: Country of the customer.

Returns:

the country value.

fromJson

public static PeeringServiceLocationInner fromJson(JsonReader jsonReader)

Reads an instance of PeeringServiceLocationInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PeeringServiceLocationInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

PeeringServiceLocationInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

PeeringServiceLocationInner.name()

Returns:

the name value.

state

public String state()

Get the state property: State of the customer.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

PeeringServiceLocationInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

PeeringServiceLocationInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAzureRegion

public PeeringServiceLocationInner withAzureRegion(String azureRegion)

Set the azureRegion property: Azure region for the location.

Parameters:

azureRegion - the azureRegion value to set.

Returns:

the PeeringServiceLocationInner object itself.

withCountry

public PeeringServiceLocationInner withCountry(String country)

Set the country property: Country of the customer.

Parameters:

country - the country value to set.

Returns:

the PeeringServiceLocationInner object itself.

withState

public PeeringServiceLocationInner withState(String state)

Set the state property: State of the customer.

Parameters:

state - the state value to set.

Returns:

the PeeringServiceLocationInner object itself.

Applies to