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

com.yoti.api.client.identity.extension.BasicExtensionBuilder Maven / Gradle / Ivy

The newest version!
package com.yoti.api.client.identity.extension;

public class BasicExtensionBuilder implements ExtensionBuilder {

    private String type;
    private Object content;

    public BasicExtensionBuilder withType(String type) {
        this.type = type;
        return this;
    }

    public BasicExtensionBuilder withContent(Object content) {
        this.content = content;
        return this;
    }

    public String getType() {
        return type;
    }

    public Object getContent() {
        return content;
    }

    @Override
    public Extension build() {
        return new Extension<>(type, content);
    }

}