AutoscaleProfileInner Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.fluent.models.AutoscaleProfileInner

public final class AutoscaleProfileInner

Autoscale profile.

Constructor Summary

Constructor Description
AutoscaleProfileInner()

Creates an instance of AutoscaleProfileInner class.

Method Summary

Modifier and Type Method and Description
ScaleCapacity capacity()

Get the capacity property: the number of instances that can be used during this profile.

TimeWindow fixedDate()

Get the fixedDate property: the specific date-time for the profile.

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<ScaleRuleInner> rules()

Get the rules property: the collection of rules that provide the triggers and parameters for the scaling action.

void validate()

Validates the instance.

AutoscaleProfileInner withCapacity(ScaleCapacity capacity)

Set the capacity property: the number of instances that can be used during this profile.

AutoscaleProfileInner withFixedDate(TimeWindow fixedDate)

Set the fixedDate property: the specific date-time for the profile.

AutoscaleProfileInner withName(String name)

Set the name property: the name of the profile.

AutoscaleProfileInner withRecurrence(Recurrence recurrence)

Set the recurrence property: the repeating times at which this profile begins.

AutoscaleProfileInner 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:

the capacity value.

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:

the fixedDate value.

name

public String name()

Get the name property: the name of the profile.

Returns:

the name value.

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:

the recurrence value.

rules

public List rules()

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:

the rules value.

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:

capacity - the capacity value to set.

Returns:

the AutoscaleProfileInner object itself.

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:

fixedDate - the fixedDate value to set.

Returns:

the AutoscaleProfileInner object itself.

withName

public AutoscaleProfileInner withName(String name)

Set the name property: the name of the profile.

Parameters:

name - the name value to set.

Returns:

the AutoscaleProfileInner object itself.

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:

recurrence - the recurrence value to set.

Returns:

the AutoscaleProfileInner object itself.

withRules

public AutoscaleProfileInner withRules(List rules)

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:

rules - the rules value to set.

Returns:

the AutoscaleProfileInner object itself.

Applies to