Class InsufficientScopeErrorBuilder
java.lang.Object
com.commercetools.api.models.error.InsufficientScopeErrorBuilder
- All Implemented Interfaces:
Builder<InsufficientScopeError>
public class InsufficientScopeErrorBuilder
extends Object
implements Builder<InsufficientScopeError>
InsufficientScopeErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
InsufficientScopeError insufficientScopeError = InsufficientScopeError.builder()
.message("{message}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()builds InsufficientScopeError with checking for non-null required valuesbuilds InsufficientScopeError without checking for non-null required values"Insufficient scope.Error-specific additional fields."Insufficient scope.of()factory method for an instance of InsufficientScopeErrorBuilderof(InsufficientScopeError template) create builder for InsufficientScopeError instanceError-specific additional fields.
-
Constructor Details
-
InsufficientScopeErrorBuilder
public InsufficientScopeErrorBuilder()
-
-
Method Details
-
message
"Insufficient scope. One of the following scopes is missing:"- Parameters:
message- value to be set- Returns:
- Builder
-
values
Error-specific additional fields.
- Parameters:
values- properties to be set- Returns:
- Builder
-
addValue
Error-specific additional fields.
- Parameters:
key- property namevalue- property value- Returns:
- Builder
-
getMessage
"Insufficient scope. One of the following scopes is missing:"- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
build
builds InsufficientScopeError with checking for non-null required values- Specified by:
buildin interfaceBuilder<InsufficientScopeError>- Returns:
- InsufficientScopeError
-
buildUnchecked
builds InsufficientScopeError without checking for non-null required values- Returns:
- InsufficientScopeError
-
of
factory method for an instance of InsufficientScopeErrorBuilder- Returns:
- builder
-
of
create builder for InsufficientScopeError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-