ApiContractInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. apimanagement. fluent. models. ApiContractInner
- com.
- com.
public final class ApiContractInner
extends ProxyResource
API details.
Constructor Summary
Constructor | Description |
---|---|
ApiContractInner() |
Creates an instance of Api |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
apiRevision()
Get the api |
String |
apiRevisionDescription()
Get the api |
Api |
apiType()
Get the api |
String |
apiVersion()
Get the api |
String |
apiVersionDescription()
Get the api |
Api |
apiVersionSet()
Get the api |
String |
apiVersionSetId()
Get the api |
Authentication |
authenticationSettings()
Get the authentication |
Api |
contact()
Get the contact property: Contact information for the API. |
String |
description()
Get the description property: Description of the API. |
String |
displayName()
Get the display |
Boolean |
isCurrent()
Get the is |
Boolean |
isOnline()
Get the is |
Api |
license()
Get the license property: License information for the API. |
String |
path()
Get the path property: Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. |
List<Protocol> |
protocols()
Get the protocols property: Describes on which protocols the operations in this API can be invoked. |
String |
serviceUrl()
Get the service |
String |
sourceApiId()
Get the source |
Subscription |
subscriptionKeyParameterNames()
Get the subscription |
Boolean |
subscriptionRequired()
Get the subscription |
String |
termsOfServiceUrl()
Get the terms |
void |
validate()
Validates the instance. |
Api |
withApiRevision(String apiRevision)
Set the api |
Api |
withApiRevisionDescription(String apiRevisionDescription)
Set the api |
Api |
withApiType(ApiType apiType)
Set the api |
Api |
withApiVersion(String apiVersion)
Set the api |
Api |
withApiVersionDescription(String apiVersionDescription)
Set the api |
Api |
withApiVersionSet(ApiVersionSetContractDetails apiVersionSet)
Set the api |
Api |
withApiVersionSetId(String apiVersionSetId)
Set the api |
Api |
withAuthenticationSettings(AuthenticationSettingsContract authenticationSettings)
Set the authentication |
Api |
withContact(ApiContactInformation contact)
Set the contact property: Contact information for the API. |
Api |
withDescription(String description)
Set the description property: Description of the API. |
Api |
withDisplayName(String displayName)
Set the display |
Api |
withIsCurrent(Boolean isCurrent)
Set the is |
Api |
withLicense(ApiLicenseInformation license)
Set the license property: License information for the API. |
Api |
withPath(String path)
Set the path property: Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. |
Api |
withProtocols(List<Protocol> protocols)
Set the protocols property: Describes on which protocols the operations in this API can be invoked. |
Api |
withServiceUrl(String serviceUrl)
Set the service |
Api |
withSourceApiId(String sourceApiId)
Set the source |
Api |
withSubscriptionKeyParameterNames(SubscriptionKeyParameterNamesContract subscriptionKeyParameterNames)
Set the subscription |
Api |
withSubscriptionRequired(Boolean subscriptionRequired)
Set the subscription |
Api |
withTermsOfServiceUrl(String termsOfServiceUrl)
Set the terms |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
ApiContractInner
public ApiContractInner()
Creates an instance of ApiContractInner class.
Method Details
apiRevision
public String apiRevision()
Get the apiRevision property: Describes the revision of the API. If no value is provided, default revision 1 is created.
Returns:
apiRevisionDescription
public String apiRevisionDescription()
Get the apiRevisionDescription property: Description of the API Revision.
Returns:
apiType
public ApiType apiType()
Get the apiType property: Type of API.
Returns:
apiVersion
public String apiVersion()
Get the apiVersion property: Indicates the version identifier of the API if the API is versioned.
Returns:
apiVersionDescription
public String apiVersionDescription()
Get the apiVersionDescription property: Description of the API Version.
Returns:
apiVersionSet
public ApiVersionSetContractDetails apiVersionSet()
Get the apiVersionSet property: Version set details.
Returns:
apiVersionSetId
public String apiVersionSetId()
Get the apiVersionSetId property: A resource identifier for the related ApiVersionSet.
Returns:
authenticationSettings
public AuthenticationSettingsContract authenticationSettings()
Get the authenticationSettings property: Collection of authentication settings included into this API.
Returns:
contact
public ApiContactInformation contact()
Get the contact property: Contact information for the API.
Returns:
description
public String description()
Get the description property: Description of the API. May include HTML formatting tags.
Returns:
displayName
public String displayName()
Get the displayName property: API name. Must be 1 to 300 characters long.
Returns:
isCurrent
public Boolean isCurrent()
Get the isCurrent property: Indicates if API revision is current api revision.
Returns:
isOnline
public Boolean isOnline()
Get the isOnline property: Indicates if API revision is accessible via the gateway.
Returns:
license
public ApiLicenseInformation license()
Get the license property: License information for the API.
Returns:
path
public String 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:
protocols
public List
Get the protocols property: Describes on which protocols the operations in this API can be invoked.
Returns:
serviceUrl
public String serviceUrl()
Get the serviceUrl property: Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long.
Returns:
sourceApiId
public String sourceApiId()
Get the sourceApiId property: API identifier of the source API.
Returns:
subscriptionKeyParameterNames
public SubscriptionKeyParameterNamesContract subscriptionKeyParameterNames()
Get the subscriptionKeyParameterNames property: Protocols over which API is made available.
Returns:
subscriptionRequired
public Boolean subscriptionRequired()
Get the subscriptionRequired property: Specifies whether an API or Product subscription is required for accessing the API.
Returns:
termsOfServiceUrl
public String termsOfServiceUrl()
Get the termsOfServiceUrl property: A URL to the Terms of Service for the API. MUST be in the format of a URL.
Returns:
validate
public void validate()
Validates the instance.
withApiRevision
public ApiContractInner withApiRevision(String apiRevision)
Set the apiRevision property: Describes the revision of the API. If no value is provided, default revision 1 is created.
Parameters:
Returns:
withApiRevisionDescription
public ApiContractInner withApiRevisionDescription(String apiRevisionDescription)
Set the apiRevisionDescription property: Description of the API Revision.
Parameters:
Returns:
withApiType
public ApiContractInner withApiType(ApiType apiType)
Set the apiType property: Type of API.
Parameters:
Returns:
withApiVersion
public ApiContractInner withApiVersion(String apiVersion)
Set the apiVersion property: Indicates the version identifier of the API if the API is versioned.
Parameters:
Returns:
withApiVersionDescription
public ApiContractInner withApiVersionDescription(String apiVersionDescription)
Set the apiVersionDescription property: Description of the API Version.
Parameters:
Returns:
withApiVersionSet
public ApiContractInner withApiVersionSet(ApiVersionSetContractDetails apiVersionSet)
Set the apiVersionSet property: Version set details.
Parameters:
Returns:
withApiVersionSetId
public ApiContractInner withApiVersionSetId(String apiVersionSetId)
Set the apiVersionSetId property: A resource identifier for the related ApiVersionSet.
Parameters:
Returns:
withAuthenticationSettings
public ApiContractInner withAuthenticationSettings(AuthenticationSettingsContract authenticationSettings)
Set the authenticationSettings property: Collection of authentication settings included into this API.
Parameters:
Returns:
withContact
public ApiContractInner withContact(ApiContactInformation contact)
Set the contact property: Contact information for the API.
Parameters:
Returns:
withDescription
public ApiContractInner withDescription(String description)
Set the description property: Description of the API. May include HTML formatting tags.
Parameters:
Returns:
withDisplayName
public ApiContractInner withDisplayName(String displayName)
Set the displayName property: API name. Must be 1 to 300 characters long.
Parameters:
Returns:
withIsCurrent
public ApiContractInner withIsCurrent(Boolean isCurrent)
Set the isCurrent property: Indicates if API revision is current api revision.
Parameters:
Returns:
withLicense
public ApiContractInner withLicense(ApiLicenseInformation license)
Set the license property: License information for the API.
Parameters:
Returns:
withPath
public ApiContractInner withPath(String path)
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:
Returns:
withProtocols
public ApiContractInner withProtocols(List
Set the protocols property: Describes on which protocols the operations in this API can be invoked.
Parameters:
Returns:
withServiceUrl
public ApiContractInner withServiceUrl(String serviceUrl)
Set the serviceUrl property: Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long.
Parameters:
Returns:
withSourceApiId
public ApiContractInner withSourceApiId(String sourceApiId)
Set the sourceApiId property: API identifier of the source API.
Parameters:
Returns:
withSubscriptionKeyParameterNames
public ApiContractInner withSubscriptionKeyParameterNames(SubscriptionKeyParameterNamesContract subscriptionKeyParameterNames)
Set the subscriptionKeyParameterNames property: Protocols over which API is made available.
Parameters:
Returns:
withSubscriptionRequired
public ApiContractInner withSubscriptionRequired(Boolean subscriptionRequired)
Set the subscriptionRequired property: Specifies whether an API or Product subscription is required for accessing the API.
Parameters:
Returns:
withTermsOfServiceUrl
public ApiContractInner withTermsOfServiceUrl(String termsOfServiceUrl)
Set the termsOfServiceUrl property: A URL to the Terms of Service for the API. MUST be in the format of a URL.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for