InterconnectBlockProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.InterconnectBlockProfile

Implements

public final class InterconnectBlockProfile
implements JsonSerializable<InterconnectBlockProfile>

The parameters of an Interconnect Block Profile.

Constructor Summary

Constructor Description
InterconnectBlockProfile()

Creates an instance of InterconnectBlockProfile class.

Method Summary

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

Reads an instance of InterconnectBlockProfile from the JsonReader.

ApiEntityReference interconnectBlock()

Get the interconnectBlock property: Specifies the Interconnect Block resource ID that should be used for allocating the Virtual Machine or Scale Set VM instances provided enough capacity has been reserved.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

InterconnectBlockProfile withInterconnectBlock(ApiEntityReference interconnectBlock)

Set the interconnectBlock property: Specifies the Interconnect Block resource ID that should be used for allocating the Virtual Machine or Scale Set VM instances provided enough capacity has been reserved.

Methods inherited from java.lang.Object

Constructor Details

InterconnectBlockProfile

public InterconnectBlockProfile()

Creates an instance of InterconnectBlockProfile class.

Method Details

fromJson

public static InterconnectBlockProfile fromJson(JsonReader jsonReader)

Reads an instance of InterconnectBlockProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

interconnectBlock

public ApiEntityReference interconnectBlock()

Get the interconnectBlock property: Specifies the Interconnect Block resource ID that should be used for allocating the Virtual Machine or Scale Set VM instances provided enough capacity has been reserved.

Returns:

the interconnectBlock value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withInterconnectBlock

public InterconnectBlockProfile withInterconnectBlock(ApiEntityReference interconnectBlock)

Set the interconnectBlock property: Specifies the Interconnect Block resource ID that should be used for allocating the Virtual Machine or Scale Set VM instances provided enough capacity has been reserved.

Parameters:

interconnectBlock - the interconnectBlock value to set.

Returns:

the InterconnectBlockProfile object itself.

Applies to