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

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

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

import java.util.Objects;

/** Navigates to the named menu */
public class MenuOptionAction {

  private final MenuOptionActionType type;
  private final String id;

  private MenuOptionAction(MenuOptionActionType type, String id) {
    Objects.requireNonNull(type, "Action type cannot be null");
    this.type = type;
    this.id = id;
  }

  public String getId() {
    return id;
  }

  public MenuOptionActionType getType() {
    return type;
  }

  public static MenuOptionAction from(MenuOptionActionType type, String id) {
    return new MenuOptionAction(type, id);
  }

  @Override
  public String toString() {
    return "MenuOptionAction{" + "type=" + type + ", id='" + id + '\'' + '}';
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy