Class ApiLicenseInformation
java.lang.Object
com.azure.resourcemanager.apimanagement.models.ApiLicenseInformation
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApiLicenseInformation>
public final class ApiLicenseInformation
extends Object
implements com.azure.json.JsonSerializable<ApiLicenseInformation>
API license information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiLicenseInformationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApiLicenseInformation from the JsonReader.name()Get the name property: The license name used for the API.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) url()Get the url property: A URL to the license used for the API.voidvalidate()Validates the instance.Set the name property: The license name used for the API.Set the url property: A URL to the license used for the API.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
-
ApiLicenseInformation
public ApiLicenseInformation()Creates an instance of ApiLicenseInformation class.
-
-
Method Details
-
name
Get the name property: The license name used for the API.- Returns:
- the name value.
-
withName
Set the name property: The license name used for the API.- Parameters:
name- the name value to set.- Returns:
- the ApiLicenseInformation object itself.
-
url
Get the url property: A URL to the license used for the API. MUST be in the format of a URL.- Returns:
- the url value.
-
withUrl
Set the url property: A URL to the license used for the API. MUST be in the format of a URL.- Parameters:
url- the url value to set.- Returns:
- the ApiLicenseInformation 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<ApiLicenseInformation>- Throws:
IOException
-
fromJson
public static ApiLicenseInformation fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ApiLicenseInformation from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ApiLicenseInformation 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 ApiLicenseInformation.
-