Class Error.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.types.Error.Builder
-
- All Implemented Interfaces:
Error._FinalStage,Error.TypeStage
- Enclosing class:
- Error
public static final class Error.Builder extends java.lang.Object implements Error.TypeStage, Error._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Error._FinalStageaddAllErrors(java.util.List<Error.ErrorsItem> errors)An array of one or more error objectsError._FinalStageaddErrors(Error.ErrorsItem errors)An array of one or more error objectsErrorbuild()Error._FinalStageerrors(java.util.List<Error.ErrorsItem> errors)An array of one or more error objectsError.Builderfrom(Error other)Error._FinalStagerequestId(java.lang.String requestId)Error._FinalStagerequestId(java.util.Optional<java.lang.String> requestId)Error._FinalStagetype(java.lang.String type)The type is error.list
-
-
-
Method Detail
-
from
public Error.Builder from(Error other)
- Specified by:
fromin interfaceError.TypeStage
-
type
public Error._FinalStage type(@NotNull java.lang.String type)
The type is error.list
The type is error.list
- Specified by:
typein interfaceError.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addAllErrors
public Error._FinalStage addAllErrors(java.util.List<Error.ErrorsItem> errors)
An array of one or more error objects
- Specified by:
addAllErrorsin interfaceError._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addErrors
public Error._FinalStage addErrors(Error.ErrorsItem errors)
An array of one or more error objects
- Specified by:
addErrorsin interfaceError._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
errors
public Error._FinalStage errors(java.util.List<Error.ErrorsItem> errors)
An array of one or more error objects
- Specified by:
errorsin interfaceError._FinalStage
-
requestId
public Error._FinalStage requestId(java.lang.String requestId)
- Specified by:
requestIdin interfaceError._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
requestId
public Error._FinalStage requestId(java.util.Optional<java.lang.String> requestId)
- Specified by:
requestIdin interfaceError._FinalStage
-
build
public Error build()
- Specified by:
buildin interfaceError._FinalStage
-
-