Class AutoscaleSettingResourcePatch
java.lang.Object
com.microsoft.azure.management.monitor.AutoscaleSettingResourcePatch
The autoscale setting object for patch operations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionenabled()
Get the enabled flag.name()
Get the name of the autoscale setting.Get the collection of notifications.List<com.microsoft.azure.management.monitor.implementation.AutoscaleProfileInner>
profiles()
Get the collection of automatic scaling profiles that specify different scaling parameters for different time periods.tags()
Get resource tags.Get the resource identifier of the resource that the autoscale setting should be added to.withEnabled
(Boolean enabled) Set the enabled flag.Set the name of the autoscale setting.withNotifications
(List<AutoscaleNotification> notifications) Set the collection of notifications.withProfiles
(List<com.microsoft.azure.management.monitor.implementation.AutoscaleProfileInner> profiles) Set the collection of automatic scaling profiles that specify different scaling parameters for different time periods.Set resource tags.withTargetResourceUri
(String targetResourceUri) Set the resource identifier of the resource that the autoscale setting should be added to.
-
Constructor Details
-
AutoscaleSettingResourcePatch
public AutoscaleSettingResourcePatch()
-
-
Method Details
-
tags
Get resource tags.- Returns:
- the tags value
-
withTags
Set resource tags.- Parameters:
tags
- the tags value to set- Returns:
- the AutoscaleSettingResourcePatch object itself.
-
profiles
Get 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
-
withProfiles
public AutoscaleSettingResourcePatch withProfiles(List<com.microsoft.azure.management.monitor.implementation.AutoscaleProfileInner> profiles) Set 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 AutoscaleSettingResourcePatch object itself.
-
notifications
Get the collection of notifications.- Returns:
- the notifications value
-
withNotifications
Set the collection of notifications.- Parameters:
notifications
- the notifications value to set- Returns:
- the AutoscaleSettingResourcePatch object itself.
-
enabled
Get the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'true'.- Returns:
- the enabled value
-
withEnabled
Set the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'true'.- Parameters:
enabled
- the enabled value to set- Returns:
- the AutoscaleSettingResourcePatch object itself.
-
name
Get the name of the autoscale setting.- Returns:
- the name value
-
withName
Set the name of the autoscale setting.- Parameters:
name
- the name value to set- Returns:
- the AutoscaleSettingResourcePatch object itself.
-
targetResourceUri
Get the resource identifier of the resource that the autoscale setting should be added to.- Returns:
- the targetResourceUri value
-
withTargetResourceUri
Set the resource identifier of the resource that the autoscale setting should be added to.- Parameters:
targetResourceUri
- the targetResourceUri value to set- Returns:
- the AutoscaleSettingResourcePatch object itself.
-