Class SubscriptionKeysContractInner

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

public final class SubscriptionKeysContractInner extends Object implements com.azure.json.JsonSerializable<SubscriptionKeysContractInner>
Subscription keys.
  • Constructor Details

    • SubscriptionKeysContractInner

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

    • primaryKey

      public String primaryKey()
      Get the primaryKey property: Subscription primary key.
      Returns:
      the primaryKey value.
    • withPrimaryKey

      public SubscriptionKeysContractInner withPrimaryKey(String primaryKey)
      Set the primaryKey property: Subscription primary key.
      Parameters:
      primaryKey - the primaryKey value to set.
      Returns:
      the SubscriptionKeysContractInner object itself.
    • secondaryKey

      public String secondaryKey()
      Get the secondaryKey property: Subscription secondary key.
      Returns:
      the secondaryKey value.
    • withSecondaryKey

      public SubscriptionKeysContractInner withSecondaryKey(String secondaryKey)
      Set the secondaryKey property: Subscription secondary key.
      Parameters:
      secondaryKey - the secondaryKey value to set.
      Returns:
      the SubscriptionKeysContractInner 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<SubscriptionKeysContractInner>
      Throws:
      IOException
    • fromJson

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