Interface AgentFileNotProcessedWarning
- All Superinterfaces:
WarningObject
Returned when an uploaded file in an Intake Agent API request could not be parsed.
Example to create an instance using the builder pattern
AgentFileNotProcessedWarning agentFileNotProcessedWarning = AgentFileNotProcessedWarning.builder()
.message("{message}")
.fileName("{fileName}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for AgentFileNotProcessedWarning -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for AgentFileNotProcessedWarningbuilder(AgentFileNotProcessedWarning template) create builder for AgentFileNotProcessedWarning instancecopyDeep()static AgentFileNotProcessedWarningdeepCopy(AgentFileNotProcessedWarning template) factory method to create a deep copy of AgentFileNotProcessedWarning@NotNull StringgetCode()Identifier for the type of warning.@NotNull StringName of the file that failed to parse.@NotNull StringPlain text description of why the file could not be parsed.static AgentFileNotProcessedWarningof()factory methodstatic AgentFileNotProcessedWarningof(AgentFileNotProcessedWarning template) factory method to create a shallow copy AgentFileNotProcessedWarningvoidsetFileName(String fileName) Name of the file that failed to parse.voidsetMessage(String message) Plain text description of why the file could not be parsed.static tools.jackson.core.type.TypeReference<AgentFileNotProcessedWarning>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.warning.WarningObject
withWarningObject
-
Field Details
-
FILE_NOT_PROCESSED
discriminator value for AgentFileNotProcessedWarning- See Also:
-
-
Method Details
-
getCode
Description copied from interface:WarningObjectIdentifier for the type of warning.
- Specified by:
getCodein interfaceWarningObject- Returns:
- code
-
getMessage
Plain text description of why the file could not be parsed.
- Specified by:
getMessagein interfaceWarningObject- Returns:
- message
-
getFileName
Name of the file that failed to parse.
- Returns:
- fileName
-
setMessage
Plain text description of why the file could not be parsed.
- Specified by:
setMessagein interfaceWarningObject- Parameters:
message- value to be set
-
setFileName
Name of the file that failed to parse.
- Parameters:
fileName- value to be set
-
of
factory method- Returns:
- instance of AgentFileNotProcessedWarning
-
of
factory method to create a shallow copy AgentFileNotProcessedWarning- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AgentFileNotProcessedWarning copyDeep()- Specified by:
copyDeepin interfaceWarningObject
-
deepCopy
@Nullable static AgentFileNotProcessedWarning deepCopy(@Nullable AgentFileNotProcessedWarning template) factory method to create a deep copy of AgentFileNotProcessedWarning- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AgentFileNotProcessedWarning- Returns:
- builder
-
builder
create builder for AgentFileNotProcessedWarning instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAgentFileNotProcessedWarning
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-