Class GatewayDebugCredentialsContractInner

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

public final class GatewayDebugCredentialsContractInner extends Object implements com.azure.json.JsonSerializable<GatewayDebugCredentialsContractInner>
Gateway debug credentials.
  • Constructor Details

    • GatewayDebugCredentialsContractInner

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

    • token

      public String token()
      Get the token property: Gateway debug token.
      Returns:
      the token value.
    • withToken

      public GatewayDebugCredentialsContractInner withToken(String token)
      Set the token property: Gateway debug token.
      Parameters:
      token - the token value to set.
      Returns:
      the GatewayDebugCredentialsContractInner 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<GatewayDebugCredentialsContractInner>
      Throws:
      IOException
    • fromJson

      public static GatewayDebugCredentialsContractInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of GatewayDebugCredentialsContractInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of GatewayDebugCredentialsContractInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the GatewayDebugCredentialsContractInner.