Class MavenLibraryProperties

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

public final class MavenLibraryProperties extends ClusterLibraryProperties
Properties of a Maven library in the cluster.
  • Constructor Details

    • MavenLibraryProperties

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

    • type

      public Type type()
      Get the type property: Type of the library.
      Overrides:
      type in class ClusterLibraryProperties
      Returns:
      the type value.
    • groupId

      public String groupId()
      Get the groupId property: GroupId of the Maven package.
      Returns:
      the groupId value.
    • withGroupId

      public MavenLibraryProperties withGroupId(String groupId)
      Set the groupId property: GroupId of the Maven package.
      Parameters:
      groupId - the groupId value to set.
      Returns:
      the MavenLibraryProperties object itself.
    • name

      public String name()
      Get the name property: ArtifactId of the Maven package.
      Returns:
      the name value.
    • withName

      public MavenLibraryProperties withName(String name)
      Set the name property: ArtifactId of the Maven package.
      Parameters:
      name - the name value to set.
      Returns:
      the MavenLibraryProperties object itself.
    • version

      public String version()
      Get the version property: Version of the Maven package.
      Returns:
      the version value.
    • withVersion

      public MavenLibraryProperties withVersion(String version)
      Set the version property: Version of the Maven package.
      Parameters:
      version - the version value to set.
      Returns:
      the MavenLibraryProperties object itself.
    • timestamp

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

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

      public String message()
      Get the message property: Error message of the library operation when a failure occurs.
      Overrides:
      message in class ClusterLibraryProperties
      Returns:
      the message value.
    • withRemarks

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

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ClusterLibraryProperties
      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>
      Overrides:
      toJson in class ClusterLibraryProperties
      Throws:
      IOException
    • fromJson

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