com.sinch.sdk.domains.voice.models.svaml.MenuOptionAction 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 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