Class MonitorProperties

java.lang.Object
com.azure.resourcemanager.elastic.models.MonitorProperties

public final class MonitorProperties extends Object
Properties specific to the monitor resource.
  • Constructor Details

    • MonitorProperties

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

    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: ProvisioningState

      Provisioning state of the monitor resource.

      Returns:
      the provisioningState value.
    • withProvisioningState

      public MonitorProperties withProvisioningState(ProvisioningState provisioningState)
      Set the provisioningState property: ProvisioningState

      Provisioning state of the monitor resource.

      Parameters:
      provisioningState - the provisioningState value to set.
      Returns:
      the MonitorProperties object itself.
    • monitoringStatus

      public MonitoringStatus monitoringStatus()
      Get the monitoringStatus property: Flag specifying if the resource monitoring is enabled or disabled.
      Returns:
      the monitoringStatus value.
    • withMonitoringStatus

      public MonitorProperties withMonitoringStatus(MonitoringStatus monitoringStatus)
      Set the monitoringStatus property: Flag specifying if the resource monitoring is enabled or disabled.
      Parameters:
      monitoringStatus - the monitoringStatus value to set.
      Returns:
      the MonitorProperties object itself.
    • elasticProperties

      public ElasticProperties elasticProperties()
      Get the elasticProperties property: Elastic cloud properties.
      Returns:
      the elasticProperties value.
    • withElasticProperties

      public MonitorProperties withElasticProperties(ElasticProperties elasticProperties)
      Set the elasticProperties property: Elastic cloud properties.
      Parameters:
      elasticProperties - the elasticProperties value to set.
      Returns:
      the MonitorProperties object itself.
    • userInfo

      public UserInfo userInfo()
      Get the userInfo property: User information.
      Returns:
      the userInfo value.
    • withUserInfo

      public MonitorProperties withUserInfo(UserInfo userInfo)
      Set the userInfo property: User information.
      Parameters:
      userInfo - the userInfo value to set.
      Returns:
      the MonitorProperties object itself.
    • version

      public String version()
      Get the version property: Version of elastic of the monitor resource.
      Returns:
      the version value.
    • withVersion

      public MonitorProperties withVersion(String version)
      Set the version property: Version of elastic of the monitor resource.
      Parameters:
      version - the version value to set.
      Returns:
      the MonitorProperties object itself.
    • liftrResourceCategory

      public LiftrResourceCategories liftrResourceCategory()
      Get the liftrResourceCategory property: The liftrResourceCategory property.
      Returns:
      the liftrResourceCategory value.
    • liftrResourcePreference

      public Integer liftrResourcePreference()
      Get the liftrResourcePreference property: The priority of the resource.
      Returns:
      the liftrResourcePreference value.
    • validate

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