Class ApiLicenseInformation
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.models.ApiLicenseInformation
-
public final class ApiLicenseInformation extends Object
API license information.
-
-
Constructor Summary
Constructors Constructor Description ApiLicenseInformation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
name()
Get the name property: The license name used for the API.String
url()
Get the url property: A URL to the license used for the API.void
validate()
Validates the instance.ApiLicenseInformation
withName(String name)
Set the name property: The license name used for the API.ApiLicenseInformation
withUrl(String url)
Set the url property: A URL to the license used for the API.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The license name used for the API.- Returns:
- the name value.
-
withName
public ApiLicenseInformation withName(String name)
Set the name property: The license name used for the API.- Parameters:
name
- the name value to set.- Returns:
- the ApiLicenseInformation object itself.
-
url
public String 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
public ApiLicenseInformation withUrl(String url)
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.
-
-