Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.batchai; import com.fasterxml.jackson.annotation.JsonProperty;
Auto-scale settings for the cluster. The system automatically scales the cluster up and down (within minimumNodeCount and maximumNodeCount) based on the number of queued and running jobs assigned to the cluster.
/** * Auto-scale settings for the cluster. The system automatically scales the * cluster up and down (within minimumNodeCount and maximumNodeCount) based on * the number of queued and running jobs assigned to the cluster. */
public class AutoScaleSettings {
Minimum node count. The minimum number of compute nodes the Batch AI service will try to allocate for the cluster. Note, the actual number of nodes can be less than the specified value if the subscription has not enough quota to fulfill the request.
/** * Minimum node count. * The minimum number of compute nodes the Batch AI service will try to * allocate for the cluster. Note, the actual number of nodes can be less * than the specified value if the subscription has not enough quota to * fulfill the request. */
@JsonProperty(value = "minimumNodeCount", required = true) private int minimumNodeCount;
Maximum node count. The maximum number of compute nodes the cluster can have.
/** * Maximum node count. * The maximum number of compute nodes the cluster can have. */
@JsonProperty(value = "maximumNodeCount", required = true) private int maximumNodeCount;
Initial node count. The number of compute nodes to allocate on cluster creation. Note that this value is used only during cluster creation. Default: 0.
/** * Initial node count. * The number of compute nodes to allocate on cluster creation. Note that * this value is used only during cluster creation. Default: 0. */
@JsonProperty(value = "initialNodeCount") private Integer initialNodeCount;
Get the minimum number of compute nodes the Batch AI service will try to allocate for the cluster. Note, the actual number of nodes can be less than the specified value if the subscription has not enough quota to fulfill the request.
Returns:the minimumNodeCount value
/** * Get the minimum number of compute nodes the Batch AI service will try to allocate for the cluster. Note, the actual number of nodes can be less than the specified value if the subscription has not enough quota to fulfill the request. * * @return the minimumNodeCount value */
public int minimumNodeCount() { return this.minimumNodeCount; }
Set the minimum number of compute nodes the Batch AI service will try to allocate for the cluster. Note, the actual number of nodes can be less than the specified value if the subscription has not enough quota to fulfill the request.
Params:
  • minimumNodeCount – the minimumNodeCount value to set
Returns:the AutoScaleSettings object itself.
/** * Set the minimum number of compute nodes the Batch AI service will try to allocate for the cluster. Note, the actual number of nodes can be less than the specified value if the subscription has not enough quota to fulfill the request. * * @param minimumNodeCount the minimumNodeCount value to set * @return the AutoScaleSettings object itself. */
public AutoScaleSettings withMinimumNodeCount(int minimumNodeCount) { this.minimumNodeCount = minimumNodeCount; return this; }
Get the maximum number of compute nodes the cluster can have.
Returns:the maximumNodeCount value
/** * Get the maximum number of compute nodes the cluster can have. * * @return the maximumNodeCount value */
public int maximumNodeCount() { return this.maximumNodeCount; }
Set the maximum number of compute nodes the cluster can have.
Params:
  • maximumNodeCount – the maximumNodeCount value to set
Returns:the AutoScaleSettings object itself.
/** * Set the maximum number of compute nodes the cluster can have. * * @param maximumNodeCount the maximumNodeCount value to set * @return the AutoScaleSettings object itself. */
public AutoScaleSettings withMaximumNodeCount(int maximumNodeCount) { this.maximumNodeCount = maximumNodeCount; return this; }
Get the number of compute nodes to allocate on cluster creation. Note that this value is used only during cluster creation. Default: 0.
Returns:the initialNodeCount value
/** * Get the number of compute nodes to allocate on cluster creation. Note that this value is used only during cluster creation. Default: 0. * * @return the initialNodeCount value */
public Integer initialNodeCount() { return this.initialNodeCount; }
Set the number of compute nodes to allocate on cluster creation. Note that this value is used only during cluster creation. Default: 0.
Params:
  • initialNodeCount – the initialNodeCount value to set
Returns:the AutoScaleSettings object itself.
/** * Set the number of compute nodes to allocate on cluster creation. Note that this value is used only during cluster creation. Default: 0. * * @param initialNodeCount the initialNodeCount value to set * @return the AutoScaleSettings object itself. */
public AutoScaleSettings withInitialNodeCount(Integer initialNodeCount) { this.initialNodeCount = initialNodeCount; return this; } }