com.sinch.sdk.domains.sms.models.requests.GroupAutoUpdateKeywordRequestParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sinch-sdk-java Show documentation
Show all versions of sinch-sdk-java Show documentation
SDK providing a Java API for the Sinch REST APIs.
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