Class ApiContractProperties
java.lang.Object
com.azure.resourcemanager.apimanagement.models.ApiEntityBaseContract
com.azure.resourcemanager.apimanagement.fluent.models.ApiContractProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApiEntityBaseContract>
- Direct Known Subclasses:
ApiCreateOrUpdateProperties
API Entity Properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the apiVersionSet property: Version set details.Get the displayName property: API name.static ApiContractPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApiContractProperties from the JsonReader.isOnline()Get the isOnline property: Indicates if API revision is accessible via the gateway.path()Get the path property: Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance.Get the protocols property: Describes on which protocols the operations in this API can be invoked.Get the provisioningState property: The provisioning state.Get the serviceUrl property: Absolute URL of the backend service implementing this API.Get the sourceApiId property: API identifier of the source API.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withApiRevision(String apiRevision) Set the apiRevision property: Describes the revision of the API.withApiRevisionDescription(String apiRevisionDescription) Set the apiRevisionDescription property: Description of the API Revision.withApiType(ApiType apiType) Set the apiType property: Type of API.withApiVersion(String apiVersion) Set the apiVersion property: Indicates the version identifier of the API if the API is versioned.withApiVersionDescription(String apiVersionDescription) Set the apiVersionDescription property: Description of the API Version.withApiVersionSet(ApiVersionSetContractDetails apiVersionSet) Set the apiVersionSet property: Version set details.withApiVersionSetId(String apiVersionSetId) Set the apiVersionSetId property: A resource identifier for the related ApiVersionSet.withAuthenticationSettings(AuthenticationSettingsContract authenticationSettings) Set the authenticationSettings property: Collection of authentication settings included into this API.withContact(ApiContactInformation contact) Set the contact property: Contact information for the API.withDescription(String description) Set the description property: Description of the API.withDisplayName(String displayName) Set the displayName property: API name.withIsCurrent(Boolean isCurrent) Set the isCurrent property: Indicates if API revision is current api revision.withLicense(ApiLicenseInformation license) Set the license property: License information for the API.Set the path property: Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance.withProtocols(List<Protocol> protocols) Set the protocols property: Describes on which protocols the operations in this API can be invoked.withServiceUrl(String serviceUrl) Set the serviceUrl property: Absolute URL of the backend service implementing this API.withSourceApiId(String sourceApiId) Set the sourceApiId property: API identifier of the source API.withSubscriptionKeyParameterNames(SubscriptionKeyParameterNamesContract subscriptionKeyParameterNames) Set the subscriptionKeyParameterNames property: Protocols over which API is made available.withSubscriptionRequired(Boolean subscriptionRequired) Set the subscriptionRequired property: Specifies whether an API or Product subscription is required for accessing the API.withTermsOfServiceUrl(String termsOfServiceUrl) Set the termsOfServiceUrl property: A URL to the Terms of Service for the API.Methods inherited from class com.azure.resourcemanager.apimanagement.models.ApiEntityBaseContract
apiRevision, apiRevisionDescription, apiType, apiVersion, apiVersionDescription, apiVersionSetId, authenticationSettings, contact, description, isCurrent, license, subscriptionKeyParameterNames, subscriptionRequired, termsOfServiceUrlMethods 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
-
ApiContractProperties
public ApiContractProperties()Creates an instance of ApiContractProperties class.
-
-
Method Details
-
sourceApiId
Get the sourceApiId property: API identifier of the source API.- Returns:
- the sourceApiId value.
-
withSourceApiId
Set the sourceApiId property: API identifier of the source API.- Parameters:
sourceApiId- the sourceApiId value to set.- Returns:
- the ApiContractProperties object itself.
-
displayName
Get the displayName property: API name. Must be 1 to 300 characters long.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: API name. Must be 1 to 300 characters long.- Parameters:
displayName- the displayName value to set.- Returns:
- the ApiContractProperties object itself.
-
serviceUrl
Get the serviceUrl property: Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long.- Returns:
- the serviceUrl value.
-
withServiceUrl
Set the serviceUrl property: Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long.- Parameters:
serviceUrl- the serviceUrl value to set.- Returns:
- the ApiContractProperties object itself.
-
path
Get the path property: Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API.- Returns:
- the path value.
-
withPath
Set the path property: Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API.- Parameters:
path- the path value to set.- Returns:
- the ApiContractProperties object itself.
-
protocols
Get the protocols property: Describes on which protocols the operations in this API can be invoked.- Returns:
- the protocols value.
-
withProtocols
Set the protocols property: Describes on which protocols the operations in this API can be invoked.- Parameters:
protocols- the protocols value to set.- Returns:
- the ApiContractProperties object itself.
-
apiVersionSet
Get the apiVersionSet property: Version set details.- Returns:
- the apiVersionSet value.
-
withApiVersionSet
Set the apiVersionSet property: Version set details.- Parameters:
apiVersionSet- the apiVersionSet value to set.- Returns:
- the ApiContractProperties object itself.
-
provisioningState
Get the provisioningState property: The provisioning state.- Returns:
- the provisioningState value.
-
isOnline
Get the isOnline property: Indicates if API revision is accessible via the gateway.- Overrides:
isOnlinein classApiEntityBaseContract- Returns:
- the isOnline value.
-
withDescription
Set the description property: Description of the API. May include HTML formatting tags.- Overrides:
withDescriptionin classApiEntityBaseContract- Parameters:
description- the description value to set.- Returns:
- the ApiEntityBaseContract object itself.
-
withAuthenticationSettings
public ApiContractProperties withAuthenticationSettings(AuthenticationSettingsContract authenticationSettings) Set the authenticationSettings property: Collection of authentication settings included into this API.- Overrides:
withAuthenticationSettingsin classApiEntityBaseContract- Parameters:
authenticationSettings- the authenticationSettings value to set.- Returns:
- the ApiEntityBaseContract object itself.
-
withSubscriptionKeyParameterNames
public ApiContractProperties withSubscriptionKeyParameterNames(SubscriptionKeyParameterNamesContract subscriptionKeyParameterNames) Set the subscriptionKeyParameterNames property: Protocols over which API is made available.- Overrides:
withSubscriptionKeyParameterNamesin classApiEntityBaseContract- Parameters:
subscriptionKeyParameterNames- the subscriptionKeyParameterNames value to set.- Returns:
- the ApiEntityBaseContract object itself.
-
withApiType
Set the apiType property: Type of API.- Overrides:
withApiTypein classApiEntityBaseContract- Parameters:
apiType- the apiType value to set.- Returns:
- the ApiEntityBaseContract object itself.
-
withApiRevision
Set the apiRevision property: Describes the revision of the API. If no value is provided, default revision 1 is created.- Overrides:
withApiRevisionin classApiEntityBaseContract- Parameters:
apiRevision- the apiRevision value to set.- Returns:
- the ApiEntityBaseContract object itself.
-
withApiVersion
Set the apiVersion property: Indicates the version identifier of the API if the API is versioned.- Overrides:
withApiVersionin classApiEntityBaseContract- Parameters:
apiVersion- the apiVersion value to set.- Returns:
- the ApiEntityBaseContract object itself.
-
withIsCurrent
Set the isCurrent property: Indicates if API revision is current api revision.- Overrides:
withIsCurrentin classApiEntityBaseContract- Parameters:
isCurrent- the isCurrent value to set.- Returns:
- the ApiEntityBaseContract object itself.
-
withApiRevisionDescription
Set the apiRevisionDescription property: Description of the API Revision.- Overrides:
withApiRevisionDescriptionin classApiEntityBaseContract- Parameters:
apiRevisionDescription- the apiRevisionDescription value to set.- Returns:
- the ApiEntityBaseContract object itself.
-
withApiVersionDescription
Set the apiVersionDescription property: Description of the API Version.- Overrides:
withApiVersionDescriptionin classApiEntityBaseContract- Parameters:
apiVersionDescription- the apiVersionDescription value to set.- Returns:
- the ApiEntityBaseContract object itself.
-
withApiVersionSetId
Set the apiVersionSetId property: A resource identifier for the related ApiVersionSet.- Overrides:
withApiVersionSetIdin classApiEntityBaseContract- Parameters:
apiVersionSetId- the apiVersionSetId value to set.- Returns:
- the ApiEntityBaseContract object itself.
-
withSubscriptionRequired
Set the subscriptionRequired property: Specifies whether an API or Product subscription is required for accessing the API.- Overrides:
withSubscriptionRequiredin classApiEntityBaseContract- Parameters:
subscriptionRequired- the subscriptionRequired value to set.- Returns:
- the ApiEntityBaseContract object itself.
-
withTermsOfServiceUrl
Set the termsOfServiceUrl property: A URL to the Terms of Service for the API. MUST be in the format of a URL.- Overrides:
withTermsOfServiceUrlin classApiEntityBaseContract- Parameters:
termsOfServiceUrl- the termsOfServiceUrl value to set.- Returns:
- the ApiEntityBaseContract object itself.
-
withContact
Set the contact property: Contact information for the API.- Overrides:
withContactin classApiEntityBaseContract- Parameters:
contact- the contact value to set.- Returns:
- the ApiEntityBaseContract object itself.
-
withLicense
Set the license property: License information for the API.- Overrides:
withLicensein classApiEntityBaseContract- Parameters:
license- the license value to set.- Returns:
- the ApiEntityBaseContract object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classApiEntityBaseContract- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ApiEntityBaseContract>- Overrides:
toJsonin classApiEntityBaseContract- Throws:
IOException
-
fromJson
public static ApiContractProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ApiContractProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ApiContractProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ApiContractProperties.
-