PeeringProperties Class

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

Implements

public final class PeeringProperties
implements JsonSerializable<PeeringProperties>

The properties that define connectivity to the Microsoft Cloud Edge.

Constructor Summary

Constructor Description
PeeringProperties()

Creates an instance of PeeringProperties class.

Method Summary

Modifier and Type Method and Description
PeeringPropertiesDirect direct()

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

PeeringPropertiesExchange exchange()

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

static PeeringProperties fromJson(JsonReader jsonReader)

Reads an instance of PeeringProperties from the JsonReader.

String peeringLocation()

Get the peeringLocation property: The location of the peering.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PeeringProperties withDirect(PeeringPropertiesDirect direct)

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

PeeringProperties withExchange(PeeringPropertiesExchange exchange)

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

PeeringProperties withPeeringLocation(String peeringLocation)

Set the peeringLocation property: The location of the peering.

Methods inherited from java.lang.Object

Constructor Details

PeeringProperties

public PeeringProperties()

Creates an instance of PeeringProperties class.

Method Details

direct

public PeeringPropertiesDirect direct()

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

Returns:

the direct value.

exchange

public PeeringPropertiesExchange exchange()

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

Returns:

the exchange value.

fromJson

public static PeeringProperties fromJson(JsonReader jsonReader)

Reads an instance of PeeringProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

peeringLocation

public String peeringLocation()

Get the peeringLocation property: The location of the peering.

Returns:

the peeringLocation value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDirect

public PeeringProperties withDirect(PeeringPropertiesDirect direct)

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

Parameters:

direct - the direct value to set.

Returns:

the PeeringProperties object itself.

withExchange

public PeeringProperties withExchange(PeeringPropertiesExchange exchange)

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

Parameters:

exchange - the exchange value to set.

Returns:

the PeeringProperties object itself.

withPeeringLocation

public PeeringProperties withPeeringLocation(String peeringLocation)

Set the peeringLocation property: The location of the peering.

Parameters:

peeringLocation - the peeringLocation value to set.

Returns:

the PeeringProperties object itself.

Applies to