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

com.sinch.sdk.domains.voice.models.svaml.MenuOption Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
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