Class WorkloadClassifierInner

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

public final class WorkloadClassifierInner extends com.azure.core.management.ProxyResource
Workload classifier operations for a data warehouse.
  • Constructor Details

    • WorkloadClassifierInner

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

    • 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.
    • 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.
    • 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.
    • memberName

      public String memberName()
      Get the memberName property: The workload classifier member name.
      Returns:
      the memberName value.
    • withMemberName

      public WorkloadClassifierInner withMemberName(String memberName)
      Set the memberName property: The workload classifier member name.
      Parameters:
      memberName - the memberName value to set.
      Returns:
      the WorkloadClassifierInner object itself.
    • label

      public String label()
      Get the label property: The workload classifier label.
      Returns:
      the label value.
    • withLabel

      public WorkloadClassifierInner withLabel(String label)
      Set the label property: The workload classifier label.
      Parameters:
      label - the label value to set.
      Returns:
      the WorkloadClassifierInner object itself.
    • context

      public String context()
      Get the context property: The workload classifier context.
      Returns:
      the context value.
    • withContext

      public WorkloadClassifierInner withContext(String context)
      Set the context property: The workload classifier context.
      Parameters:
      context - the context value to set.
      Returns:
      the WorkloadClassifierInner object itself.
    • startTime

      public String startTime()
      Get the startTime property: The workload classifier start time for classification.
      Returns:
      the startTime value.
    • withStartTime

      public WorkloadClassifierInner withStartTime(String startTime)
      Set the startTime property: The workload classifier start time for classification.
      Parameters:
      startTime - the startTime value to set.
      Returns:
      the WorkloadClassifierInner object itself.
    • endTime

      public String endTime()
      Get the endTime property: The workload classifier end time for classification.
      Returns:
      the endTime value.
    • withEndTime

      public WorkloadClassifierInner withEndTime(String endTime)
      Set the endTime property: The workload classifier end time for classification.
      Parameters:
      endTime - the endTime value to set.
      Returns:
      the WorkloadClassifierInner object itself.
    • importance

      public String importance()
      Get the importance property: The workload classifier importance.
      Returns:
      the importance value.
    • withImportance

      public WorkloadClassifierInner withImportance(String importance)
      Set the importance property: The workload classifier importance.
      Parameters:
      importance - the importance value to set.
      Returns:
      the WorkloadClassifierInner 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.ProxyResource
      Throws:
      IOException
    • fromJson

      public static WorkloadClassifierInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of WorkloadClassifierInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of WorkloadClassifierInner 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 WorkloadClassifierInner.