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

com.sinch.sdk.domains.conversation.templates.models.v1.TemplateTranslation Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
/*
 * Template Management API
 *
 * OpenAPI document version: 457aacb5
 * 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.templates.models.v1;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.sinch.sdk.domains.conversation.templates.models.TemplateVariable;
import java.time.Instant;
import java.util.List;

/** TemplateTranslation */
@JsonDeserialize(builder = TemplateTranslationImpl.Builder.class)
public interface TemplateTranslation {

  /**
   * This is the definition of the template with the language specified in the language_code field.
   *
   * @return content
   */
  String getContent();

  /**
   * Timestamp when the translation was created.
   *
   * @return createTime
   */
  Instant getCreateTime();

  /**
   * The BCP-47 language code, such as en-US or sr-Latn. For more
   * information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
   *
   * @return languageCode
   */
  String getLanguageCode();

  /**
   * Timestamp of when the translation was updated.
   *
   * @return updateTime
   */
  Instant getUpdateTime();

  /**
   * List of expected variables. Can be used for request validation.
   *
   * @return variables
   */
  List getVariables();

  /**
   * The version of template.
   *
   * @return version
   */
  String getVersion();

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

  /** Dedicated Builder */
  interface Builder {

    /**
     * see getter
     *
     * @param content see getter
     * @return Current builder
     * @see #getContent
     */
    Builder setContent(String content);

    /**
     * see getter
     *
     * @param createTime see getter
     * @return Current builder
     * @see #getCreateTime
     */
    Builder setCreateTime(Instant createTime);

    /**
     * see getter
     *
     * @param languageCode see getter
     * @return Current builder
     * @see #getLanguageCode
     */
    Builder setLanguageCode(String languageCode);

    /**
     * see getter
     *
     * @param updateTime see getter
     * @return Current builder
     * @see #getUpdateTime
     */
    Builder setUpdateTime(Instant updateTime);

    /**
     * see getter
     *
     * @param variables see getter
     * @return Current builder
     * @see #getVariables
     */
    Builder setVariables(List variables);

    /**
     * see getter
     *
     * @param version see getter
     * @return Current builder
     * @see #getVersion
     */
    Builder setVersion(String version);

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy