Class RegenerateTestKeyRequestPayload

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

public final class RegenerateTestKeyRequestPayload extends Object implements com.azure.json.JsonSerializable<RegenerateTestKeyRequestPayload>
Regenerate test key request payload.
  • Constructor Details

    • RegenerateTestKeyRequestPayload

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

    • keyType

      public TestKeyType keyType()
      Get the keyType property: Type of the test key.
      Returns:
      the keyType value.
    • withKeyType

      public RegenerateTestKeyRequestPayload withKeyType(TestKeyType keyType)
      Set the keyType property: Type of the test key.
      Parameters:
      keyType - the keyType value to set.
      Returns:
      the RegenerateTestKeyRequestPayload 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<RegenerateTestKeyRequestPayload>
      Throws:
      IOException
    • fromJson

      public static RegenerateTestKeyRequestPayload fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of RegenerateTestKeyRequestPayload from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of RegenerateTestKeyRequestPayload 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 RegenerateTestKeyRequestPayload.