
com.truelayer.java.http.entities.Headers Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truelayer-java Show documentation
Show all versions of truelayer-java Show documentation
TrueLayer Java SDK for https://truelayer.com
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 - 2025 Weber Informatics LLC | Privacy Policy