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 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

      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.