Class ApiCreateOrUpdateProperties
java.lang.Object
com.azure.resourcemanager.apimanagement.models.ApiEntityBaseContract
com.azure.resourcemanager.apimanagement.fluent.models.ApiContractProperties
com.azure.resourcemanager.apimanagement.fluent.models.ApiCreateOrUpdateProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApiEntityBaseContract>
API Create or Update Properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ApiCreateOrUpdateProperties class. -
Method Summary
Modifier and TypeMethodDescriptionformat()Get the format property: Format of the Content in which the API is getting imported.static ApiCreateOrUpdatePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApiCreateOrUpdateProperties from the JsonReader.isOnline()Get the isOnline property: Indicates if API revision is accessible via the gateway.Get the provisioningState property: The provisioning state.Get the soapApiType property: Type of API to createcom.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the translateRequiredQueryParametersConduct property: Strategy of translating required query parameters to template ones.voidvalidate()Validates the instance.value()Get the value property: Content value when Importing an API.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.withFormat(ContentFormat format) Set the format property: Format of the Content in which the API is getting imported.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.withSoapApiType(SoapApiType soapApiType) Set the soapApiType property: Type of API to createwithSourceApiId(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.withTranslateRequiredQueryParametersConduct(TranslateRequiredQueryParametersConduct translateRequiredQueryParametersConduct) Set the translateRequiredQueryParametersConduct property: Strategy of translating required query parameters to template ones.Set the value property: Content value when Importing an API.withWsdlSelector(ApiCreateOrUpdatePropertiesWsdlSelector wsdlSelector) Set the wsdlSelector property: Criteria to limit import of WSDL to a subset of the document.Get the wsdlSelector property: Criteria to limit import of WSDL to a subset of the document.Methods inherited from class com.azure.resourcemanager.apimanagement.fluent.models.ApiContractProperties
apiVersionSet, displayName, path, protocols, serviceUrl, sourceApiIdMethods 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
-
ApiCreateOrUpdateProperties
public ApiCreateOrUpdateProperties()Creates an instance of ApiCreateOrUpdateProperties class.
-
-
Method Details
-
value
Get the value property: Content value when Importing an API.- Returns:
- the value value.
-
withValue
Set the value property: Content value when Importing an API.- Parameters:
value- the value value to set.- Returns:
- the ApiCreateOrUpdateProperties object itself.
-
format
Get the format property: Format of the Content in which the API is getting imported. New formats can be added in the future.- Returns:
- the format value.
-
withFormat
Set the format property: Format of the Content in which the API is getting imported. New formats can be added in the future.- Parameters:
format- the format value to set.- Returns:
- the ApiCreateOrUpdateProperties object itself.
-
wsdlSelector
Get the wsdlSelector property: Criteria to limit import of WSDL to a subset of the document.- Returns:
- the wsdlSelector value.
-
withWsdlSelector
public ApiCreateOrUpdateProperties withWsdlSelector(ApiCreateOrUpdatePropertiesWsdlSelector wsdlSelector) Set the wsdlSelector property: Criteria to limit import of WSDL to a subset of the document.- Parameters:
wsdlSelector- the wsdlSelector value to set.- Returns:
- the ApiCreateOrUpdateProperties object itself.
-
soapApiType
Get the soapApiType property: Type of API to create. * `http` creates a REST API * `soap` creates a SOAP pass-through API * `websocket` creates websocket API * `graphql` creates GraphQL API. New types can be added in the future.- Returns:
- the soapApiType value.
-
withSoapApiType
Set the soapApiType property: Type of API to create. * `http` creates a REST API * `soap` creates a SOAP pass-through API * `websocket` creates websocket API * `graphql` creates GraphQL API. New types can be added in the future.- Parameters:
soapApiType- the soapApiType value to set.- Returns:
- the ApiCreateOrUpdateProperties object itself.
-
translateRequiredQueryParametersConduct
Get the translateRequiredQueryParametersConduct property: Strategy of translating required query parameters to template ones. By default has value 'template'. Possible values: 'template', 'query'.- Returns:
- the translateRequiredQueryParametersConduct value.
-
withTranslateRequiredQueryParametersConduct
public ApiCreateOrUpdateProperties withTranslateRequiredQueryParametersConduct(TranslateRequiredQueryParametersConduct translateRequiredQueryParametersConduct) Set the translateRequiredQueryParametersConduct property: Strategy of translating required query parameters to template ones. By default has value 'template'. Possible values: 'template', 'query'.- Parameters:
translateRequiredQueryParametersConduct- the translateRequiredQueryParametersConduct value to set.- Returns:
- the ApiCreateOrUpdateProperties object itself.
-
provisioningState
Get the provisioningState property: The provisioning state.- Overrides:
provisioningStatein classApiContractProperties- Returns:
- the provisioningState value.
-
isOnline
Get the isOnline property: Indicates if API revision is accessible via the gateway.- Overrides:
isOnlinein classApiContractProperties- Returns:
- the isOnline value.
-
withSourceApiId
Set the sourceApiId property: API identifier of the source API.- Overrides:
withSourceApiIdin classApiContractProperties- Parameters:
sourceApiId- the sourceApiId value to set.- Returns:
- the ApiContractProperties object itself.
-
withDisplayName
Set the displayName property: API name. Must be 1 to 300 characters long.- Overrides:
withDisplayNamein classApiContractProperties- Parameters:
displayName- the displayName value to set.- Returns:
- the ApiContractProperties object itself.
-
withServiceUrl
Set the serviceUrl property: Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long.- Overrides:
withServiceUrlin classApiContractProperties- Parameters:
serviceUrl- the serviceUrl value to set.- Returns:
- the ApiContractProperties object itself.
-
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.- Overrides:
withPathin classApiContractProperties- Parameters:
path- the path value to set.- Returns:
- the ApiContractProperties object itself.
-
withProtocols
Set the protocols property: Describes on which protocols the operations in this API can be invoked.- Overrides:
withProtocolsin classApiContractProperties- Parameters:
protocols- the protocols value to set.- Returns:
- the ApiContractProperties object itself.
-
withApiVersionSet
Set the apiVersionSet property: Version set details.- Overrides:
withApiVersionSetin classApiContractProperties- Parameters:
apiVersionSet- the apiVersionSet value to set.- Returns:
- the ApiContractProperties object itself.
-
withDescription
Set the description property: Description of the API. May include HTML formatting tags.- Overrides:
withDescriptionin classApiContractProperties- Parameters:
description- the description value to set.- Returns:
- the ApiEntityBaseContract object itself.
-
withAuthenticationSettings
public ApiCreateOrUpdateProperties withAuthenticationSettings(AuthenticationSettingsContract authenticationSettings) Set the authenticationSettings property: Collection of authentication settings included into this API.- Overrides:
withAuthenticationSettingsin classApiContractProperties- Parameters:
authenticationSettings- the authenticationSettings value to set.- Returns:
- the ApiEntityBaseContract object itself.
-
withSubscriptionKeyParameterNames
public ApiCreateOrUpdateProperties withSubscriptionKeyParameterNames(SubscriptionKeyParameterNamesContract subscriptionKeyParameterNames) Set the subscriptionKeyParameterNames property: Protocols over which API is made available.- Overrides:
withSubscriptionKeyParameterNamesin classApiContractProperties- Parameters:
subscriptionKeyParameterNames- the subscriptionKeyParameterNames value to set.- Returns:
- the ApiEntityBaseContract object itself.
-
withApiType
Set the apiType property: Type of API.- Overrides:
withApiTypein classApiContractProperties- 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 classApiContractProperties- 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 classApiContractProperties- 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 classApiContractProperties- Parameters:
isCurrent- the isCurrent value to set.- Returns:
- the ApiEntityBaseContract object itself.
-
withApiRevisionDescription
Set the apiRevisionDescription property: Description of the API Revision.- Overrides:
withApiRevisionDescriptionin classApiContractProperties- Parameters:
apiRevisionDescription- the apiRevisionDescription value to set.- Returns:
- the ApiEntityBaseContract object itself.
-
withApiVersionDescription
Set the apiVersionDescription property: Description of the API Version.- Overrides:
withApiVersionDescriptionin classApiContractProperties- 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 classApiContractProperties- 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 classApiContractProperties- 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 classApiContractProperties- Parameters:
termsOfServiceUrl- the termsOfServiceUrl value to set.- Returns:
- the ApiEntityBaseContract object itself.
-
withContact
Set the contact property: Contact information for the API.- Overrides:
withContactin classApiContractProperties- Parameters:
contact- the contact value to set.- Returns:
- the ApiEntityBaseContract object itself.
-
withLicense
Set the license property: License information for the API.- Overrides:
withLicensein classApiContractProperties- Parameters:
license- the license value to set.- Returns:
- the ApiEntityBaseContract object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classApiContractProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ApiEntityBaseContract>- Overrides:
toJsonin classApiContractProperties- Throws:
IOException
-
fromJson
public static ApiCreateOrUpdateProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ApiCreateOrUpdateProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ApiCreateOrUpdateProperties 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 ApiCreateOrUpdateProperties.
-