PeeringLocationInner Class

public final class PeeringLocationInner
extends ProxyResource

Peering location is where connectivity could be established to the Microsoft Cloud Edge.

Constructor Summary

Constructor Description
PeeringLocationInner()

Creates an instance of PeeringLocationInner class.

Method Summary

Modifier and Type Method and Description
String azureRegion()

Get the azureRegion property: The Azure region associated with the peering location.

String country()

Get the country property: The country in which the peering location exists.

PeeringLocationPropertiesDirect direct()

Get the direct property: The properties that define a direct peering location.

PeeringLocationPropertiesExchange exchange()

Get the exchange property: The properties that define an exchange peering location.

static PeeringLocationInner fromJson(JsonReader jsonReader)

Reads an instance of PeeringLocationInner from the JsonReader.

String id()

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

Kind kind()

Get the kind property: The kind of peering that the peering location supports.

String name()

Get the name property: The name of the resource.

String peeringLocation()

Get the peeringLocation property: The name of the peering location.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

PeeringLocationInner withAzureRegion(String azureRegion)

Set the azureRegion property: The Azure region associated with the peering location.

PeeringLocationInner withCountry(String country)

Set the country property: The country in which the peering location exists.

PeeringLocationInner withDirect(PeeringLocationPropertiesDirect direct)

Set the direct property: The properties that define a direct peering location.

PeeringLocationInner withExchange(PeeringLocationPropertiesExchange exchange)

Set the exchange property: The properties that define an exchange peering location.

PeeringLocationInner withKind(Kind kind)

Set the kind property: The kind of peering that the peering location supports.

PeeringLocationInner withPeeringLocation(String peeringLocation)

Set the peeringLocation property: The name of the peering location.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

PeeringLocationInner

public PeeringLocationInner()

Creates an instance of PeeringLocationInner class.

Method Details

azureRegion

public String azureRegion()

Get the azureRegion property: The Azure region associated with the peering location.

Returns:

the azureRegion value.

country

public String country()

Get the country property: The country in which the peering location exists.

Returns:

the country value.

direct

public PeeringLocationPropertiesDirect direct()

Get the direct property: The properties that define a direct peering location.

Returns:

the direct value.

exchange

public PeeringLocationPropertiesExchange exchange()

Get the exchange property: The properties that define an exchange peering location.

Returns:

the exchange value.

fromJson

public static PeeringLocationInner fromJson(JsonReader jsonReader)

Reads an instance of PeeringLocationInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PeeringLocationInner 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:

PeeringLocationInner.id()

Returns:

the id value.

kind

public Kind kind()

Get the kind property: The kind of peering that the peering location supports.

Returns:

the kind value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

PeeringLocationInner.name()

Returns:

the name value.

peeringLocation

public String peeringLocation()

Get the peeringLocation property: The name of the peering location.

Returns:

the peeringLocation value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

PeeringLocationInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

PeeringLocationInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAzureRegion

public PeeringLocationInner withAzureRegion(String azureRegion)

Set the azureRegion property: The Azure region associated with the peering location.

Parameters:

azureRegion - the azureRegion value to set.

Returns:

the PeeringLocationInner object itself.

withCountry

public PeeringLocationInner withCountry(String country)

Set the country property: The country in which the peering location exists.

Parameters:

country - the country value to set.

Returns:

the PeeringLocationInner object itself.

withDirect

public PeeringLocationInner withDirect(PeeringLocationPropertiesDirect direct)

Set the direct property: The properties that define a direct peering location.

Parameters:

direct - the direct value to set.

Returns:

the PeeringLocationInner object itself.

withExchange

public PeeringLocationInner withExchange(PeeringLocationPropertiesExchange exchange)

Set the exchange property: The properties that define an exchange peering location.

Parameters:

exchange - the exchange value to set.

Returns:

the PeeringLocationInner object itself.

withKind

public PeeringLocationInner withKind(Kind kind)

Set the kind property: The kind of peering that the peering location supports.

Parameters:

kind - the kind value to set.

Returns:

the PeeringLocationInner object itself.

withPeeringLocation

public PeeringLocationInner withPeeringLocation(String peeringLocation)

Set the peeringLocation property: The name of the peering location.

Parameters:

peeringLocation - the peeringLocation value to set.

Returns:

the PeeringLocationInner object itself.

Applies to