public class AutoscaleSettingResourcePatch extends Object
| Constructor and Description |
|---|
AutoscaleSettingResourcePatch() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
enabled()
Get the enabled property: the enabled flag.
|
String |
name()
Get the name 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.
|
Map<String,String> |
tags()
Get the tags property: Resource tags.
|
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.
|
AutoscaleSettingResourcePatch |
withEnabled(Boolean enabled)
Set the enabled property: the enabled flag.
|
AutoscaleSettingResourcePatch |
withName(String name)
Set the name property: the name of the autoscale setting.
|
AutoscaleSettingResourcePatch |
withNotifications(List<AutoscaleNotification> notifications)
Set the notifications property: the collection of notifications.
|
AutoscaleSettingResourcePatch |
withProfiles(List<AutoscaleProfileInner> profiles)
Set the profiles property: the collection of automatic scaling profiles that specify different scaling parameters
for different time periods.
|
AutoscaleSettingResourcePatch |
withTags(Map<String,String> tags)
Set the tags property: Resource tags.
|
AutoscaleSettingResourcePatch |
withTargetResourceUri(String targetResourceUri)
Set the targetResourceUri property: the resource identifier of the resource that the autoscale setting should be
added to.
|
public Map<String,String> tags()
public AutoscaleSettingResourcePatch withTags(Map<String,String> tags)
tags - the tags value to set.public List<AutoscaleProfileInner> profiles()
public AutoscaleSettingResourcePatch withProfiles(List<AutoscaleProfileInner> profiles)
profiles - the profiles value to set.public List<AutoscaleNotification> notifications()
public AutoscaleSettingResourcePatch withNotifications(List<AutoscaleNotification> notifications)
notifications - the notifications value to set.public Boolean enabled()
public AutoscaleSettingResourcePatch withEnabled(Boolean enabled)
enabled - the enabled value to set.public String name()
public AutoscaleSettingResourcePatch withName(String name)
name - the name value to set.public String targetResourceUri()
public AutoscaleSettingResourcePatch withTargetResourceUri(String targetResourceUri)
targetResourceUri - the targetResourceUri value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.