Class RegenerateEndpointKeysRequest
java.lang.Object
com.azure.resourcemanager.machinelearning.models.RegenerateEndpointKeysRequest
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RegenerateEndpointKeysRequest>
public final class RegenerateEndpointKeysRequest
extends Object
implements com.azure.json.JsonSerializable<RegenerateEndpointKeysRequest>
The RegenerateEndpointKeysRequest model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RegenerateEndpointKeysRequest class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RegenerateEndpointKeysRequest from the JsonReader.keyType()Get the keyType property: [Required] Specification for which type of key to generate.keyValue()Get the keyValue property: The value the key is set to.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withKeyType(KeyType keyType) Set the keyType property: [Required] Specification for which type of key to generate.withKeyValue(String keyValue) Set the keyValue property: The value the key is set to.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
-
RegenerateEndpointKeysRequest
public RegenerateEndpointKeysRequest()Creates an instance of RegenerateEndpointKeysRequest class.
-
-
Method Details
-
keyType
Get the keyType property: [Required] Specification for which type of key to generate. Primary or Secondary.- Returns:
- the keyType value.
-
withKeyType
Set the keyType property: [Required] Specification for which type of key to generate. Primary or Secondary.- Parameters:
keyType- the keyType value to set.- Returns:
- the RegenerateEndpointKeysRequest object itself.
-
keyValue
Get the keyValue property: The value the key is set to.- Returns:
- the keyValue value.
-
withKeyValue
Set the keyValue property: The value the key is set to.- Parameters:
keyValue- the keyValue value to set.- Returns:
- the RegenerateEndpointKeysRequest 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<RegenerateEndpointKeysRequest>- Throws:
IOException
-
fromJson
public static RegenerateEndpointKeysRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RegenerateEndpointKeysRequest from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RegenerateEndpointKeysRequest 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 RegenerateEndpointKeysRequest.
-