PeeringInner Class

public final class PeeringInner
extends ProxyResource

Peering is a logical representation of a set of connections to the Microsoft Cloud Edge at a location.

Constructor Summary

Constructor Description
PeeringInner()

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

Reads an instance of PeeringInner 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 the peering.

String location()

Get the location property: The location of the resource.

String name()

Get the name property: The name of the resource.

String peeringLocation()

Get the peeringLocation property: The location of the peering.

ProvisioningState provisioningState()

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

PeeringSku sku()

Get the sku property: The SKU that defines the tier and kind of the peering.

Map<String,String> tags()

Get the tags property: The resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

PeeringInner withDirect(PeeringPropertiesDirect direct)

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

PeeringInner withExchange(PeeringPropertiesExchange exchange)

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

PeeringInner withKind(Kind kind)

Set the kind property: The kind of the peering.

PeeringInner withLocation(String location)

Set the location property: The location of the resource.

PeeringInner withPeeringLocation(String peeringLocation)

Set the peeringLocation property: The location of the peering.

PeeringInner withSku(PeeringSku sku)

Set the sku property: The SKU that defines the tier and kind of the peering.

PeeringInner withTags(Map<String,String> tags)

Set the tags property: The resource tags.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

PeeringInner

public PeeringInner()

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

Reads an instance of PeeringInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

PeeringInner.id()

Returns:

the id value.

kind

public Kind kind()

Get the kind property: The kind of the peering.

Returns:

the kind value.

location

public String location()

Get the location property: The location of the resource.

Returns:

the location value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

PeeringInner.name()

Returns:

the name value.

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.

sku

public PeeringSku sku()

Get the sku property: The SKU that defines the tier and kind of the peering.

Returns:

the sku value.

tags

public Map<String,String> tags()

Get the tags property: The resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

PeeringInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

PeeringInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDirect

public PeeringInner withDirect(PeeringPropertiesDirect direct)

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

Parameters:

direct - the direct value to set.

Returns:

the PeeringInner object itself.

withExchange

public PeeringInner withExchange(PeeringPropertiesExchange exchange)

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

Parameters:

exchange - the exchange value to set.

Returns:

the PeeringInner object itself.

withKind

public PeeringInner withKind(Kind kind)

Set the kind property: The kind of the peering.

Parameters:

kind - the kind value to set.

Returns:

the PeeringInner object itself.

withLocation

public PeeringInner withLocation(String location)

Set the location property: The location of the resource.

Parameters:

location - the location value to set.

Returns:

the PeeringInner object itself.

withPeeringLocation

public PeeringInner withPeeringLocation(String peeringLocation)

Set the peeringLocation property: The location of the peering.

Parameters:

peeringLocation - the peeringLocation value to set.

Returns:

the PeeringInner object itself.

withSku

public PeeringInner withSku(PeeringSku sku)

Set the sku property: The SKU that defines the tier and kind of the peering.

Parameters:

sku - the sku value to set.

Returns:

the PeeringInner object itself.

withTags

public PeeringInner withTags(Map<String,String> tags)

Set the tags property: The resource tags.

Parameters:

tags - the tags value to set.

Returns:

the PeeringInner object itself.

Applies to