Interface BackendContract
public interface BackendContract
An immutable client-side representation of BackendContract.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe entirety of the BackendContract definition.static interfaceThe BackendContract definition stages.static interfaceThe template for BackendContract update.static interfaceThe BackendContract update stages. -
Method Summary
Modifier and TypeMethodDescriptionGets the circuitBreaker property: Backend Circuit Breaker Configuration.Gets the credentials property: Backend Credentials Contract Properties.Gets the description property: Backend Description.id()Gets the id property: Fully qualified resource Id for the resource.Gets the inner com.azure.resourcemanager.apimanagement.fluent.models.BackendContractInner object.name()Gets the name property: The name of the resource.pool()Gets the pool property: The pool property.Gets the properties property: Backend Properties contract.protocol()Gets the protocol property: Backend communication protocol.proxy()Gets the proxy property: Backend gateway Contract Properties.voidNotifies the API Management gateway to create a new connection to the backend after the specified timeout.com.azure.core.http.rest.Response<Void> reconnectWithResponse(BackendReconnectContract parameters, com.azure.core.util.Context context) Notifies the API Management gateway to create a new connection to the backend after the specified timeout.refresh()Refreshes the resource to sync with Azure.refresh(com.azure.core.util.Context context) Refreshes the resource to sync with Azure.Gets the name of the resource group.Gets the resourceId property: Management Uri of the Resource in External System.title()Gets the title property: Backend Title.tls()Gets the tls property: Backend TLS Properties.type()Gets the type property: The type of the resource.Gets the typePropertiesType property: Type of the backend.update()Begins update for the BackendContract resource.url()Gets the url property: Runtime Url of the Backend.
-
Method Details
-
id
String id()Gets the id property: Fully qualified resource Id for the resource.- Returns:
- the id value.
-
name
String name()Gets the name property: The name of the resource.- Returns:
- the name value.
-
type
String type()Gets the type property: The type of the resource.- Returns:
- the type value.
-
url
String url()Gets the url property: Runtime Url of the Backend.- Returns:
- the url value.
-
protocol
BackendProtocol protocol()Gets the protocol property: Backend communication protocol.- Returns:
- the protocol value.
-
title
String title()Gets the title property: Backend Title.- Returns:
- the title value.
-
description
String description()Gets the description property: Backend Description.- Returns:
- the description value.
-
resourceId
String resourceId()Gets the resourceId property: Management Uri of the Resource in External System. This URL can be the Arm Resource Id of Logic Apps, Function Apps or API Apps.- Returns:
- the resourceId value.
-
properties
BackendProperties properties()Gets the properties property: Backend Properties contract.- Returns:
- the properties value.
-
credentials
BackendCredentialsContract credentials()Gets the credentials property: Backend Credentials Contract Properties.- Returns:
- the credentials value.
-
proxy
BackendProxyContract proxy()Gets the proxy property: Backend gateway Contract Properties.- Returns:
- the proxy value.
-
tls
BackendTlsProperties tls()Gets the tls property: Backend TLS Properties.- Returns:
- the tls value.
-
circuitBreaker
BackendCircuitBreaker circuitBreaker()Gets the circuitBreaker property: Backend Circuit Breaker Configuration.- Returns:
- the circuitBreaker value.
-
pool
BackendBaseParametersPool pool()Gets the pool property: The pool property.- Returns:
- the pool value.
-
typePropertiesType
BackendType typePropertiesType()Gets the typePropertiesType property: Type of the backend. A backend can be either Single or Pool.- Returns:
- the typePropertiesType value.
-
resourceGroupName
String resourceGroupName()Gets the name of the resource group.- Returns:
- the name of the resource group.
-
innerModel
BackendContractInner innerModel()Gets the inner com.azure.resourcemanager.apimanagement.fluent.models.BackendContractInner object.- Returns:
- the inner object.
-
update
BackendContract.Update update()Begins update for the BackendContract resource.- Returns:
- the stage of resource update.
-
refresh
BackendContract refresh()Refreshes the resource to sync with Azure.- Returns:
- the refreshed resource.
-
refresh
Refreshes the resource to sync with Azure.- Parameters:
context- The context to associate with this operation.- Returns:
- the refreshed resource.
-
reconnectWithResponse
com.azure.core.http.rest.Response<Void> reconnectWithResponse(BackendReconnectContract parameters, com.azure.core.util.Context context) Notifies the API Management gateway to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used.- Parameters:
parameters- Reconnect request parameters.context- The context to associate with this operation.- Returns:
- the
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
reconnect
void reconnect()Notifies the API Management gateway to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used.- Throws:
com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-