CentralServerConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.workloadssapvirtualinstance.models.CentralServerConfiguration

Implements

public final class CentralServerConfiguration
implements JsonSerializable<CentralServerConfiguration>

Gets or sets the central server configuration.

Constructor Summary

Constructor Description
CentralServerConfiguration()

Creates an instance of CentralServerConfiguration class.

Method Summary

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

Reads an instance of CentralServerConfiguration from the JsonReader.

long instanceCount()

Get the instanceCount property: The number of central server VMs.

String subnetId()

Get the subnetId property: The subnet id.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualMachineConfiguration virtualMachineConfiguration()

Get the virtualMachineConfiguration property: Gets or sets the virtual machine configuration.

CentralServerConfiguration withInstanceCount(long instanceCount)

Set the instanceCount property: The number of central server VMs.

CentralServerConfiguration withSubnetId(String subnetId)

Set the subnetId property: The subnet id.

CentralServerConfiguration withVirtualMachineConfiguration(VirtualMachineConfiguration virtualMachineConfiguration)

Set the virtualMachineConfiguration property: Gets or sets the virtual machine configuration.

Methods inherited from java.lang.Object

Constructor Details

CentralServerConfiguration

public CentralServerConfiguration()

Creates an instance of CentralServerConfiguration class.

Method Details

fromJson

public static CentralServerConfiguration fromJson(JsonReader jsonReader)

Reads an instance of CentralServerConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

instanceCount

public long instanceCount()

Get the instanceCount property: The number of central server VMs.

Returns:

the instanceCount value.

subnetId

public String subnetId()

Get the subnetId property: The subnet id.

Returns:

the subnetId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

virtualMachineConfiguration

public VirtualMachineConfiguration virtualMachineConfiguration()

Get the virtualMachineConfiguration property: Gets or sets the virtual machine configuration.

Returns:

the virtualMachineConfiguration value.

withInstanceCount

public CentralServerConfiguration withInstanceCount(long instanceCount)

Set the instanceCount property: The number of central server VMs.

Parameters:

instanceCount - the instanceCount value to set.

Returns:

the CentralServerConfiguration object itself.

withSubnetId

public CentralServerConfiguration withSubnetId(String subnetId)

Set the subnetId property: The subnet id.

Parameters:

subnetId - the subnetId value to set.

Returns:

the CentralServerConfiguration object itself.

withVirtualMachineConfiguration

public CentralServerConfiguration withVirtualMachineConfiguration(VirtualMachineConfiguration virtualMachineConfiguration)

Set the virtualMachineConfiguration property: Gets or sets the virtual machine configuration.

Parameters:

virtualMachineConfiguration - the virtualMachineConfiguration value to set.

Returns:

the CentralServerConfiguration object itself.

Applies to