Class HybridRunbookWorkerGroupCreateOrUpdateProperties
java.lang.Object
com.azure.resourcemanager.automation.fluent.models.HybridRunbookWorkerGroupCreateOrUpdateProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<HybridRunbookWorkerGroupCreateOrUpdateProperties>
public final class HybridRunbookWorkerGroupCreateOrUpdateProperties
extends Object
implements com.azure.json.JsonSerializable<HybridRunbookWorkerGroupCreateOrUpdateProperties>
The hybrid runbook worker group properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of HybridRunbookWorkerGroupCreateOrUpdateProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the credential property: Sets the credential of a worker group.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of HybridRunbookWorkerGroupCreateOrUpdateProperties from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withCredential
(RunAsCredentialAssociationProperty credential) Set the credential property: Sets the credential of a worker group.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
HybridRunbookWorkerGroupCreateOrUpdateProperties
public HybridRunbookWorkerGroupCreateOrUpdateProperties()Creates an instance of HybridRunbookWorkerGroupCreateOrUpdateProperties class.
-
-
Method Details
-
credential
Get the credential property: Sets the credential of a worker group.- Returns:
- the credential value.
-
withCredential
public HybridRunbookWorkerGroupCreateOrUpdateProperties withCredential(RunAsCredentialAssociationProperty credential) Set the credential property: Sets the credential of a worker group.- Parameters:
credential
- the credential value to set.- Returns:
- the HybridRunbookWorkerGroupCreateOrUpdateProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<HybridRunbookWorkerGroupCreateOrUpdateProperties>
- Throws:
IOException
-
fromJson
public static HybridRunbookWorkerGroupCreateOrUpdateProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of HybridRunbookWorkerGroupCreateOrUpdateProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of HybridRunbookWorkerGroupCreateOrUpdateProperties 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 HybridRunbookWorkerGroupCreateOrUpdateProperties.
-