Class ServiceStatuses
java.lang.Object
com.azure.resourcemanager.hybridcompute.models.ServiceStatuses
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ServiceStatuses>
public final class ServiceStatuses
extends Object
implements com.azure.json.JsonSerializable<ServiceStatuses>
Reports the state and behavior of dependent services.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the extensionService property: The state of the extension service on the Arc-enabled machine.static ServiceStatusesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServiceStatuses from the JsonReader.Get the guestConfigurationService property: The state of the guest configuration service on the Arc-enabled machine.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withExtensionService(ServiceStatus extensionService) Set the extensionService property: The state of the extension service on the Arc-enabled machine.withGuestConfigurationService(ServiceStatus guestConfigurationService) Set the guestConfigurationService property: The state of the guest configuration service on the Arc-enabled machine.Methods inherited from class java.lang.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
-
ServiceStatuses
public ServiceStatuses()Creates an instance of ServiceStatuses class.
-
-
Method Details
-
extensionService
Get the extensionService property: The state of the extension service on the Arc-enabled machine.- Returns:
- the extensionService value.
-
withExtensionService
Set the extensionService property: The state of the extension service on the Arc-enabled machine.- Parameters:
extensionService- the extensionService value to set.- Returns:
- the ServiceStatuses object itself.
-
guestConfigurationService
Get the guestConfigurationService property: The state of the guest configuration service on the Arc-enabled machine.- Returns:
- the guestConfigurationService value.
-
withGuestConfigurationService
Set the guestConfigurationService property: The state of the guest configuration service on the Arc-enabled machine.- Parameters:
guestConfigurationService- the guestConfigurationService value to set.- Returns:
- the ServiceStatuses 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<ServiceStatuses>- Throws:
IOException
-
fromJson
Reads an instance of ServiceStatuses from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ServiceStatuses 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 ServiceStatuses.
-