Class ApiContractInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.apimanagement.fluent.models.ApiContractInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class ApiContractInner
extends com.azure.core.management.ProxyResource
API details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the apiRevision property: Describes the revision of the API.Get the apiRevisionDescription property: Description of the API Revision.apiType()Get the apiType property: Type of API.Get the apiVersion property: Indicates the version identifier of the API if the API is versioned.Get the apiVersionDescription property: Description of the API Version.Get the apiVersionSet property: Version set details.Get the apiVersionSetId property: A resource identifier for the related ApiVersionSet.Get the authenticationSettings property: Collection of authentication settings included into this API.contact()Get the contact property: Contact information for the API.Get the description property: Description of the API.Get the displayName property: API name.static ApiContractInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApiContractInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.Get the isCurrent property: Indicates if API revision is current api revision.isOnline()Get the isOnline property: Indicates if API revision is accessible via the gateway.license()Get the license property: License information for the API.name()Get the name property: The name of the resource.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.Get the subscriptionKeyParameterNames property: Protocols over which API is made available.Get the subscriptionRequired property: Specifies whether an API or Product subscription is required for accessing the API.Get the termsOfServiceUrl property: A URL to the Terms of Service for the API.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.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 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
-
ApiContractInner
public ApiContractInner()Creates an instance of ApiContractInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
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 ApiContractInner 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 ApiContractInner 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 ApiContractInner 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 ApiContractInner 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 ApiContractInner 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 ApiContractInner object itself.
-
provisioningState
Get the provisioningState property: The provisioning state.- Returns:
- the provisioningState value.
-
description
Get the description property: Description of the API. May include HTML formatting tags.- Returns:
- the description value.
-
withDescription
Set the description property: Description of the API. May include HTML formatting tags.- Parameters:
description- the description value to set.- Returns:
- the ApiContractInner object itself.
-
authenticationSettings
Get the authenticationSettings property: Collection of authentication settings included into this API.- Returns:
- the authenticationSettings value.
-
withAuthenticationSettings
public ApiContractInner withAuthenticationSettings(AuthenticationSettingsContract authenticationSettings) Set the authenticationSettings property: Collection of authentication settings included into this API.- Parameters:
authenticationSettings- the authenticationSettings value to set.- Returns:
- the ApiContractInner object itself.
-
subscriptionKeyParameterNames
Get the subscriptionKeyParameterNames property: Protocols over which API is made available.- Returns:
- the subscriptionKeyParameterNames value.
-
withSubscriptionKeyParameterNames
public ApiContractInner withSubscriptionKeyParameterNames(SubscriptionKeyParameterNamesContract subscriptionKeyParameterNames) Set the subscriptionKeyParameterNames property: Protocols over which API is made available.- Parameters:
subscriptionKeyParameterNames- the subscriptionKeyParameterNames value to set.- Returns:
- the ApiContractInner object itself.
-
apiType
Get the apiType property: Type of API.- Returns:
- the apiType value.
-
withApiType
Set the apiType property: Type of API.- Parameters:
apiType- the apiType value to set.- Returns:
- the ApiContractInner object itself.
-
apiRevision
Get the apiRevision property: Describes the revision of the API. If no value is provided, default revision 1 is created.- Returns:
- the apiRevision value.
-
withApiRevision
Set the apiRevision property: Describes the revision of the API. If no value is provided, default revision 1 is created.- Parameters:
apiRevision- the apiRevision value to set.- Returns:
- the ApiContractInner object itself.
-
apiVersion
Get the apiVersion property: Indicates the version identifier of the API if the API is versioned.- Returns:
- the apiVersion value.
-
withApiVersion
Set the apiVersion property: Indicates the version identifier of the API if the API is versioned.- Parameters:
apiVersion- the apiVersion value to set.- Returns:
- the ApiContractInner object itself.
-
isCurrent
Get the isCurrent property: Indicates if API revision is current api revision.- Returns:
- the isCurrent value.
-
withIsCurrent
Set the isCurrent property: Indicates if API revision is current api revision.- Parameters:
isCurrent- the isCurrent value to set.- Returns:
- the ApiContractInner object itself.
-
isOnline
Get the isOnline property: Indicates if API revision is accessible via the gateway.- Returns:
- the isOnline value.
-
apiRevisionDescription
Get the apiRevisionDescription property: Description of the API Revision.- Returns:
- the apiRevisionDescription value.
-
withApiRevisionDescription
Set the apiRevisionDescription property: Description of the API Revision.- Parameters:
apiRevisionDescription- the apiRevisionDescription value to set.- Returns:
- the ApiContractInner object itself.
-
apiVersionDescription
Get the apiVersionDescription property: Description of the API Version.- Returns:
- the apiVersionDescription value.
-
withApiVersionDescription
Set the apiVersionDescription property: Description of the API Version.- Parameters:
apiVersionDescription- the apiVersionDescription value to set.- Returns:
- the ApiContractInner object itself.
-
apiVersionSetId
Get the apiVersionSetId property: A resource identifier for the related ApiVersionSet.- Returns:
- the apiVersionSetId value.
-
withApiVersionSetId
Set the apiVersionSetId property: A resource identifier for the related ApiVersionSet.- Parameters:
apiVersionSetId- the apiVersionSetId value to set.- Returns:
- the ApiContractInner object itself.
-
subscriptionRequired
Get the subscriptionRequired property: Specifies whether an API or Product subscription is required for accessing the API.- Returns:
- the subscriptionRequired value.
-
withSubscriptionRequired
Set the subscriptionRequired property: Specifies whether an API or Product subscription is required for accessing the API.- Parameters:
subscriptionRequired- the subscriptionRequired value to set.- Returns:
- the ApiContractInner object itself.
-
termsOfServiceUrl
Get the termsOfServiceUrl property: A URL to the Terms of Service for the API. MUST be in the format of a URL.- Returns:
- the termsOfServiceUrl value.
-
withTermsOfServiceUrl
Set the termsOfServiceUrl property: A URL to the Terms of Service for the API. MUST be in the format of a URL.- Parameters:
termsOfServiceUrl- the termsOfServiceUrl value to set.- Returns:
- the ApiContractInner object itself.
-
contact
Get the contact property: Contact information for the API.- Returns:
- the contact value.
-
withContact
Set the contact property: Contact information for the API.- Parameters:
contact- the contact value to set.- Returns:
- the ApiContractInner object itself.
-
license
Get the license property: License information for the API.- Returns:
- the license value.
-
withLicense
Set the license property: License information for the API.- Parameters:
license- the license value to set.- Returns:
- the ApiContractInner 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<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
Reads an instance of ApiContractInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ApiContractInner 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 ApiContractInner.
-