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 Details

    • HybridRunbookWorkerGroupProperties

      public HybridRunbookWorkerGroupProperties()
      Creates an instance of HybridRunbookWorkerGroupProperties class.
  • Method Details

    • groupType

      public GroupTypeEnum groupType()
      Get the groupType property: Type of the HybridWorkerGroup.
      Returns:
      the groupType value.
    • withGroupType

      public HybridRunbookWorkerGroupProperties withGroupType(GroupTypeEnum groupType)
      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

      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

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