Class BackendAuthorizationHeaderCredentials

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

public final class BackendAuthorizationHeaderCredentials extends Object implements com.azure.json.JsonSerializable<BackendAuthorizationHeaderCredentials>
Authorization header information.
  • Constructor Details

    • BackendAuthorizationHeaderCredentials

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

    • scheme

      public String scheme()
      Get the scheme property: Authentication Scheme name.
      Returns:
      the scheme value.
    • withScheme

      public BackendAuthorizationHeaderCredentials withScheme(String scheme)
      Set the scheme property: Authentication Scheme name.
      Parameters:
      scheme - the scheme value to set.
      Returns:
      the BackendAuthorizationHeaderCredentials object itself.
    • parameter

      public String parameter()
      Get the parameter property: Authentication Parameter value.
      Returns:
      the parameter value.
    • withParameter

      public BackendAuthorizationHeaderCredentials withParameter(String parameter)
      Set the parameter property: Authentication Parameter value.
      Parameters:
      parameter - the parameter value to set.
      Returns:
      the BackendAuthorizationHeaderCredentials 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<BackendAuthorizationHeaderCredentials>
      Throws:
      IOException
    • fromJson

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