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

com.sinch.sdk.domains.conversation.models.v1.credentials.LineCredentials 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;

/**
 * If you are including the LINE channel in the channel_identifier property, you must
 * include this object.
 */
@JsonDeserialize(builder = LineCredentialsImpl.Builder.class)
public interface LineCredentials extends ChannelCredentials {

  /**
   * The token for the LINE channel to which you are connecting.
   *
   * @return token
   */
  String getToken();

  /**
   * The secret for the LINE channel to which you are connecting.
   *
   * @return secret
   */
  String getSecret();

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

  /** Dedicated Builder */
  interface Builder {

    /**
     * see getter
     *
     * @param token see getter
     * @return Current builder
     * @see #getToken
     */
    Builder setToken(String token);

    /**
     * see getter
     *
     * @param secret see getter
     * @return Current builder
     * @see #getSecret
     */
    Builder setSecret(String secret);

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy