Class GatewayKeysContractInner

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

public final class GatewayKeysContractInner extends Object implements com.azure.json.JsonSerializable<GatewayKeysContractInner>
Gateway authentication keys.
  • Constructor Details

    • GatewayKeysContractInner

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

    • primary

      public String primary()
      Get the primary property: Primary gateway key.
      Returns:
      the primary value.
    • withPrimary

      public GatewayKeysContractInner withPrimary(String primary)
      Set the primary property: Primary gateway key.
      Parameters:
      primary - the primary value to set.
      Returns:
      the GatewayKeysContractInner object itself.
    • secondary

      public String secondary()
      Get the secondary property: Secondary gateway key.
      Returns:
      the secondary value.
    • withSecondary

      public GatewayKeysContractInner withSecondary(String secondary)
      Set the secondary property: Secondary gateway key.
      Parameters:
      secondary - the secondary value to set.
      Returns:
      the GatewayKeysContractInner 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<GatewayKeysContractInner>
      Throws:
      IOException
    • fromJson

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