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.implementation;
import java.util.List;
import com.microsoft.azure.management.monitor.AutoscaleNotification;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.Resource;
The autoscale setting resource.
/**
* The autoscale setting resource.
*/
@JsonFlatten
public class AutoscaleSettingResourceInner extends Resource {
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 autoscaleSettingResourceName;
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 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 AutoscaleSettingResourceInner 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 AutoscaleSettingResourceInner object itself.
*/
public AutoscaleSettingResourceInner 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 AutoscaleSettingResourceInner object itself.
/**
* Set the collection of notifications.
*
* @param notifications the notifications value to set
* @return the AutoscaleSettingResourceInner object itself.
*/
public AutoscaleSettingResourceInner 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 AutoscaleSettingResourceInner 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 AutoscaleSettingResourceInner object itself.
*/
public AutoscaleSettingResourceInner withEnabled(Boolean enabled) {
this.enabled = enabled;
return this;
}
Get the name of the autoscale setting.
Returns: the autoscaleSettingResourceName value
/**
* Get the name of the autoscale setting.
*
* @return the autoscaleSettingResourceName value
*/
public String autoscaleSettingResourceName() {
return this.autoscaleSettingResourceName;
}
Set the name of the autoscale setting.
Params: - autoscaleSettingResourceName – the autoscaleSettingResourceName value to set
Returns: the AutoscaleSettingResourceInner object itself.
/**
* Set the name of the autoscale setting.
*
* @param autoscaleSettingResourceName the autoscaleSettingResourceName value to set
* @return the AutoscaleSettingResourceInner object itself.
*/
public AutoscaleSettingResourceInner withAutoscaleSettingResourceName(String autoscaleSettingResourceName) {
this.autoscaleSettingResourceName = autoscaleSettingResourceName;
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 AutoscaleSettingResourceInner 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 AutoscaleSettingResourceInner object itself.
*/
public AutoscaleSettingResourceInner withTargetResourceUri(String targetResourceUri) {
this.targetResourceUri = targetResourceUri;
return this;
}
}