Class GatewayListDebugCredentialsContract

java.lang.Object
com.azure.resourcemanager.apimanagement.models.GatewayListDebugCredentialsContract
All Implemented Interfaces:
com.azure.json.JsonSerializable<GatewayListDebugCredentialsContract>

public final class GatewayListDebugCredentialsContract extends Object implements com.azure.json.JsonSerializable<GatewayListDebugCredentialsContract>
List debug credentials properties.
  • Constructor Details

    • GatewayListDebugCredentialsContract

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

    • credentialsExpireAfter

      public Duration credentialsExpireAfter()
      Get the credentialsExpireAfter property: Credentials expiration in ISO8601 format. Maximum duration of the credentials is PT1H. When property is not specified, them value PT1H is used.
      Returns:
      the credentialsExpireAfter value.
    • withCredentialsExpireAfter

      public GatewayListDebugCredentialsContract withCredentialsExpireAfter(Duration credentialsExpireAfter)
      Set the credentialsExpireAfter property: Credentials expiration in ISO8601 format. Maximum duration of the credentials is PT1H. When property is not specified, them value PT1H is used.
      Parameters:
      credentialsExpireAfter - the credentialsExpireAfter value to set.
      Returns:
      the GatewayListDebugCredentialsContract object itself.
    • purposes

      Get the purposes property: Purposes of debug credential.
      Returns:
      the purposes value.
    • withPurposes

      Set the purposes property: Purposes of debug credential.
      Parameters:
      purposes - the purposes value to set.
      Returns:
      the GatewayListDebugCredentialsContract object itself.
    • apiId

      public String apiId()
      Get the apiId property: Full resource Id of an API.
      Returns:
      the apiId value.
    • withApiId

      public GatewayListDebugCredentialsContract withApiId(String apiId)
      Set the apiId property: Full resource Id of an API.
      Parameters:
      apiId - the apiId value to set.
      Returns:
      the GatewayListDebugCredentialsContract 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<GatewayListDebugCredentialsContract>
      Throws:
      IOException
    • fromJson

      public static GatewayListDebugCredentialsContract fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of GatewayListDebugCredentialsContract from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of GatewayListDebugCredentialsContract 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 GatewayListDebugCredentialsContract.