AutoscaleProfileInner Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. fluent. models. AutoscaleProfileInner
- com.
Implements
public final class AutoscaleProfileInner
implements JsonSerializable<AutoscaleProfileInner>
Autoscale profile.
Constructor Summary
Constructor | Description |
---|---|
AutoscaleProfileInner() |
Creates an instance of Autoscale |
Method Summary
Modifier and Type | Method and Description |
---|---|
Scale |
capacity()
Get the capacity property: the number of instances that can be used during this profile. |
Time |
fixedDate()
Get the fixed |
static
Autoscale |
fromJson(JsonReader jsonReader)
Reads an instance of Autoscale |
String |
name()
Get the name property: the name of the profile. |
Recurrence |
recurrence()
Get the recurrence property: the repeating times at which this profile begins. |
List<Scale |
rules()
Get the rules property: the collection of rules that provide the triggers and parameters for the scaling action. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Autoscale |
withCapacity(ScaleCapacity capacity)
Set the capacity property: the number of instances that can be used during this profile. |
Autoscale |
withFixedDate(TimeWindow fixedDate)
Set the fixed |
Autoscale |
withName(String name)
Set the name property: the name of the profile. |
Autoscale |
withRecurrence(Recurrence recurrence)
Set the recurrence property: the repeating times at which this profile begins. |
Autoscale |
withRules(List<ScaleRuleInner> rules)
Set the rules property: the collection of rules that provide the triggers and parameters for the scaling action. |
Methods inherited from java.lang.Object
Constructor Details
AutoscaleProfileInner
public AutoscaleProfileInner()
Creates an instance of AutoscaleProfileInner class.
Method Details
capacity
public ScaleCapacity capacity()
Get the capacity property: the number of instances that can be used during this profile.
Returns:
fixedDate
public TimeWindow fixedDate()
Get the fixedDate property: the specific date-time for the profile. This element is not used if the Recurrence element is used.
Returns:
fromJson
public static AutoscaleProfileInner fromJson(JsonReader jsonReader)
Reads an instance of AutoscaleProfileInner from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: the name of the profile.
Returns:
recurrence
public Recurrence recurrence()
Get the recurrence property: the repeating times at which this profile begins. This element is not used if the FixedDate element is used.
Returns:
rules
public List
Get the rules property: the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCapacity
public AutoscaleProfileInner withCapacity(ScaleCapacity capacity)
Set the capacity property: the number of instances that can be used during this profile.
Parameters:
Returns:
withFixedDate
public AutoscaleProfileInner withFixedDate(TimeWindow fixedDate)
Set the fixedDate property: the specific date-time for the profile. This element is not used if the Recurrence element is used.
Parameters:
Returns:
withName
public AutoscaleProfileInner withName(String name)
Set the name property: the name of the profile.
Parameters:
Returns:
withRecurrence
public AutoscaleProfileInner withRecurrence(Recurrence recurrence)
Set the recurrence property: the repeating times at which this profile begins. This element is not used if the FixedDate element is used.
Parameters:
Returns:
withRules
public AutoscaleProfileInner withRules(List
Set the rules property: the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified.
Parameters:
Returns:
Applies to
Azure SDK for Java