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 Details

    • RegenerateEndpointKeysRequest

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

    • keyType

      public KeyType keyType()
      Get the keyType property: [Required] Specification for which type of key to generate. Primary or Secondary.
      Returns:
      the keyType value.
    • withKeyType

      public RegenerateEndpointKeysRequest withKeyType(KeyType keyType)
      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

      public String keyValue()
      Get the keyValue property: The value the key is set to.
      Returns:
      the keyValue value.
    • withKeyValue

      public RegenerateEndpointKeysRequest withKeyValue(String keyValue)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.