java.lang.Object
com.azure.resourcemanager.applicationinsights.models.ApiKeyRequest

public final class ApiKeyRequest extends Object
An Application Insights component API Key creation request definition.
  • Constructor Details

    • ApiKeyRequest

      public ApiKeyRequest()
  • Method Details

    • name

      public String name()
      Get the name property: The name of the API Key.
      Returns:
      the name value.
    • withName

      public ApiKeyRequest withName(String name)
      Set the name property: The name of the API Key.
      Parameters:
      name - the name value to set.
      Returns:
      the ApiKeyRequest object itself.
    • linkedReadProperties

      public List<String> linkedReadProperties()
      Get the linkedReadProperties property: The read access rights of this API Key.
      Returns:
      the linkedReadProperties value.
    • withLinkedReadProperties

      public ApiKeyRequest withLinkedReadProperties(List<String> linkedReadProperties)
      Set the linkedReadProperties property: The read access rights of this API Key.
      Parameters:
      linkedReadProperties - the linkedReadProperties value to set.
      Returns:
      the ApiKeyRequest object itself.
    • linkedWriteProperties

      public List<String> linkedWriteProperties()
      Get the linkedWriteProperties property: The write access rights of this API Key.
      Returns:
      the linkedWriteProperties value.
    • withLinkedWriteProperties

      public ApiKeyRequest withLinkedWriteProperties(List<String> linkedWriteProperties)
      Set the linkedWriteProperties property: The write access rights of this API Key.
      Parameters:
      linkedWriteProperties - the linkedWriteProperties value to set.
      Returns:
      the ApiKeyRequest object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.