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.implementation; import com.microsoft.azure.management.monitor.ScaleCapacity; import java.util.List; import com.microsoft.azure.management.monitor.TimeWindow; import com.microsoft.azure.management.monitor.Recurrence; import com.fasterxml.jackson.annotation.JsonProperty;
Autoscale profile.
/** * Autoscale profile. */
public class AutoscaleProfileInner {
the name of the profile.
/** * the name of the profile. */
@JsonProperty(value = "name", required = true) private String name;
the number of instances that can be used during this profile.
/** * the number of instances that can be used during this profile. */
@JsonProperty(value = "capacity", required = true) private ScaleCapacity capacity;
the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified.
/** * the collection of rules that provide the triggers and parameters for the * scaling action. A maximum of 10 rules can be specified. */
@JsonProperty(value = "rules", required = true) private List<ScaleRuleInner> rules;
the specific date-time for the profile. This element is not used if the Recurrence element is used.
/** * the specific date-time for the profile. This element is not used if the * Recurrence element is used. */
@JsonProperty(value = "fixedDate") private TimeWindow fixedDate;
the repeating times at which this profile begins. This element is not used if the FixedDate element is used.
/** * the repeating times at which this profile begins. This element is not * used if the FixedDate element is used. */
@JsonProperty(value = "recurrence") private Recurrence recurrence;
Get the name of the profile.
Returns:the name value
/** * Get the name of the profile. * * @return the name value */
public String name() { return this.name; }
Set the name of the profile.
Params:
  • name – the name value to set
Returns:the AutoscaleProfileInner object itself.
/** * Set the name of the profile. * * @param name the name value to set * @return the AutoscaleProfileInner object itself. */
public AutoscaleProfileInner withName(String name) { this.name = name; return this; }
Get the number of instances that can be used during this profile.
Returns:the capacity value
/** * Get the number of instances that can be used during this profile. * * @return the capacity value */
public ScaleCapacity capacity() { return this.capacity; }
Set the number of instances that can be used during this profile.
Params:
  • capacity – the capacity value to set
Returns:the AutoscaleProfileInner object itself.
/** * Set the number of instances that can be used during this profile. * * @param capacity the capacity value to set * @return the AutoscaleProfileInner object itself. */
public AutoscaleProfileInner withCapacity(ScaleCapacity capacity) { this.capacity = capacity; return this; }
Get the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified.
Returns:the rules value
/** * Get the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified. * * @return the rules value */
public List<ScaleRuleInner> rules() { return this.rules; }
Set the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified.
Params:
  • rules – the rules value to set
Returns:the AutoscaleProfileInner object itself.
/** * Set the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified. * * @param rules the rules value to set * @return the AutoscaleProfileInner object itself. */
public AutoscaleProfileInner withRules(List<ScaleRuleInner> rules) { this.rules = rules; return this; }
Get the specific date-time for the profile. This element is not used if the Recurrence element is used.
Returns:the fixedDate value
/** * Get the specific date-time for the profile. This element is not used if the Recurrence element is used. * * @return the fixedDate value */
public TimeWindow fixedDate() { return this.fixedDate; }
Set the specific date-time for the profile. This element is not used if the Recurrence element is used.
Params:
  • fixedDate – the fixedDate value to set
Returns:the AutoscaleProfileInner object itself.
/** * Set the specific date-time for the profile. This element is not used if the Recurrence element is used. * * @param fixedDate the fixedDate value to set * @return the AutoscaleProfileInner object itself. */
public AutoscaleProfileInner withFixedDate(TimeWindow fixedDate) { this.fixedDate = fixedDate; return this; }
Get the repeating times at which this profile begins. This element is not used if the FixedDate element is used.
Returns:the recurrence value
/** * Get the repeating times at which this profile begins. This element is not used if the FixedDate element is used. * * @return the recurrence value */
public Recurrence recurrence() { return this.recurrence; }
Set the repeating times at which this profile begins. This element is not used if the FixedDate element is used.
Params:
  • recurrence – the recurrence value to set
Returns:the AutoscaleProfileInner object itself.
/** * Set the repeating times at which this profile begins. This element is not used if the FixedDate element is used. * * @param recurrence the recurrence value to set * @return the AutoscaleProfileInner object itself. */
public AutoscaleProfileInner withRecurrence(Recurrence recurrence) { this.recurrence = recurrence; return this; } }