Class SubscriptionKeyParameterNamesContract

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

public final class SubscriptionKeyParameterNamesContract extends Object implements com.azure.json.JsonSerializable<SubscriptionKeyParameterNamesContract>
Subscription key parameter names details.
  • Constructor Details

    • SubscriptionKeyParameterNamesContract

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

    • headerProperty

      public String headerProperty()
      Get the headerProperty property: Subscription key header name.
      Returns:
      the headerProperty value.
    • withHeaderProperty

      public SubscriptionKeyParameterNamesContract withHeaderProperty(String headerProperty)
      Set the headerProperty property: Subscription key header name.
      Parameters:
      headerProperty - the headerProperty value to set.
      Returns:
      the SubscriptionKeyParameterNamesContract object itself.
    • query

      public String query()
      Get the query property: Subscription key query string parameter name.
      Returns:
      the query value.
    • withQuery

      Set the query property: Subscription key query string parameter name.
      Parameters:
      query - the query value to set.
      Returns:
      the SubscriptionKeyParameterNamesContract 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<SubscriptionKeyParameterNamesContract>
      Throws:
      IOException
    • fromJson

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