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 Summary
ConstructorsConstructorDescriptionCreates an instance of RegenerateTestKeyRequestPayload class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RegenerateTestKeyRequestPayload from the JsonReader.keyType()Get the keyType property: Type of the test key.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withKeyType(TestKeyType keyType) Set the keyType property: Type of the test key.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RegenerateTestKeyRequestPayload
public RegenerateTestKeyRequestPayload()Creates an instance of RegenerateTestKeyRequestPayload class.
-
-
Method Details
-
keyType
Get the keyType property: Type of the test key.- Returns:
- the keyType value.
-
withKeyType
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
- Specified by:
toJsonin interfacecom.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.
-