Class BackendUpdateParameters

java.lang.Object
com.azure.resourcemanager.apimanagement.models.BackendUpdateParameters
All Implemented Interfaces:
com.azure.json.JsonSerializable<BackendUpdateParameters>

public final class BackendUpdateParameters extends Object implements com.azure.json.JsonSerializable<BackendUpdateParameters>
Backend update parameters.
  • Constructor Details

    • BackendUpdateParameters

      public BackendUpdateParameters()
      Creates an instance of BackendUpdateParameters class.
  • Method Details

    • url

      public String url()
      Get the url property: Runtime Url of the Backend.
      Returns:
      the url value.
    • withUrl

      public BackendUpdateParameters withUrl(String url)
      Set the url property: Runtime Url of the Backend.
      Parameters:
      url - the url value to set.
      Returns:
      the BackendUpdateParameters object itself.
    • protocol

      public BackendProtocol protocol()
      Get the protocol property: Backend communication protocol.
      Returns:
      the protocol value.
    • withProtocol

      public BackendUpdateParameters withProtocol(BackendProtocol protocol)
      Set the protocol property: Backend communication protocol.
      Parameters:
      protocol - the protocol value to set.
      Returns:
      the BackendUpdateParameters object itself.
    • title

      public String title()
      Get the title property: Backend Title.
      Returns:
      the title value.
    • withTitle

      public BackendUpdateParameters withTitle(String title)
      Set the title property: Backend Title.
      Parameters:
      title - the title value to set.
      Returns:
      the BackendUpdateParameters object itself.
    • description

      public String description()
      Get the description property: Backend Description.
      Returns:
      the description value.
    • withDescription

      public BackendUpdateParameters withDescription(String description)
      Set the description property: Backend Description.
      Parameters:
      description - the description value to set.
      Returns:
      the BackendUpdateParameters object itself.
    • resourceId

      public String 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

      public BackendUpdateParameters withResourceId(String resourceId)
      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 BackendUpdateParameters object itself.
    • properties

      public BackendProperties properties()
      Get the properties property: Backend Properties contract.
      Returns:
      the properties value.
    • withProperties

      public BackendUpdateParameters withProperties(BackendProperties properties)
      Set the properties property: Backend Properties contract.
      Parameters:
      properties - the properties value to set.
      Returns:
      the BackendUpdateParameters object itself.
    • credentials

      public BackendCredentialsContract credentials()
      Get the credentials property: Backend Credentials Contract Properties.
      Returns:
      the credentials value.
    • withCredentials

      public BackendUpdateParameters withCredentials(BackendCredentialsContract credentials)
      Set the credentials property: Backend Credentials Contract Properties.
      Parameters:
      credentials - the credentials value to set.
      Returns:
      the BackendUpdateParameters object itself.
    • proxy

      public BackendProxyContract 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 BackendUpdateParameters object itself.
    • tls

      public BackendTlsProperties 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 BackendUpdateParameters object itself.
    • circuitBreaker

      public BackendCircuitBreaker circuitBreaker()
      Get the circuitBreaker property: Backend Circuit Breaker Configuration.
      Returns:
      the circuitBreaker value.
    • withCircuitBreaker

      public BackendUpdateParameters withCircuitBreaker(BackendCircuitBreaker circuitBreaker)
      Set the circuitBreaker property: Backend Circuit Breaker Configuration.
      Parameters:
      circuitBreaker - the circuitBreaker value to set.
      Returns:
      the BackendUpdateParameters 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 BackendUpdateParameters object itself.
    • type

      public BackendType type()
      Get the type property: Type of the backend. A backend can be either Single or Pool.
      Returns:
      the type value.
    • withType

      public BackendUpdateParameters withType(BackendType type)
      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 BackendUpdateParameters object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<BackendUpdateParameters>
      Throws:
      IOException
    • fromJson

      public static BackendUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of BackendUpdateParameters from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of BackendUpdateParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the BackendUpdateParameters.