PeeringLocationProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.peering.fluent.models.PeeringLocationProperties

Implements

public final class PeeringLocationProperties
implements JsonSerializable<PeeringLocationProperties>

The properties that define a peering location.

Constructor Summary

Constructor Description
PeeringLocationProperties()

Creates an instance of PeeringLocationProperties 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 PeeringLocationProperties fromJson(JsonReader jsonReader)

Reads an instance of PeeringLocationProperties from the JsonReader.

String peeringLocation()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PeeringLocationProperties withAzureRegion(String azureRegion)

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

PeeringLocationProperties withCountry(String country)

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

PeeringLocationProperties withDirect(PeeringLocationPropertiesDirect direct)

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

PeeringLocationProperties withExchange(PeeringLocationPropertiesExchange exchange)

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

PeeringLocationProperties withPeeringLocation(String peeringLocation)

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

Methods inherited from java.lang.Object

Constructor Details

PeeringLocationProperties

public PeeringLocationProperties()

Creates an instance of PeeringLocationProperties 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 PeeringLocationProperties fromJson(JsonReader jsonReader)

Reads an instance of PeeringLocationProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

peeringLocation

public String peeringLocation()

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

Returns:

the peeringLocation value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAzureRegion

public PeeringLocationProperties withAzureRegion(String azureRegion)

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

Parameters:

azureRegion - the azureRegion value to set.

Returns:

the PeeringLocationProperties object itself.

withCountry

public PeeringLocationProperties withCountry(String country)

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

Parameters:

country - the country value to set.

Returns:

the PeeringLocationProperties object itself.

withDirect

public PeeringLocationProperties withDirect(PeeringLocationPropertiesDirect direct)

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

Parameters:

direct - the direct value to set.

Returns:

the PeeringLocationProperties object itself.

withExchange

public PeeringLocationProperties withExchange(PeeringLocationPropertiesExchange exchange)

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

Parameters:

exchange - the exchange value to set.

Returns:

the PeeringLocationProperties object itself.

withPeeringLocation

public PeeringLocationProperties withPeeringLocation(String peeringLocation)

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

Parameters:

peeringLocation - the peeringLocation value to set.

Returns:

the PeeringLocationProperties object itself.

Applies to