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 Summary
ConstructorsConstructorDescriptionCreates an instance of AgentRegistrationRegenerateKeyParameter class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AgentRegistrationRegenerateKeyParameter from the JsonReader.keyName()
Get the keyName property: Gets or sets the agent registration key name - primary or secondary.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withKeyName
(AgentRegistrationKeyName keyName) Set the keyName property: Gets or sets the agent registration key name - primary or secondary.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AgentRegistrationRegenerateKeyParameter
public AgentRegistrationRegenerateKeyParameter()Creates an instance of AgentRegistrationRegenerateKeyParameter class.
-
-
Method Details
-
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
- Specified by:
toJson
in interfacecom.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.
-