Class ClusterLibraryProperties

java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterLibraryProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterLibraryProperties>
Direct Known Subclasses:
MavenLibraryProperties, PyPiLibraryProperties

public class ClusterLibraryProperties extends Object implements com.azure.json.JsonSerializable<ClusterLibraryProperties>
Properties of a library in the cluster.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of ClusterLibraryProperties class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of ClusterLibraryProperties from the JsonReader.
    Get the message property: Error message of the library operation when a failure occurs.
    Get the remarks property: Remark of the latest library management operation.
    Get the status property: Status of the library.
    Get the timestamp property: Timestamp of the latest library management operation.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the type property: Type of the library.
    void
    Validates the instance.
    Set the remarks property: Remark of the latest library management operation.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • ClusterLibraryProperties

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

    • type

      public Type type()
      Get the type property: Type of the library.
      Returns:
      the type value.
    • remarks

      public String remarks()
      Get the remarks property: Remark of the latest library management operation.
      Returns:
      the remarks value.
    • withRemarks

      public ClusterLibraryProperties withRemarks(String remarks)
      Set the remarks property: Remark of the latest library management operation.
      Parameters:
      remarks - the remarks value to set.
      Returns:
      the ClusterLibraryProperties object itself.
    • timestamp

      public OffsetDateTime timestamp()
      Get the timestamp property: Timestamp of the latest library management operation.
      Returns:
      the timestamp value.
    • status

      public Status status()
      Get the status property: Status of the library.
      Returns:
      the status value.
    • message

      public String message()
      Get the message property: Error message of the library operation when a failure occurs.
      Returns:
      the message value.
    • 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<ClusterLibraryProperties>
      Throws:
      IOException
    • fromJson

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