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.monitor; import com.fasterxml.jackson.annotation.JsonProperty;
The number of instances that can be used during this profile.
/** * The number of instances that can be used during this profile. */
public class ScaleCapacity {
the minimum number of instances for the resource.
/** * the minimum number of instances for the resource. */
@JsonProperty(value = "minimum", required = true) private String minimum;
the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription.
/** * the maximum number of instances for the resource. The actual maximum * number of instances is limited by the cores that are available in the * subscription. */
@JsonProperty(value = "maximum", required = true) private String maximum;
the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default.
/** * the number of instances that will be set if metrics are not available * for evaluation. The default is only used if the current instance count * is lower than the default. */
@JsonProperty(value = "default", required = true) private String defaultProperty;
Get the minimum number of instances for the resource.
Returns:the minimum value
/** * Get the minimum number of instances for the resource. * * @return the minimum value */
public String minimum() { return this.minimum; }
Set the minimum number of instances for the resource.
Params:
  • minimum – the minimum value to set
Returns:the ScaleCapacity object itself.
/** * Set the minimum number of instances for the resource. * * @param minimum the minimum value to set * @return the ScaleCapacity object itself. */
public ScaleCapacity withMinimum(String minimum) { this.minimum = minimum; return this; }
Get the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription.
Returns:the maximum value
/** * Get the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription. * * @return the maximum value */
public String maximum() { return this.maximum; }
Set the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription.
Params:
  • maximum – the maximum value to set
Returns:the ScaleCapacity object itself.
/** * Set the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription. * * @param maximum the maximum value to set * @return the ScaleCapacity object itself. */
public ScaleCapacity withMaximum(String maximum) { this.maximum = maximum; return this; }
Get the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default.
Returns:the defaultProperty value
/** * Get the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default. * * @return the defaultProperty value */
public String defaultProperty() { return this.defaultProperty; }
Set the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default.
Params:
  • defaultProperty – the defaultProperty value to set
Returns:the ScaleCapacity object itself.
/** * Set the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default. * * @param defaultProperty the defaultProperty value to set * @return the ScaleCapacity object itself. */
public ScaleCapacity withDefaultProperty(String defaultProperty) { this.defaultProperty = defaultProperty; return this; } }