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 Summary
ConstructorsConstructorDescriptionCreates an instance of SubscriptionKeyParameterNamesContract class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SubscriptionKeyParameterNamesContract from the JsonReader.Get the headerProperty property: Subscription key header name.query()Get the query property: Subscription key query string parameter name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withHeaderProperty(String headerProperty) Set the headerProperty property: Subscription key header name.Set the query property: Subscription key query string parameter name.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SubscriptionKeyParameterNamesContract
public SubscriptionKeyParameterNamesContract()Creates an instance of SubscriptionKeyParameterNamesContract class.
-
-
Method Details
-
headerProperty
Get the headerProperty property: Subscription key header name.- Returns:
- the headerProperty value.
-
withHeaderProperty
Set the headerProperty property: Subscription key header name.- Parameters:
headerProperty- the headerProperty value to set.- Returns:
- the SubscriptionKeyParameterNamesContract object itself.
-
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
- Specified by:
toJsonin interfacecom.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.
-