Class AutoscaleSettingResourceInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.monitor.fluent.models.AutoscaleSettingResourceInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>

public final class AutoscaleSettingResourceInner extends com.azure.core.management.Resource
The autoscale setting resource.
  • Constructor Details

    • AutoscaleSettingResourceInner

      public AutoscaleSettingResourceInner()
      Creates an instance of AutoscaleSettingResourceInner class.
  • Method Details

    • systemData

      public com.azure.core.management.SystemData systemData()
      Get the systemData property: The system metadata related to the response.
      Returns:
      the systemData value.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class com.azure.core.management.ProxyResource
      Returns:
      the id value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class com.azure.core.management.ProxyResource
      Returns:
      the name value.
    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class com.azure.core.management.ProxyResource
      Returns:
      the type value.
    • withLocation

      public AutoscaleSettingResourceInner withLocation(String location)
      Overrides:
      withLocation in class com.azure.core.management.Resource
    • withTags

      Overrides:
      withTags in class com.azure.core.management.Resource
    • 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 'false'.
      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 'false'.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the AutoscaleSettingResourceInner object itself.
    • predictiveAutoscalePolicy

      public PredictiveAutoscalePolicy predictiveAutoscalePolicy()
      Get the predictiveAutoscalePolicy property: the predictive autoscale policy mode.
      Returns:
      the predictiveAutoscalePolicy value.
    • withPredictiveAutoscalePolicy

      public AutoscaleSettingResourceInner withPredictiveAutoscalePolicy(PredictiveAutoscalePolicy predictiveAutoscalePolicy)
      Set the predictiveAutoscalePolicy property: the predictive autoscale policy mode.
      Parameters:
      predictiveAutoscalePolicy - the predictiveAutoscalePolicy value to set.
      Returns:
      the AutoscaleSettingResourceInner object itself.
    • namePropertiesName

      public String namePropertiesName()
      Get the name property: the name of the autoscale setting.
      Returns:
      the name value.
    • withNamePropertiesName

      public AutoscaleSettingResourceInner withNamePropertiesName(String name)
      Set the name property: the name of the autoscale setting.
      Parameters:
      name - the name 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class com.azure.core.management.Resource
      Throws:
      IOException
    • fromJson

      public static AutoscaleSettingResourceInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AutoscaleSettingResourceInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AutoscaleSettingResourceInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the AutoscaleSettingResourceInner.