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

com.truelayer.java.http.entities.Headers Maven / Gradle / Ivy

There is a newer version: 16.0.0
Show newest version
package com.truelayer.java.http.entities;

import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;

/**
 * Class representing custom TL headers that we allow our users to set.
 */
@Builder
@Getter
@ToString
@EqualsAndHashCode
public class Headers {
    private String idempotencyKey;

    private String signature;

    private String xForwardedFor;

    private String xDeviceUserAgent;

    private boolean enablePagination;

    /**
     * Custom builder for the Headers class that prevents setting the enablePagination field to false.
     */
    public static class HeadersBuilder {
        public HeadersBuilder enablePagination() {
            this.enablePagination = true;
            return this;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy