Class ApiVersionSetEntityBase
java.lang.Object
com.azure.resourcemanager.apimanagement.models.ApiVersionSetEntityBase
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApiVersionSetEntityBase>
- Direct Known Subclasses:
ApiVersionSetContractProperties,ApiVersionSetUpdateParametersProperties
public class ApiVersionSetEntityBase
extends Object
implements com.azure.json.JsonSerializable<ApiVersionSetEntityBase>
API Version set base parameters.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ApiVersionSetEntityBase class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: Description of API Version Set.static ApiVersionSetEntityBasefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApiVersionSetEntityBase from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the versionHeaderName property: Name of HTTP header parameter that indicates the API Version if versioningScheme is set to `header`.Get the versionQueryName property: Name of query parameter that indicates the API Version if versioningScheme is set to `query`.withDescription(String description) Set the description property: Description of API Version Set.withVersionHeaderName(String versionHeaderName) Set the versionHeaderName property: Name of HTTP header parameter that indicates the API Version if versioningScheme is set to `header`.withVersionQueryName(String versionQueryName) Set the versionQueryName property: Name of query parameter that indicates the API Version if versioningScheme is set to `query`.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
-
ApiVersionSetEntityBase
public ApiVersionSetEntityBase()Creates an instance of ApiVersionSetEntityBase class.
-
-
Method Details
-
description
Get the description property: Description of API Version Set.- Returns:
- the description value.
-
withDescription
Set the description property: Description of API Version Set.- Parameters:
description- the description value to set.- Returns:
- the ApiVersionSetEntityBase object itself.
-
versionQueryName
Get the versionQueryName property: Name of query parameter that indicates the API Version if versioningScheme is set to `query`.- Returns:
- the versionQueryName value.
-
withVersionQueryName
Set the versionQueryName property: Name of query parameter that indicates the API Version if versioningScheme is set to `query`.- Parameters:
versionQueryName- the versionQueryName value to set.- Returns:
- the ApiVersionSetEntityBase object itself.
-
versionHeaderName
Get the versionHeaderName property: Name of HTTP header parameter that indicates the API Version if versioningScheme is set to `header`.- Returns:
- the versionHeaderName value.
-
withVersionHeaderName
Set the versionHeaderName property: Name of HTTP header parameter that indicates the API Version if versioningScheme is set to `header`.- Parameters:
versionHeaderName- the versionHeaderName value to set.- Returns:
- the ApiVersionSetEntityBase 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<ApiVersionSetEntityBase>- Throws:
IOException
-
fromJson
public static ApiVersionSetEntityBase fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ApiVersionSetEntityBase from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ApiVersionSetEntityBase 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 ApiVersionSetEntityBase.
-