Class HybridRunbookWorkerGroupProperties
java.lang.Object
com.azure.resourcemanager.automation.fluent.models.HybridRunbookWorkerGroupProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<HybridRunbookWorkerGroupProperties>
public final class HybridRunbookWorkerGroupProperties
extends Object
implements com.azure.json.JsonSerializable<HybridRunbookWorkerGroupProperties>
Definition of hybrid runbook worker group property.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of HybridRunbookWorkerGroupProperties 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 HybridRunbookWorkerGroupProperties from the JsonReader.Get the groupType property: Type of the HybridWorkerGroup.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.withGroupType
(GroupTypeEnum groupType) Set the groupType property: Type of the HybridWorkerGroup.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
-
HybridRunbookWorkerGroupProperties
public HybridRunbookWorkerGroupProperties()Creates an instance of HybridRunbookWorkerGroupProperties class.
-
-
Method Details
-
groupType
Get the groupType property: Type of the HybridWorkerGroup.- Returns:
- the groupType value.
-
withGroupType
Set the groupType property: Type of the HybridWorkerGroup.- Parameters:
groupType
- the groupType value to set.- Returns:
- the HybridRunbookWorkerGroupProperties object itself.
-
credential
Get the credential property: Sets the credential of a worker group.- Returns:
- the credential value.
-
withCredential
public HybridRunbookWorkerGroupProperties withCredential(RunAsCredentialAssociationProperty credential) Set the credential property: Sets the credential of a worker group.- Parameters:
credential
- the credential value to set.- Returns:
- the HybridRunbookWorkerGroupProperties 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<HybridRunbookWorkerGroupProperties>
- Throws:
IOException
-
fromJson
public static HybridRunbookWorkerGroupProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of HybridRunbookWorkerGroupProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of HybridRunbookWorkerGroupProperties 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 HybridRunbookWorkerGroupProperties.
-