public class CriteoApiError
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CriteoApiError.CodeEnum
A machine-readable error code string in kabab-case.
|
static class |
CriteoApiError.TypeEnum
A machine-readable code specifying error category
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SERIALIZED_NAME_CODE |
static java.lang.String |
SERIALIZED_NAME_DETAIL |
static java.lang.String |
SERIALIZED_NAME_INSTANCE |
static java.lang.String |
SERIALIZED_NAME_SOURCE |
static java.lang.String |
SERIALIZED_NAME_TITLE |
static java.lang.String |
SERIALIZED_NAME_TRACE_ID |
static java.lang.String |
SERIALIZED_NAME_TYPE |
| Constructor and Description |
|---|
CriteoApiError() |
| Modifier and Type | Method and Description |
|---|---|
CriteoApiError |
code(CriteoApiError.CodeEnum code) |
CriteoApiError |
detail(java.lang.String detail) |
boolean |
equals(java.lang.Object o) |
CriteoApiError.CodeEnum |
getCode()
A machine-readable error code string in kabab-case.
|
java.lang.String |
getDetail()
A human-readable explanation specific to this occurrence of the problem.
|
java.lang.String |
getInstance()
A URI reference that identifies the specific occurrence of the problem
|
java.util.Map<java.lang.String,java.lang.String> |
getSource()
A machine-readable structure to reference to the exact location(s) causing the error(s).
|
java.lang.String |
getTitle()
A short, human-readable summary of the problem type.
|
java.lang.String |
getTraceId()
The correlation ID provided by the gateway
|
CriteoApiError.TypeEnum |
getType()
A machine-readable code specifying error category
|
int |
hashCode() |
CriteoApiError |
instance(java.lang.String instance) |
CriteoApiError |
putSourceItem(java.lang.String key,
java.lang.String sourceItem) |
void |
setCode(CriteoApiError.CodeEnum code) |
void |
setDetail(java.lang.String detail) |
void |
setInstance(java.lang.String instance) |
void |
setSource(java.util.Map<java.lang.String,java.lang.String> source) |
void |
setTitle(java.lang.String title) |
void |
setTraceId(java.lang.String traceId) |
void |
setType(CriteoApiError.TypeEnum type) |
CriteoApiError |
source(java.util.Map<java.lang.String,java.lang.String> source) |
CriteoApiError |
title(java.lang.String title) |
java.lang.String |
toString() |
CriteoApiError |
traceId(java.lang.String traceId) |
CriteoApiError |
type(CriteoApiError.TypeEnum type) |
public static final java.lang.String SERIALIZED_NAME_TRACE_ID
public static final java.lang.String SERIALIZED_NAME_TYPE
public static final java.lang.String SERIALIZED_NAME_CODE
public static final java.lang.String SERIALIZED_NAME_INSTANCE
public static final java.lang.String SERIALIZED_NAME_TITLE
public static final java.lang.String SERIALIZED_NAME_DETAIL
public static final java.lang.String SERIALIZED_NAME_SOURCE
public CriteoApiError traceId(java.lang.String traceId)
@Nullable public java.lang.String getTraceId()
public void setTraceId(java.lang.String traceId)
public CriteoApiError type(CriteoApiError.TypeEnum type)
@Nullable public CriteoApiError.TypeEnum getType()
public void setType(CriteoApiError.TypeEnum type)
public CriteoApiError code(CriteoApiError.CodeEnum code)
@Nullable public CriteoApiError.CodeEnum getCode()
public void setCode(CriteoApiError.CodeEnum code)
public CriteoApiError instance(java.lang.String instance)
@Nullable public java.lang.String getInstance()
public void setInstance(java.lang.String instance)
public CriteoApiError title(java.lang.String title)
@Nullable public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public CriteoApiError detail(java.lang.String detail)
@Nullable public java.lang.String getDetail()
public void setDetail(java.lang.String detail)
public CriteoApiError source(java.util.Map<java.lang.String,java.lang.String> source)
public CriteoApiError putSourceItem(java.lang.String key, java.lang.String sourceItem)
@Nullable public java.util.Map<java.lang.String,java.lang.String> getSource()
public void setSource(java.util.Map<java.lang.String,java.lang.String> source)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2021. All rights reserved.