com.sinch.sdk.domains.voice.models.svaml.InstructionSetCookie 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;
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;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy