Class ApplicationServerConfiguration
java.lang.Object
com.azure.resourcemanager.workloads.models.ApplicationServerConfiguration
Gets or sets the application server configuration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
Get the instanceCount property: The number of app server instances.subnetId()
Get the subnetId property: The subnet id.void
validate()
Validates the instance.Get the virtualMachineConfiguration property: Gets or sets the virtual machine configuration.withInstanceCount
(long instanceCount) Set the instanceCount property: The number of app server instances.withSubnetId
(String subnetId) Set the subnetId property: The subnet id.withVirtualMachineConfiguration
(VirtualMachineConfiguration virtualMachineConfiguration) Set the virtualMachineConfiguration property: Gets or sets the virtual machine configuration.
-
Constructor Details
-
ApplicationServerConfiguration
public ApplicationServerConfiguration()
-
-
Method Details
-
subnetId
Get the subnetId property: The subnet id.- Returns:
- the subnetId value.
-
withSubnetId
Set the subnetId property: The subnet id.- Parameters:
subnetId
- the subnetId value to set.- Returns:
- the ApplicationServerConfiguration object itself.
-
virtualMachineConfiguration
Get the virtualMachineConfiguration property: Gets or sets the virtual machine configuration.- Returns:
- the virtualMachineConfiguration value.
-
withVirtualMachineConfiguration
public ApplicationServerConfiguration withVirtualMachineConfiguration(VirtualMachineConfiguration virtualMachineConfiguration) Set the virtualMachineConfiguration property: Gets or sets the virtual machine configuration.- Parameters:
virtualMachineConfiguration
- the virtualMachineConfiguration value to set.- Returns:
- the ApplicationServerConfiguration object itself.
-
instanceCount
public long instanceCount()Get the instanceCount property: The number of app server instances.- Returns:
- the instanceCount value.
-
withInstanceCount
Set the instanceCount property: The number of app server instances.- Parameters:
instanceCount
- the instanceCount value to set.- Returns:
- the ApplicationServerConfiguration object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-