com.yoti.api.client.docs.session.create.resources.ResourceCreationContainer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yoti-sdk-api Show documentation
Show all versions of yoti-sdk-api Show documentation
Java SDK for simple integration with the Yoti platform
The newest version!
package com.yoti.api.client.docs.session.create.resources;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Container for creating resources at session creation.
*/
public class ResourceCreationContainer {
private static final String APPLICANT_PROFILE = "applicant_profile";
@JsonProperty(APPLICANT_PROFILE)
private final Map applicantProfile;
private ResourceCreationContainer(Map applicantProfile) {
this.applicantProfile = applicantProfile;
}
public static ResourceCreationContainer.Builder builder() {
return new ResourceCreationContainer.Builder();
}
/**
* The applicant profile resource to be created.
*
* @return the applicant profile fields
*/
public Map getApplicantProfile() {
return applicantProfile;
}
public static final class Builder {
private Map applicantProfile;
private Builder() {}
public Builder withApplicantProfile(Map applicantProfile) {
this.applicantProfile = applicantProfile;
return this;
}
public ResourceCreationContainer build() {
return new ResourceCreationContainer(applicantProfile);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy