Class BackendCredentialsContract

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

public final class BackendCredentialsContract extends Object implements com.azure.json.JsonSerializable<BackendCredentialsContract>
Details of the Credentials used to connect to Backend.
  • Constructor Details

    • BackendCredentialsContract

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

    • certificateIds

      public List<String> certificateIds()
      Get the certificateIds property: List of Client Certificate Ids.
      Returns:
      the certificateIds value.
    • withCertificateIds

      public BackendCredentialsContract withCertificateIds(List<String> certificateIds)
      Set the certificateIds property: List of Client Certificate Ids.
      Parameters:
      certificateIds - the certificateIds value to set.
      Returns:
      the BackendCredentialsContract object itself.
    • certificate

      public List<String> certificate()
      Get the certificate property: List of Client Certificate Thumbprints. Will be ignored if certificatesIds are provided.
      Returns:
      the certificate value.
    • withCertificate

      public BackendCredentialsContract withCertificate(List<String> certificate)
      Set the certificate property: List of Client Certificate Thumbprints. Will be ignored if certificatesIds are provided.
      Parameters:
      certificate - the certificate value to set.
      Returns:
      the BackendCredentialsContract object itself.
    • query

      public Map<String,List<String>> query()
      Get the query property: Query Parameter description.
      Returns:
      the query value.
    • withQuery

      public BackendCredentialsContract withQuery(Map<String,List<String>> query)
      Set the query property: Query Parameter description.
      Parameters:
      query - the query value to set.
      Returns:
      the BackendCredentialsContract object itself.
    • headerProperty

      public Map<String,List<String>> headerProperty()
      Get the headerProperty property: Header Parameter description.
      Returns:
      the headerProperty value.
    • withHeaderProperty

      public BackendCredentialsContract withHeaderProperty(Map<String,List<String>> headerProperty)
      Set the headerProperty property: Header Parameter description.
      Parameters:
      headerProperty - the headerProperty value to set.
      Returns:
      the BackendCredentialsContract object itself.
    • authorization

      public BackendAuthorizationHeaderCredentials authorization()
      Get the authorization property: Authorization header authentication.
      Returns:
      the authorization value.
    • withAuthorization

      public BackendCredentialsContract withAuthorization(BackendAuthorizationHeaderCredentials authorization)
      Set the authorization property: Authorization header authentication.
      Parameters:
      authorization - the authorization value to set.
      Returns:
      the BackendCredentialsContract 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<BackendCredentialsContract>
      Throws:
      IOException
    • fromJson

      public static BackendCredentialsContract fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of BackendCredentialsContract from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of BackendCredentialsContract 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 BackendCredentialsContract.