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

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

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

public class InstructionSetCookie extends Instruction {

  private final String key;
  private final String value;

  private InstructionSetCookie(String key, String value) {
    this.key = key;
    this.value = value;
  }

  public String getKey() {
    return key;
  }

  public String getValue() {
    return value;
  }

  @Override
  public String toString() {
    return "InstructionSetCookie{"
        + "key='"
        + key
        + '\''
        + ", value='"
        + value
        + '\''
        + "} "
        + super.toString();
  }

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

  public static class Builder> {

    String key;
    String value;

    public Builder setKey(String key) {
      this.key = key;
      return this;
    }

    public Builder setValue(String value) {
      this.value = value;
      return this;
    }

    public InstructionSetCookie build() {
      return new InstructionSetCookie(key, value);
    }

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