Interface GraphQLAssociateMissingPermissionError
- All Superinterfaces:
GraphQLErrorObject
Returned when an Associate is missing a Permission on a B2B resource.
Example to create an instance using the builder pattern
GraphQLAssociateMissingPermissionError graphQLAssociateMissingPermissionError = GraphQLAssociateMissingPermissionError.builder()
.associate(associateBuilder -> associateBuilder)
.businessUnit(businessUnitBuilder -> businessUnitBuilder)
.plusPermissions(permissionsBuilder -> permissionsBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLAssociateMissingPermissionError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLAssociateMissingPermissionErrorcreate builder for GraphQLAssociateMissingPermissionError instancefactory method to create a deep copy of GraphQLAssociateMissingPermissionError@NotNull @Valid CustomerResourceIdentifier
ResourceIdentifier to the Associate that tried to perform the action.@Valid CustomerResourceIdentifier
ResourceIdentifier of the Associate on whose behalf the action is performed.@NotNull @Valid BusinessUnitResourceIdentifier
ResourceIdentifier to the BusinessUnit.@NotNull String
getCode()
Error identifier.@NotNull List<Permission>
The Permissions that the Associate performing the action lacks.of()
factory methodof
(GraphQLAssociateMissingPermissionError template) factory method to create a shallow copy GraphQLAssociateMissingPermissionErrorvoid
setAssociate
(CustomerResourceIdentifier associate) ResourceIdentifier to the Associate that tried to perform the action.void
setAssociateOnBehalf
(CustomerResourceIdentifier associateOnBehalf) ResourceIdentifier of the Associate on whose behalf the action is performed.void
setBusinessUnit
(BusinessUnitResourceIdentifier businessUnit) ResourceIdentifier to the BusinessUnit.void
setPermissions
(Permission... permissions) The Permissions that the Associate performing the action lacks.void
setPermissions
(List<Permission> permissions) The Permissions that the Associate performing the action lacks.static com.fasterxml.jackson.core.type.TypeReference<GraphQLAssociateMissingPermissionError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withGraphQLAssociateMissingPermissionError
(Function<GraphQLAssociateMissingPermissionError, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
ASSOCIATE_MISSING_PERMISSION
discriminator value for GraphQLAssociateMissingPermissionError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
getAssociate
ResourceIdentifier to the Associate that tried to perform the action.
- Returns:
- associate
-
getBusinessUnit
ResourceIdentifier to the BusinessUnit.
- Returns:
- businessUnit
-
getAssociateOnBehalf
ResourceIdentifier of the Associate on whose behalf the action is performed.
- Returns:
- associateOnBehalf
-
getPermissions
The Permissions that the Associate performing the action lacks. At least one of these Permissions is needed.
- Returns:
- permissions
-
setAssociate
ResourceIdentifier to the Associate that tried to perform the action.
- Parameters:
associate
- value to be set
-
setBusinessUnit
ResourceIdentifier to the BusinessUnit.
- Parameters:
businessUnit
- value to be set
-
setAssociateOnBehalf
ResourceIdentifier of the Associate on whose behalf the action is performed.
- Parameters:
associateOnBehalf
- value to be set
-
setPermissions
The Permissions that the Associate performing the action lacks. At least one of these Permissions is needed.
- Parameters:
permissions
- values to be set
-
setPermissions
The Permissions that the Associate performing the action lacks. At least one of these Permissions is needed.
- Parameters:
permissions
- values to be set
-
of
factory method- Returns:
- instance of GraphQLAssociateMissingPermissionError
-
of
factory method to create a shallow copy GraphQLAssociateMissingPermissionError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLAssociateMissingPermissionError deepCopy(@Nullable GraphQLAssociateMissingPermissionError template) factory method to create a deep copy of GraphQLAssociateMissingPermissionError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLAssociateMissingPermissionError- Returns:
- builder
-
builder
static GraphQLAssociateMissingPermissionErrorBuilder builder(GraphQLAssociateMissingPermissionError template) create builder for GraphQLAssociateMissingPermissionError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLAssociateMissingPermissionError
default <T> T withGraphQLAssociateMissingPermissionError(Function<GraphQLAssociateMissingPermissionError, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<GraphQLAssociateMissingPermissionError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-