ExpressRouteCircuitSku Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.ExpressRouteCircuitSku

Implements

public final class ExpressRouteCircuitSku
implements JsonSerializable<ExpressRouteCircuitSku>

Contains SKU in an ExpressRouteCircuit.

Constructor Summary

Constructor Description
ExpressRouteCircuitSku()

Creates an instance of ExpressRouteCircuitSku class.

Method Summary

Modifier and Type Method and Description
ExpressRouteCircuitSkuFamily family()

Get the family property: The family of the SKU.

static ExpressRouteCircuitSku fromJson(JsonReader jsonReader)

Reads an instance of ExpressRouteCircuitSku from the JsonReader.

String name()

Get the name property: The name of the SKU.

ExpressRouteCircuitSkuTier tier()

Get the tier property: The tier of the SKU.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ExpressRouteCircuitSku withFamily(ExpressRouteCircuitSkuFamily family)

Set the family property: The family of the SKU.

ExpressRouteCircuitSku withName(String name)

Set the name property: The name of the SKU.

ExpressRouteCircuitSku withTier(ExpressRouteCircuitSkuTier tier)

Set the tier property: The tier of the SKU.

Methods inherited from java.lang.Object

Constructor Details

ExpressRouteCircuitSku

public ExpressRouteCircuitSku()

Creates an instance of ExpressRouteCircuitSku class.

Method Details

family

public ExpressRouteCircuitSkuFamily family()

Get the family property: The family of the SKU.

Returns:

the family value.

fromJson

public static ExpressRouteCircuitSku fromJson(JsonReader jsonReader)

Reads an instance of ExpressRouteCircuitSku from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name of the SKU.

Returns:

the name value.

tier

public ExpressRouteCircuitSkuTier tier()

Get the tier property: The tier of the SKU.

Returns:

the tier value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withFamily

public ExpressRouteCircuitSku withFamily(ExpressRouteCircuitSkuFamily family)

Set the family property: The family of the SKU.

Parameters:

family - the family value to set.

Returns:

the ExpressRouteCircuitSku object itself.

withName

public ExpressRouteCircuitSku withName(String name)

Set the name property: The name of the SKU.

Parameters:

name - the name value to set.

Returns:

the ExpressRouteCircuitSku object itself.

withTier

public ExpressRouteCircuitSku withTier(ExpressRouteCircuitSkuTier tier)

Set the tier property: The tier of the SKU.

Parameters:

tier - the tier value to set.

Returns:

the ExpressRouteCircuitSku object itself.

Applies to