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

com.sinch.sdk.domains.voice.models.svaml.InstructionSendDtfm 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 InstructionSendDtfm extends Instruction {

  private final OptionalValue dtfm;

  private InstructionSendDtfm(OptionalValue dtfm) {
    this.dtfm = dtfm;
  }

  public OptionalValue getTDtfm() {
    return dtfm;
  }

  @Override
  public String toString() {
    return "InstructionSendDtfm{" + "dtfm=" + dtfm + "} " + super.toString();
  }

  public static Builder builder() {
    return new Builder<>();
  }

  public static class Builder> {

    OptionalValue dtfm = OptionalValue.empty();

    public Builder setDtfm(DualToneMultiFrequency dtfm) {
      this.dtfm = OptionalValue.of(dtfm);
      return this;
    }

    public InstructionSendDtfm build() {
      return new InstructionSendDtfm(dtfm);
    }

    @SuppressWarnings("unchecked")
    protected B self() {
      return (B) this;
    }
  }
}