AutoscaleSettingResourceInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. monitor. fluent. models. AutoscaleSettingResourceInner
- com.
- com.
- com.
public final class AutoscaleSettingResourceInner
extends Resource
The autoscale setting resource.
Constructor Summary
Constructor | Description |
---|---|
AutoscaleSettingResourceInner() |
Creates an instance of Autoscale |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
enabled()
Get the enabled property: the enabled flag. |
static
Autoscale |
fromJson(JsonReader jsonReader)
Reads an instance of Autoscale |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
name()
Get the name property: The name of the resource. |
String |
namePropertiesName()
Get the name property: the name of the autoscale setting. |
List<Autoscale |
notifications()
Get the notifications property: the collection of notifications. |
Predictive |
predictiveAutoscalePolicy()
Get the predictive |
List<Autoscale |
profiles()
Get the profiles property: the collection of automatic scaling profiles that specify different scaling parameters for different time periods. |
System |
systemData()
Get the system |
String |
targetResourceLocation()
Get the target |
String |
targetResourceUri()
Get the target |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Autoscale |
withEnabled(Boolean enabled)
Set the enabled property: the enabled flag. |
Autoscale |
withLocation(String location) |
Autoscale |
withNamePropertiesName(String name)
Set the name property: the name of the autoscale setting. |
Autoscale |
withNotifications(List<AutoscaleNotification> notifications)
Set the notifications property: the collection of notifications. |
Autoscale |
withPredictiveAutoscalePolicy(PredictiveAutoscalePolicy predictiveAutoscalePolicy)
Set the predictive |
Autoscale |
withProfiles(List<AutoscaleProfileInner> profiles)
Set the profiles property: the collection of automatic scaling profiles that specify different scaling parameters for different time periods. |
Autoscale |
withTags(Map<String,String> tags) |
Autoscale |
withTargetResourceLocation(String targetResourceLocation)
Set the target |
Autoscale |
withTargetResourceUri(String targetResourceUri)
Set the target |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
AutoscaleSettingResourceInner
public AutoscaleSettingResourceInner()
Creates an instance of AutoscaleSettingResourceInner class.
Method Details
enabled
public Boolean enabled()
Get the enabled property: the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'false'.
Returns:
fromJson
public static AutoscaleSettingResourceInner fromJson(JsonReader jsonReader)
Reads an instance of AutoscaleSettingResourceInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
AutoscaleSettingResourceInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
AutoscaleSettingResourceInner.name()Returns:
namePropertiesName
public String namePropertiesName()
Get the name property: the name of the autoscale setting.
Returns:
notifications
public List
Get the notifications property: the collection of notifications.
Returns:
predictiveAutoscalePolicy
public PredictiveAutoscalePolicy predictiveAutoscalePolicy()
Get the predictiveAutoscalePolicy property: the predictive autoscale policy mode.
Returns:
profiles
public List
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:
systemData
public SystemData systemData()
Get the systemData property: The system metadata related to the response.
Returns:
targetResourceLocation
public String targetResourceLocation()
Get the targetResourceLocation property: the location of the resource that the autoscale setting should be added to.
Returns:
targetResourceUri
public String targetResourceUri()
Get the targetResourceUri property: the resource identifier of the resource that the autoscale setting should be added to.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
AutoscaleSettingResourceInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
AutoscaleSettingResourceInner.type()Returns:
validate
public void validate()
Validates the instance.
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 'false'.
Parameters:
Returns:
withLocation
public AutoscaleSettingResourceInner withLocation(String location)
Overrides:
AutoscaleSettingResourceInner.withLocation(String location)Parameters:
withNamePropertiesName
public AutoscaleSettingResourceInner withNamePropertiesName(String name)
Set the name property: the name of the autoscale setting.
Parameters:
Returns:
withNotifications
public AutoscaleSettingResourceInner withNotifications(List
Set the notifications property: the collection of notifications.
Parameters:
Returns:
withPredictiveAutoscalePolicy
public AutoscaleSettingResourceInner withPredictiveAutoscalePolicy(PredictiveAutoscalePolicy predictiveAutoscalePolicy)
Set the predictiveAutoscalePolicy property: the predictive autoscale policy mode.
Parameters:
Returns:
withProfiles
public AutoscaleSettingResourceInner withProfiles(List
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:
Returns:
withTags
public AutoscaleSettingResourceInner withTags(Map
Overrides:
AutoscaleSettingResourceInner.withTags(Map<String,String> tags)Parameters:
withTargetResourceLocation
public AutoscaleSettingResourceInner withTargetResourceLocation(String targetResourceLocation)
Set the targetResourceLocation property: the location of the resource that the autoscale setting should be added to.
Parameters:
Returns:
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:
Returns:
Applies to
Azure SDK for Java