Package com.intercom.api.types
Class Error.ErrorsItem.Builder
- java.lang.Object
-
- com.intercom.api.types.Error.ErrorsItem.Builder
-
- All Implemented Interfaces:
Error.ErrorsItem._FinalStage,Error.ErrorsItem.CodeStage
- Enclosing class:
- Error.ErrorsItem
public static final class Error.ErrorsItem.Builder extends java.lang.Object implements Error.ErrorsItem.CodeStage, Error.ErrorsItem._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Error.ErrorsItembuild()Error.ErrorsItem._FinalStagecode(java.lang.String code)A string indicating the kind of error, used to further qualify the HTTP response codeError.ErrorsItem._FinalStagefield(java.lang.String field)Optional.Error.ErrorsItem._FinalStagefield(java.util.Optional<java.lang.String> field)Optional.Error.ErrorsItem.Builderfrom(Error.ErrorsItem other)Error.ErrorsItem._FinalStagemessage(java.lang.String message)Optional.Error.ErrorsItem._FinalStagemessage(java.util.Optional<java.lang.String> message)Optional.
-
-
-
Method Detail
-
from
public Error.ErrorsItem.Builder from(Error.ErrorsItem other)
- Specified by:
fromin interfaceError.ErrorsItem.CodeStage
-
code
public Error.ErrorsItem._FinalStage code(@NotNull java.lang.String code)
A string indicating the kind of error, used to further qualify the HTTP response code
A string indicating the kind of error, used to further qualify the HTTP response code
- Specified by:
codein interfaceError.ErrorsItem.CodeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
field
public Error.ErrorsItem._FinalStage field(java.lang.String field)
Optional. Used to identify a particular field or query parameter that was in error.
- Specified by:
fieldin interfaceError.ErrorsItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
field
public Error.ErrorsItem._FinalStage field(java.util.Optional<java.lang.String> field)
Optional. Used to identify a particular field or query parameter that was in error.
- Specified by:
fieldin interfaceError.ErrorsItem._FinalStage
-
message
public Error.ErrorsItem._FinalStage message(java.lang.String message)
Optional. Human readable description of the error.
- Specified by:
messagein interfaceError.ErrorsItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
message
public Error.ErrorsItem._FinalStage message(java.util.Optional<java.lang.String> message)
Optional. Human readable description of the error.
- Specified by:
messagein interfaceError.ErrorsItem._FinalStage
-
build
public Error.ErrorsItem build()
- Specified by:
buildin interfaceError.ErrorsItem._FinalStage
-
-