Class DeploymentConfiguration
java.lang.Object
com.azure.resourcemanager.batch.models.DeploymentConfiguration
Deployment configuration properties.
-
Constructor Summary
ConstructorDescriptionCreates an instance of DeploymentConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionGet the cloudServiceConfiguration property: The configuration for nodes in a pool based on the Azure Cloud Services platform.void
validate()
Validates the instance.Get the virtualMachineConfiguration property: The configuration for compute nodes in a pool based on the Azure Virtual Machines infrastructure.withCloudServiceConfiguration
(CloudServiceConfiguration cloudServiceConfiguration) Set the cloudServiceConfiguration property: The configuration for nodes in a pool based on the Azure Cloud Services platform.withVirtualMachineConfiguration
(VirtualMachineConfiguration virtualMachineConfiguration) Set the virtualMachineConfiguration property: The configuration for compute nodes in a pool based on the Azure Virtual Machines infrastructure.
-
Constructor Details
-
DeploymentConfiguration
public DeploymentConfiguration()Creates an instance of DeploymentConfiguration class.
-
-
Method Details
-
cloudServiceConfiguration
Get the cloudServiceConfiguration property: The configuration for nodes in a pool based on the Azure Cloud Services platform.This property and virtualMachineConfiguration are mutually exclusive and one of the properties must be specified. This property cannot be specified if the Batch account was created with its poolAllocationMode property set to 'UserSubscription'.
- Returns:
- the cloudServiceConfiguration value.
-
withCloudServiceConfiguration
public DeploymentConfiguration withCloudServiceConfiguration(CloudServiceConfiguration cloudServiceConfiguration) Set the cloudServiceConfiguration property: The configuration for nodes in a pool based on the Azure Cloud Services platform.This property and virtualMachineConfiguration are mutually exclusive and one of the properties must be specified. This property cannot be specified if the Batch account was created with its poolAllocationMode property set to 'UserSubscription'.
- Parameters:
cloudServiceConfiguration
- the cloudServiceConfiguration value to set.- Returns:
- the DeploymentConfiguration object itself.
-
virtualMachineConfiguration
Get the virtualMachineConfiguration property: The configuration for compute nodes in a pool based on the Azure Virtual Machines infrastructure.This property and cloudServiceConfiguration are mutually exclusive and one of the properties must be specified.
- Returns:
- the virtualMachineConfiguration value.
-
withVirtualMachineConfiguration
public DeploymentConfiguration withVirtualMachineConfiguration(VirtualMachineConfiguration virtualMachineConfiguration) Set the virtualMachineConfiguration property: The configuration for compute nodes in a pool based on the Azure Virtual Machines infrastructure.This property and cloudServiceConfiguration are mutually exclusive and one of the properties must be specified.
- Parameters:
virtualMachineConfiguration
- the virtualMachineConfiguration value to set.- Returns:
- the DeploymentConfiguration object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-