InterconnectBlockInner Class

public final class InterconnectBlockInner
extends Resource

Specifies information about the Interconnect Block.

Constructor Summary

Constructor Description
InterconnectBlockInner()

Creates an instance of InterconnectBlockInner class.

Method Summary

Modifier and Type Method and Description
static InterconnectBlockInner fromJson(JsonReader jsonReader)

Reads an instance of InterconnectBlockInner from the JsonReader.

String id()

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

String name()

Get the name property: The name of the resource.

Placement placement()

Get the placement property: Placement section specifies the user-defined constraints for Interconnect Block hardware placement.

InterconnectBlockProperties properties()

Get the properties property: Properties of the Interconnect Block.

Sku sku()

Get the sku property: SKU of the resource for which capacity needs to be pre-allocated.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

InterconnectBlockInner withLocation(String location)
InterconnectBlockInner withPlacement(Placement placement)

Set the placement property: Placement section specifies the user-defined constraints for Interconnect Block hardware placement.

InterconnectBlockInner withProperties(InterconnectBlockProperties properties)

Set the properties property: Properties of the Interconnect Block.

InterconnectBlockInner withSku(Sku sku)

Set the sku property: SKU of the resource for which capacity needs to be pre-allocated.

InterconnectBlockInner withTags(Map<String,String> tags)
InterconnectBlockInner withZones(List<String> zones)

Set the zones property: The availability zones.

List<String> zones()

Get the zones property: The availability zones.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

InterconnectBlockInner

public InterconnectBlockInner()

Creates an instance of InterconnectBlockInner class.

Method Details

fromJson

public static InterconnectBlockInner fromJson(JsonReader jsonReader)

Reads an instance of InterconnectBlockInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

InterconnectBlockInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

InterconnectBlockInner.name()

Returns:

the name value.

placement

public Placement placement()

Get the placement property: Placement section specifies the user-defined constraints for Interconnect Block hardware placement. This property cannot be changed once Interconnect Block is provisioned.

Returns:

the placement value.

properties

public InterconnectBlockProperties properties()

Get the properties property: Properties of the Interconnect Block.

Returns:

the properties value.

sku

public Sku sku()

Get the sku property: SKU of the resource for which capacity needs to be pre-allocated. Both `sku.name` and `sku.capacity` are required at create. After create, only `sku.capacity` can be updated.

Returns:

the sku value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

InterconnectBlockInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

InterconnectBlockInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withLocation

public InterconnectBlockInner withLocation(String location)

Overrides:

InterconnectBlockInner.withLocation(String location)

Parameters:

location

withPlacement

public InterconnectBlockInner withPlacement(Placement placement)

Set the placement property: Placement section specifies the user-defined constraints for Interconnect Block hardware placement. This property cannot be changed once Interconnect Block is provisioned.

Parameters:

placement - the placement value to set.

Returns:

the InterconnectBlockInner object itself.

withProperties

public InterconnectBlockInner withProperties(InterconnectBlockProperties properties)

Set the properties property: Properties of the Interconnect Block.

Parameters:

properties - the properties value to set.

Returns:

the InterconnectBlockInner object itself.

withSku

public InterconnectBlockInner withSku(Sku sku)

Set the sku property: SKU of the resource for which capacity needs to be pre-allocated. Both `sku.name` and `sku.capacity` are required at create. After create, only `sku.capacity` can be updated.

Parameters:

sku - the sku value to set.

Returns:

the InterconnectBlockInner object itself.

withTags

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

Overrides:

InterconnectBlockInner.withTags(Map<String,String> tags)

Parameters:

tags

withZones

public InterconnectBlockInner withZones(List<String> zones)

Set the zones property: The availability zones.

Parameters:

zones - the zones value to set.

Returns:

the InterconnectBlockInner object itself.

zones

public List<String> zones()

Get the zones property: The availability zones.

Returns:

the zones value.

Applies to