Class PyPiLibraryProperties
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterLibraryProperties
com.azure.resourcemanager.hdinsight.containers.models.PyPiLibraryProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterLibraryProperties>
Properties of a PyPi library in the cluster.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PyPiLibraryPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PyPiLibraryProperties from the JsonReader.message()Get the message property: Error message of the library operation when a failure occurs.name()Get the name property: Name of the PyPi 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 PyPi package.Set the name property: Name of the PyPi 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 PyPi 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
-
PyPiLibraryProperties
public PyPiLibraryProperties()Creates an instance of PyPiLibraryProperties class.
-
-
Method Details
-
type
Get the type property: Type of the library.- Overrides:
typein classClusterLibraryProperties- Returns:
- the type value.
-
name
-
withName
Set the name property: Name of the PyPi package.- Parameters:
name- the name value to set.- Returns:
- the PyPiLibraryProperties object itself.
-
version
Get the version property: Version of the PyPi package.- Returns:
- the version value.
-
withVersion
Set the version property: Version of the PyPi package.- Parameters:
version- the version value to set.- Returns:
- the PyPiLibraryProperties 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 PyPiLibraryProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PyPiLibraryProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PyPiLibraryProperties 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 PyPiLibraryProperties.
-