Class BackendContractInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.apimanagement.fluent.models.BackendContractInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class BackendContractInner
extends com.azure.core.management.ProxyResource
Backend details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the circuitBreaker property: Backend Circuit Breaker Configuration.Get the credentials property: Backend Credentials Contract Properties.Get the description property: Backend Description.static BackendContractInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BackendContractInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.name()Get the name property: The name of the resource.pool()Get the pool property: The pool property.Get the properties property: Backend Properties contract.protocol()Get the protocol property: Backend communication protocol.proxy()Get the proxy property: Backend gateway Contract Properties.Get the resourceId property: Management Uri of the Resource in External System.title()Get the title property: Backend Title.tls()Get the tls property: Backend TLS Properties.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.Get the type property: Type of the backend.url()Get the url property: Runtime Url of the Backend.voidvalidate()Validates the instance.withCircuitBreaker(BackendCircuitBreaker circuitBreaker) Set the circuitBreaker property: Backend Circuit Breaker Configuration.withCredentials(BackendCredentialsContract credentials) Set the credentials property: Backend Credentials Contract Properties.withDescription(String description) Set the description property: Backend Description.Set the pool property: The pool property.withProperties(BackendProperties properties) Set the properties property: Backend Properties contract.withProtocol(BackendProtocol protocol) Set the protocol property: Backend communication protocol.withProxy(BackendProxyContract proxy) Set the proxy property: Backend gateway Contract Properties.withResourceId(String resourceId) Set the resourceId property: Management Uri of the Resource in External System.Set the title property: Backend Title.Set the tls property: Backend TLS Properties.Set the type property: Type of the backend.Set the url property: Runtime Url of the Backend.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
-
BackendContractInner
public BackendContractInner()Creates an instance of BackendContractInner 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.
-
url
Get the url property: Runtime Url of the Backend.- Returns:
- the url value.
-
withUrl
Set the url property: Runtime Url of the Backend.- Parameters:
url- the url value to set.- Returns:
- the BackendContractInner object itself.
-
protocol
Get the protocol property: Backend communication protocol.- Returns:
- the protocol value.
-
withProtocol
Set the protocol property: Backend communication protocol.- Parameters:
protocol- the protocol value to set.- Returns:
- the BackendContractInner object itself.
-
title
Get the title property: Backend Title.- Returns:
- the title value.
-
withTitle
Set the title property: Backend Title.- Parameters:
title- the title value to set.- Returns:
- the BackendContractInner object itself.
-
description
Get the description property: Backend Description.- Returns:
- the description value.
-
withDescription
Set the description property: Backend Description.- Parameters:
description- the description value to set.- Returns:
- the BackendContractInner object itself.
-
resourceId
Get 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.
-
withResourceId
Set 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.- Parameters:
resourceId- the resourceId value to set.- Returns:
- the BackendContractInner object itself.
-
properties
Get the properties property: Backend Properties contract.- Returns:
- the properties value.
-
withProperties
Set the properties property: Backend Properties contract.- Parameters:
properties- the properties value to set.- Returns:
- the BackendContractInner object itself.
-
credentials
Get the credentials property: Backend Credentials Contract Properties.- Returns:
- the credentials value.
-
withCredentials
Set the credentials property: Backend Credentials Contract Properties.- Parameters:
credentials- the credentials value to set.- Returns:
- the BackendContractInner object itself.
-
proxy
Get the proxy property: Backend gateway Contract Properties.- Returns:
- the proxy value.
-
withProxy
Set the proxy property: Backend gateway Contract Properties.- Parameters:
proxy- the proxy value to set.- Returns:
- the BackendContractInner object itself.
-
tls
Get the tls property: Backend TLS Properties.- Returns:
- the tls value.
-
withTls
Set the tls property: Backend TLS Properties.- Parameters:
tls- the tls value to set.- Returns:
- the BackendContractInner object itself.
-
circuitBreaker
Get the circuitBreaker property: Backend Circuit Breaker Configuration.- Returns:
- the circuitBreaker value.
-
withCircuitBreaker
Set the circuitBreaker property: Backend Circuit Breaker Configuration.- Parameters:
circuitBreaker- the circuitBreaker value to set.- Returns:
- the BackendContractInner object itself.
-
pool
Get the pool property: The pool property.- Returns:
- the pool value.
-
withPool
Set the pool property: The pool property.- Parameters:
pool- the pool value to set.- Returns:
- the BackendContractInner object itself.
-
typePropertiesType
Get the type property: Type of the backend. A backend can be either Single or Pool.- Returns:
- the type value.
-
withTypePropertiesType
Set the type property: Type of the backend. A backend can be either Single or Pool.- Parameters:
type- the type value to set.- Returns:
- the BackendContractInner 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
public static BackendContractInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BackendContractInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BackendContractInner 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 BackendContractInner.
-