Class ServiceStatus
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ServiceStatus
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ServiceStatus>
public final class ServiceStatus
extends Object
implements com.azure.json.JsonSerializable<ServiceStatus>
Describes the status of a service of a HDInsight on AKS cluster.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceStatusfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServiceStatus from the JsonReader.kind()Get the kind property: Kind of the service.message()Get the message property: A message describing the error if any.ready()Get the ready property: Indicates if the service is ready / healthy.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the kind property: Kind of the service.withMessage(String message) Set the message property: A message describing the error if any.Set the ready property: Indicates if the service is ready / healthy.Methods 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
-
ServiceStatus
public ServiceStatus()Creates an instance of ServiceStatus class.
-
-
Method Details
-
kind
Get the kind property: Kind of the service. E.g. "Zookeeper".- Returns:
- the kind value.
-
withKind
Set the kind property: Kind of the service. E.g. "Zookeeper".- Parameters:
kind- the kind value to set.- Returns:
- the ServiceStatus object itself.
-
ready
Get the ready property: Indicates if the service is ready / healthy. Values can be "true", "false", "unknown" or anything else.- Returns:
- the ready value.
-
withReady
Set the ready property: Indicates if the service is ready / healthy. Values can be "true", "false", "unknown" or anything else.- Parameters:
ready- the ready value to set.- Returns:
- the ServiceStatus object itself.
-
message
Get the message property: A message describing the error if any.- Returns:
- the message value.
-
withMessage
Set the message property: A message describing the error if any.- Parameters:
message- the message value to set.- Returns:
- the ServiceStatus object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ServiceStatus>- Throws:
IOException
-
fromJson
Reads an instance of ServiceStatus from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ServiceStatus 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 ServiceStatus.
-