Class AcceleratorBasicAuthSetting

java.lang.Object
com.azure.resourcemanager.appplatform.models.AcceleratorAuthSetting
com.azure.resourcemanager.appplatform.models.AcceleratorBasicAuthSetting
All Implemented Interfaces:
com.azure.json.JsonSerializable<AcceleratorAuthSetting>

public final class AcceleratorBasicAuthSetting extends AcceleratorAuthSetting
Auth setting for basic auth.
  • Constructor Details

    • AcceleratorBasicAuthSetting

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

    • authType

      public String authType()
      Get the authType property: The type of the auth setting.
      Overrides:
      authType in class AcceleratorAuthSetting
      Returns:
      the authType value.
    • caCertResourceId

      public String caCertResourceId()
      Get the caCertResourceId property: Resource Id of CA certificate for https URL of Git repository.
      Returns:
      the caCertResourceId value.
    • withCaCertResourceId

      public AcceleratorBasicAuthSetting withCaCertResourceId(String caCertResourceId)
      Set the caCertResourceId property: Resource Id of CA certificate for https URL of Git repository.
      Parameters:
      caCertResourceId - the caCertResourceId value to set.
      Returns:
      the AcceleratorBasicAuthSetting object itself.
    • username

      public String username()
      Get the username property: Username of git repository basic auth.
      Returns:
      the username value.
    • withUsername

      public AcceleratorBasicAuthSetting withUsername(String username)
      Set the username property: Username of git repository basic auth.
      Parameters:
      username - the username value to set.
      Returns:
      the AcceleratorBasicAuthSetting object itself.
    • password

      public String password()
      Get the password property: Password of git repository basic auth.
      Returns:
      the password value.
    • withPassword

      public AcceleratorBasicAuthSetting withPassword(String password)
      Set the password property: Password of git repository basic auth.
      Parameters:
      password - the password value to set.
      Returns:
      the AcceleratorBasicAuthSetting object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class AcceleratorAuthSetting
      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<AcceleratorAuthSetting>
      Overrides:
      toJson in class AcceleratorAuthSetting
      Throws:
      IOException
    • fromJson

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