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>
Properties of a Maven library in the cluster.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MavenLibraryProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic MavenLibraryPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MavenLibraryProperties from the JsonReader.groupId()Get the groupId property: GroupId of the Maven package.message()Get the message property: Error message of the library operation when a failure occurs.name()Get the name property: ArtifactId of the Maven package.status()Get the status property: Status of the library.Get the timestamp property: Timestamp of the latest library management operation.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Type of the library.voidvalidate()Validates the instance.version()Get the version property: Version of the Maven package.withGroupId(String groupId) Set the groupId property: GroupId of the Maven package.Set the name property: ArtifactId of the Maven package.withRemarks(String remarks) Set the remarks property: Remark of the latest library management operation.withVersion(String version) Set the version property: Version of the Maven package.Methods inherited from class ClusterLibraryProperties
remarksMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MavenLibraryProperties
public MavenLibraryProperties()Creates an instance of MavenLibraryProperties class.
-
-
Method Details
-
type
Get the type property: Type of the library.- Overrides:
typein classClusterLibraryProperties- Returns:
- the type value.
-
groupId
Get the groupId property: GroupId of the Maven package.- Returns:
- the groupId value.
-
withGroupId
Set the groupId property: GroupId of the Maven package.- Parameters:
groupId- the groupId value to set.- Returns:
- the MavenLibraryProperties object itself.
-
name
Get the name property: ArtifactId of the Maven package.- Returns:
- the name value.
-
withName
Set the name property: ArtifactId of the Maven package.- Parameters:
name- the name value to set.- Returns:
- the MavenLibraryProperties object itself.
-
version
Get the version property: Version of the Maven package.- Returns:
- the version value.
-
withVersion
Set the version property: Version of the Maven package.- Parameters:
version- the version value to set.- Returns:
- the MavenLibraryProperties object itself.
-
timestamp
Get the timestamp property: Timestamp of the latest library management operation.- Overrides:
timestampin classClusterLibraryProperties- Returns:
- the timestamp value.
-
status
Get the status property: Status of the library.- Overrides:
statusin classClusterLibraryProperties- Returns:
- the status value.
-
message
Get the message property: Error message of the library operation when a failure occurs.- Overrides:
messagein classClusterLibraryProperties- Returns:
- the message value.
-
withRemarks
Set the remarks property: Remark of the latest library management operation.- Overrides:
withRemarksin classClusterLibraryProperties- Parameters:
remarks- the remarks value to set.- Returns:
- the ClusterLibraryProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classClusterLibraryProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ClusterLibraryProperties>- Overrides:
toJsonin classClusterLibraryProperties- 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.
-