Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.monitor; import java.util.Map; import java.util.List; import com.microsoft.azure.management.monitor.implementation.AutoscaleProfileInner; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten;
The autoscale setting object for patch operations.
/** * The autoscale setting object for patch operations. */
@JsonFlatten public class AutoscaleSettingResourcePatch {
Resource tags.
/** * Resource tags. */
@JsonProperty(value = "tags") private Map<String, String> tags;
the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified.
/** * the collection of automatic scaling profiles that specify different * scaling parameters for different time periods. A maximum of 20 profiles * can be specified. */
@JsonProperty(value = "properties.profiles", required = true) private List<AutoscaleProfileInner> profiles;
the collection of notifications.
/** * the collection of notifications. */
@JsonProperty(value = "properties.notifications") private List<AutoscaleNotification> notifications;
the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'true'.
/** * the enabled flag. Specifies whether automatic scaling is enabled for the * resource. The default value is 'true'. */
@JsonProperty(value = "properties.enabled") private Boolean enabled;
the name of the autoscale setting.
/** * the name of the autoscale setting. */
@JsonProperty(value = "properties.name") private String name;
the resource identifier of the resource that the autoscale setting should be added to.
/** * the resource identifier of the resource that the autoscale setting * should be added to. */
@JsonProperty(value = "properties.targetResourceUri") private String targetResourceUri;
Get resource tags.
Returns:the tags value
/** * Get resource tags. * * @return the tags value */
public Map<String, String> tags() { return this.tags; }
Set resource tags.
Params:
  • tags – the tags value to set
Returns:the AutoscaleSettingResourcePatch object itself.
/** * Set resource tags. * * @param tags the tags value to set * @return the AutoscaleSettingResourcePatch object itself. */
public AutoscaleSettingResourcePatch withTags(Map<String, String> tags) { this.tags = tags; return this; }
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
/** * Get the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified. * * @return the profiles value */
public List<AutoscaleProfileInner> profiles() { return this.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.
Params:
  • profiles – the profiles value to set
Returns:the AutoscaleSettingResourcePatch object itself.
/** * Set the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified. * * @param profiles the profiles value to set * @return the AutoscaleSettingResourcePatch object itself. */
public AutoscaleSettingResourcePatch withProfiles(List<AutoscaleProfileInner> profiles) { this.profiles = profiles; return this; }
Get the collection of notifications.
Returns:the notifications value
/** * Get the collection of notifications. * * @return the notifications value */
public List<AutoscaleNotification> notifications() { return this.notifications; }
Set the collection of notifications.
Params:
  • notifications – the notifications value to set
Returns:the AutoscaleSettingResourcePatch object itself.
/** * Set the collection of notifications. * * @param notifications the notifications value to set * @return the AutoscaleSettingResourcePatch object itself. */
public AutoscaleSettingResourcePatch withNotifications(List<AutoscaleNotification> notifications) { this.notifications = notifications; return this; }
Get the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'true'.
Returns:the enabled value
/** * Get the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'true'. * * @return the enabled value */
public Boolean enabled() { return this.enabled; }
Set the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'true'.
Params:
  • enabled – the enabled value to set
Returns:the AutoscaleSettingResourcePatch object itself.
/** * Set the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'true'. * * @param enabled the enabled value to set * @return the AutoscaleSettingResourcePatch object itself. */
public AutoscaleSettingResourcePatch withEnabled(Boolean enabled) { this.enabled = enabled; return this; }
Get the name of the autoscale setting.
Returns:the name value
/** * Get the name of the autoscale setting. * * @return the name value */
public String name() { return this.name; }
Set the name of the autoscale setting.
Params:
  • name – the name value to set
Returns:the AutoscaleSettingResourcePatch object itself.
/** * Set the name of the autoscale setting. * * @param name the name value to set * @return the AutoscaleSettingResourcePatch object itself. */
public AutoscaleSettingResourcePatch withName(String name) { this.name = name; return this; }
Get the resource identifier of the resource that the autoscale setting should be added to.
Returns:the targetResourceUri value
/** * Get the resource identifier of the resource that the autoscale setting should be added to. * * @return the targetResourceUri value */
public String targetResourceUri() { return this.targetResourceUri; }
Set the resource identifier of the resource that the autoscale setting should be added to.
Params:
  • targetResourceUri – the targetResourceUri value to set
Returns:the AutoscaleSettingResourcePatch object itself.
/** * Set the resource identifier of the resource that the autoscale setting should be added to. * * @param targetResourceUri the targetResourceUri value to set * @return the AutoscaleSettingResourcePatch object itself. */
public AutoscaleSettingResourcePatch withTargetResourceUri(String targetResourceUri) { this.targetResourceUri = targetResourceUri; return this; } }