com.sinch.sdk.domains.voice.models.svaml.MenuOption 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.voice.models.svaml;
import com.sinch.sdk.core.models.OptionalValue;
import com.sinch.sdk.models.DualToneMultiFrequency;
public class MenuOption {
private final OptionalValue dtfm;
private final OptionalValue action;
private MenuOption(
OptionalValue dtfm, OptionalValue action) {
this.dtfm = dtfm;
this.action = action;
}
public OptionalValue getDtfm() {
return dtfm;
}
public OptionalValue getAction() {
return action;
}
@Override
public String toString() {
return "MenuOption{" + "dtfm=" + dtfm + ", action=" + action + '}';
}
public static Builder builder() {
return new Builder();
}
public static class Builder {
OptionalValue dtfm = OptionalValue.empty();
OptionalValue action = OptionalValue.empty();
public Builder setDtfm(DualToneMultiFrequency dtfm) {
this.dtfm = OptionalValue.of(dtfm);
return this;
}
public Builder setAction(MenuOptionAction action) {
this.action = OptionalValue.of(action);
return this;
}
public MenuOption build() {
return new MenuOption(dtfm, action);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy