com.yoti.api.client.sandbox.profile.request.attribute.SandboxAttribute Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yoti-sdk-sandbox Show documentation
Show all versions of yoti-sdk-sandbox Show documentation
Java SDK for simple integration with the Sandbox Yoti platform
The newest version!
package com.yoti.api.client.sandbox.profile.request.attribute;
import java.util.Collections;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
public class SandboxAttribute {
private final String name;
private final String value;
private final String derivation;
private final List anchors;
private SandboxAttribute(String name,
String value,
String derivation,
List anchors) {
this.name = name;
this.value = value;
this.derivation = derivation;
this.anchors = anchors == null ? Collections.emptyList() : anchors;
}
@JsonProperty("name")
public String getName() {
return name;
}
@JsonProperty("value")
public String getValue() {
return value;
}
@JsonProperty("derivation")
public String getDerivation() {
return derivation;
}
@JsonProperty("anchors")
public List getAnchors() {
return anchors;
}
public static SandboxAttributeBuilder builder() {
return new SandboxAttributeBuilder();
}
public static class SandboxAttributeBuilder {
private String name;
private String value;
private String derivation;
private List anchors;
private SandboxAttributeBuilder() {
}
public SandboxAttributeBuilder withName(String name) {
this.name = name;
return this;
}
public SandboxAttributeBuilder withValue(String value) {
this.value = value;
return this;
}
public SandboxAttributeBuilder withDerivation(String derivation) {
this.derivation = derivation;
return this;
}
public SandboxAttributeBuilder withAnchors(List anchors) {
this.anchors = anchors;
return this;
}
public SandboxAttribute build() {
return new SandboxAttribute(name, value, derivation, anchors);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy