Class AgentRegistrationRegenerateKeyParameter

java.lang.Object
com.azure.resourcemanager.automation.models.AgentRegistrationRegenerateKeyParameter
All Implemented Interfaces:
com.azure.json.JsonSerializable<AgentRegistrationRegenerateKeyParameter>

public final class AgentRegistrationRegenerateKeyParameter extends Object implements com.azure.json.JsonSerializable<AgentRegistrationRegenerateKeyParameter>
The parameters supplied to the regenerate keys operation.
  • Constructor Details

    • AgentRegistrationRegenerateKeyParameter

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

    • keyName

      public AgentRegistrationKeyName keyName()
      Get the keyName property: Gets or sets the agent registration key name - primary or secondary.
      Returns:
      the keyName value.
    • withKeyName

      Set the keyName property: Gets or sets the agent registration key name - primary or secondary.
      Parameters:
      keyName - the keyName value to set.
      Returns:
      the AgentRegistrationRegenerateKeyParameter 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<AgentRegistrationRegenerateKeyParameter>
      Throws:
      IOException
    • fromJson

      public static AgentRegistrationRegenerateKeyParameter fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AgentRegistrationRegenerateKeyParameter from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AgentRegistrationRegenerateKeyParameter if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the AgentRegistrationRegenerateKeyParameter.