Class AutoscaleSettingResourceInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.monitor.fluent.models.AutoscaleSettingResourceInner
-
public class AutoscaleSettingResourceInner extends com.azure.core.management.ResourceThe autoscale setting resource.
-
-
Constructor Summary
Constructors Constructor Description AutoscaleSettingResourceInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Booleanenabled()Get the enabled property: the enabled flag.StringnamePropertiesName()Get the namePropertiesName property: the name of the autoscale setting.List<AutoscaleNotification>notifications()Get the notifications property: the collection of notifications.List<AutoscaleProfileInner>profiles()Get the profiles property: the collection of automatic scaling profiles that specify different scaling parameters for different time periods.StringtargetResourceLocation()Get the targetResourceLocation property: the location of the resource that the autoscale setting should be added to.StringtargetResourceUri()Get the targetResourceUri property: the resource identifier of the resource that the autoscale setting should be added to.voidvalidate()Validates the instance.AutoscaleSettingResourceInnerwithEnabled(Boolean enabled)Set the enabled property: the enabled flag.AutoscaleSettingResourceInnerwithLocation(String location)AutoscaleSettingResourceInnerwithNamePropertiesName(String namePropertiesName)Set the namePropertiesName property: the name of the autoscale setting.AutoscaleSettingResourceInnerwithNotifications(List<AutoscaleNotification> notifications)Set the notifications property: the collection of notifications.AutoscaleSettingResourceInnerwithProfiles(List<AutoscaleProfileInner> profiles)Set the profiles property: the collection of automatic scaling profiles that specify different scaling parameters for different time periods.AutoscaleSettingResourceInnerwithTags(Map<String,String> tags)AutoscaleSettingResourceInnerwithTargetResourceLocation(String targetResourceLocation)Set the targetResourceLocation property: the location of the resource that the autoscale setting should be added to.AutoscaleSettingResourceInnerwithTargetResourceUri(String targetResourceUri)Set the targetResourceUri property: the resource identifier of the resource that the autoscale setting should be added to.
-
-
-
Method Detail
-
profiles
public List<AutoscaleProfileInner> 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.
-
withProfiles
public AutoscaleSettingResourceInner withProfiles(List<AutoscaleProfileInner> 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.
-
notifications
public List<AutoscaleNotification> notifications()
Get the notifications property: the collection of notifications.- Returns:
- the notifications value.
-
withNotifications
public AutoscaleSettingResourceInner withNotifications(List<AutoscaleNotification> notifications)
Set the notifications property: the collection of notifications.- Parameters:
notifications- the notifications value to set.- Returns:
- the AutoscaleSettingResourceInner object itself.
-
enabled
public Boolean enabled()
Get the enabled property: the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'true'.- Returns:
- the enabled value.
-
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 'true'.- Parameters:
enabled- the enabled value to set.- Returns:
- the AutoscaleSettingResourceInner object itself.
-
namePropertiesName
public String namePropertiesName()
Get the namePropertiesName property: the name of the autoscale setting.- Returns:
- the namePropertiesName value.
-
withNamePropertiesName
public AutoscaleSettingResourceInner withNamePropertiesName(String namePropertiesName)
Set the namePropertiesName property: the name of the autoscale setting.- Parameters:
namePropertiesName- the namePropertiesName value to set.- Returns:
- the AutoscaleSettingResourceInner object itself.
-
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.
-
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.
-
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.
-
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.
-
withLocation
public AutoscaleSettingResourceInner withLocation(String location)
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
public AutoscaleSettingResourceInner withTags(Map<String,String> tags)
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-