Interface AccessDeniedError
- All Superinterfaces:
ErrorObject
This is the generic error code for access denied. In case of a wrong scope, an InvalidScopeError will be returned.
Example to create an instance using the builder pattern
AccessDeniedError accessDeniedError = AccessDeniedError.builder()
.message("{message}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AccessDeniedErrorBuilder
builder()
builder factory method for AccessDeniedErrorstatic AccessDeniedErrorBuilder
builder
(AccessDeniedError template) create builder for AccessDeniedError instancestatic AccessDeniedError
deepCopy
(AccessDeniedError template) factory method to create a deep copy of AccessDeniedErrorstatic AccessDeniedError
of()
factory methodstatic AccessDeniedError
of
(AccessDeniedError template) factory method to create a shallow copy AccessDeniedErrorstatic com.fasterxml.jackson.core.type.TypeReference<AccessDeniedError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withAccessDeniedError
(Function<AccessDeniedError, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.errors.ErrorObject
getCode, getMessage, setMessage, withErrorObject
-
Field Details
-
ACCESS_DENIED
discriminator value for AccessDeniedError- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of AccessDeniedError
-
of
factory method to create a shallow copy AccessDeniedError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of AccessDeniedError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AccessDeniedError- Returns:
- builder
-
builder
create builder for AccessDeniedError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAccessDeniedError
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
-