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

com.sinch.sdk.domains.sms.models.requests.GroupAutoUpdateKeywordRequestParameters Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package com.sinch.sdk.domains.sms.models.requests;

import com.sinch.sdk.core.models.OptionalValue;

public class GroupAutoUpdateKeywordRequestParameters {

  private final OptionalValue firstWord;
  private final OptionalValue secondWord;

  /**
   * @param firstWord Opt-in keyword like "JOIN" if _auto_update.to_ is dedicated long/short number
   *     or unique brand keyword like "Sinch" if it is a shared short code.
   * @param secondWord Opt-in keyword like "JOIN" if _auto_update.to_ is shared short code.
   */
  private GroupAutoUpdateKeywordRequestParameters(
      OptionalValue firstWord, OptionalValue secondWord) {
    this.firstWord = firstWord;
    this.secondWord = secondWord;
  }

  public OptionalValue getFirstWord() {
    return firstWord;
  }

  public OptionalValue getSecondWord() {
    return secondWord;
  }

  @Override
  public String toString() {
    return "GroupAutoUpdateKeywordRequestParameters{"
        + "firstWord='"
        + firstWord
        + '\''
        + ", secondWord='"
        + secondWord
        + '\''
        + '}';
  }

  public static Builder builder() {
    return new Builder();
  }

  public static class Builder {

    OptionalValue firstWord = OptionalValue.empty();
    OptionalValue secondWord = OptionalValue.empty();

    private Builder() {}

    public Builder setFirstWord(String firstWord) {
      this.firstWord = OptionalValue.of(firstWord);
      return this;
    }

    public Builder setSecondWord(String secondWord) {
      this.secondWord = OptionalValue.of(secondWord);
      return this;
    }

    public GroupAutoUpdateKeywordRequestParameters build() {
      return new GroupAutoUpdateKeywordRequestParameters(firstWord, secondWord);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy