AutoscaleSettingResourceInner Class

public final class AutoscaleSettingResourceInner
extends Resource

The autoscale setting resource.

Constructor Summary

Constructor Description
AutoscaleSettingResourceInner()

Creates an instance of AutoscaleSettingResourceInner class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: the enabled flag.

String namePropertiesName()

Get the name property: the name of the autoscale setting.

List<AutoscaleNotification> notifications()

Get the notifications property: the collection of notifications.

PredictiveAutoscalePolicy predictiveAutoscalePolicy()

Get the predictiveAutoscalePolicy property: the predictive autoscale policy mode.

List<AutoscaleProfileInner> profiles()

Get the profiles property: the collection of automatic scaling profiles that specify different scaling parameters for different time periods.

SystemData systemData()

Get the systemData property: The system metadata related to the response.

String targetResourceLocation()

Get the targetResourceLocation property: the location of the resource that the autoscale setting should be added to.

String targetResourceUri()

Get the targetResourceUri property: the resource identifier of the resource that the autoscale setting should be added to.

void validate()

Validates the instance.

AutoscaleSettingResourceInner withEnabled(Boolean enabled)

Set the enabled property: the enabled flag.

AutoscaleSettingResourceInner withLocation(String location)
AutoscaleSettingResourceInner withNamePropertiesName(String name)

Set the name property: the name of the autoscale setting.

AutoscaleSettingResourceInner withNotifications(List<AutoscaleNotification> notifications)

Set the notifications property: the collection of notifications.

AutoscaleSettingResourceInner withPredictiveAutoscalePolicy(PredictiveAutoscalePolicy predictiveAutoscalePolicy)

Set the predictiveAutoscalePolicy property: the predictive autoscale policy mode.

AutoscaleSettingResourceInner withProfiles(List<AutoscaleProfileInner> profiles)

Set the profiles property: the collection of automatic scaling profiles that specify different scaling parameters for different time periods.

AutoscaleSettingResourceInner withTags(Map<String,String> tags)
AutoscaleSettingResourceInner withTargetResourceLocation(String targetResourceLocation)

Set the targetResourceLocation property: the location of the resource that the autoscale setting should be added to.

AutoscaleSettingResourceInner withTargetResourceUri(String targetResourceUri)

Set the targetResourceUri property: the resource identifier of the resource that the autoscale setting should be added to.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

AutoscaleSettingResourceInner

public AutoscaleSettingResourceInner()

Creates an instance of AutoscaleSettingResourceInner class.

Method Details

enabled

public Boolean enabled()

Get the enabled property: the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'false'.

Returns:

the enabled value.

namePropertiesName

public String namePropertiesName()

Get the name property: the name of the autoscale setting.

Returns:

the name value.

notifications

public List notifications()

Get the notifications property: the collection of notifications.

Returns:

the notifications value.

predictiveAutoscalePolicy

public PredictiveAutoscalePolicy predictiveAutoscalePolicy()

Get the predictiveAutoscalePolicy property: the predictive autoscale policy mode.

Returns:

the predictiveAutoscalePolicy value.

profiles

public List profiles()

Get the profiles property: the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified.

Returns:

the profiles value.

systemData

public SystemData systemData()

Get the systemData property: The system metadata related to the response.

Returns:

the systemData value.

targetResourceLocation

public String targetResourceLocation()

Get the targetResourceLocation property: the location of the resource that the autoscale setting should be added to.

Returns:

the targetResourceLocation value.

targetResourceUri

public String targetResourceUri()

Get the targetResourceUri property: the resource identifier of the resource that the autoscale setting should be added to.

Returns:

the targetResourceUri value.

validate

public void validate()

Validates the instance.

withEnabled

public AutoscaleSettingResourceInner withEnabled(Boolean enabled)

Set the enabled property: the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'false'.

Parameters:

enabled - the enabled value to set.

Returns:

the AutoscaleSettingResourceInner object itself.

withLocation

public AutoscaleSettingResourceInner withLocation(String location)

Overrides:

AutoscaleSettingResourceInner.withLocation(String location)

Parameters:

location

withNamePropertiesName

public AutoscaleSettingResourceInner withNamePropertiesName(String name)

Set the name property: the name of the autoscale setting.

Parameters:

name - the name value to set.

Returns:

the AutoscaleSettingResourceInner object itself.

withNotifications

public AutoscaleSettingResourceInner withNotifications(List notifications)

Set the notifications property: the collection of notifications.

Parameters:

notifications - the notifications value to set.

Returns:

the AutoscaleSettingResourceInner object itself.

withPredictiveAutoscalePolicy

public AutoscaleSettingResourceInner withPredictiveAutoscalePolicy(PredictiveAutoscalePolicy predictiveAutoscalePolicy)

Set the predictiveAutoscalePolicy property: the predictive autoscale policy mode.

Parameters:

predictiveAutoscalePolicy - the predictiveAutoscalePolicy value to set.

Returns:

the AutoscaleSettingResourceInner object itself.

withProfiles

public AutoscaleSettingResourceInner withProfiles(List profiles)

Set the profiles property: the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified.

Parameters:

profiles - the profiles value to set.

Returns:

the AutoscaleSettingResourceInner object itself.

withTags

public AutoscaleSettingResourceInner withTags(Map tags)

Overrides:

AutoscaleSettingResourceInner.withTags(Map<String,String> tags)

Parameters:

tags

withTargetResourceLocation

public AutoscaleSettingResourceInner withTargetResourceLocation(String targetResourceLocation)

Set the targetResourceLocation property: the location of the resource that the autoscale setting should be added to.

Parameters:

targetResourceLocation - the targetResourceLocation value to set.

Returns:

the AutoscaleSettingResourceInner object itself.

withTargetResourceUri

public AutoscaleSettingResourceInner withTargetResourceUri(String targetResourceUri)

Set the targetResourceUri property: the resource identifier of the resource that the autoscale setting should be added to.

Parameters:

targetResourceUri - the targetResourceUri value to set.

Returns:

the AutoscaleSettingResourceInner object itself.

Applies to