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

com.yoti.api.client.docs.session.create.ImportTokenPayload Maven / Gradle / Ivy

The newest version!
package com.yoti.api.client.docs.session.create;

import com.fasterxml.jackson.annotation.JsonProperty;

public class ImportTokenPayload {

    @JsonProperty("ttl")
    private Integer ttl;

    ImportTokenPayload(Integer ttl) {
        this.ttl = ttl;
    }

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

    public Integer getTtl() {
        return ttl;
    }

    public static class Builder {

        private Integer ttl;

        private Builder() { }

        /**
         * Set import token time-to-live.
         *
         * @param ttl the time-to-live value
         * @return the builder
         */
        public Builder withTtl(int ttl) {
            this.ttl = ttl;
            return this;
        }

        public ImportTokenPayload build() {
            return new ImportTokenPayload(ttl);
        }

    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy