All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sinch.sdk.domains.conversation.models.v1.credentials.BasicAuthCredentials Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
/*
 * Conversation API | Sinch
 *
 * OpenAPI document version: 1.0
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * Do not edit the class manually.
 */

package com.sinch.sdk.domains.conversation.models.v1.credentials;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;

/** It consists of a username and a password. */
@JsonDeserialize(builder = BasicAuthCredentialsImpl.Builder.class)
public interface BasicAuthCredentials {

  /**
   * Basic auth password.
   *
   * @return password
   */
  String getPassword();

  /**
   * Basic auth username.
   *
   * @return username
   */
  String getUsername();

  /**
   * Getting builder
   *
   * @return New Builder instance
   */
  static Builder builder() {
    return new BasicAuthCredentialsImpl.Builder();
  }

  /** Dedicated Builder */
  interface Builder {

    /**
     * see getter
     *
     * @param password see getter
     * @return Current builder
     * @see #getPassword
     */
    Builder setPassword(String password);

    /**
     * see getter
     *
     * @param username see getter
     * @return Current builder
     * @see #getUsername
     */
    Builder setUsername(String username);

    /**
     * Create instance
     *
     * @return The instance build with current builder values
     */
    BasicAuthCredentials build();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy