Class InvalidScopeErrorBuilder
java.lang.Object
com.commercetools.importapi.models.errors.InvalidScopeErrorBuilder
- All Implemented Interfaces:
Builder<InvalidScopeError>
InvalidScopeErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
InvalidScopeError invalidScopeError = InvalidScopeError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds InvalidScopeError with checking for non-null required valuesbuilds InvalidScopeError without checking for non-null required valuesA plain language description of the cause of an error.A plain language description of the cause of an error.static InvalidScopeErrorBuilder
of()
factory method for an instance of InvalidScopeErrorBuilderstatic InvalidScopeErrorBuilder
of
(InvalidScopeError template) create builder for InvalidScopeError instance
-
Constructor Details
-
InvalidScopeErrorBuilder
public InvalidScopeErrorBuilder()
-
-
Method Details
-
message
A plain language description of the cause of an error.
- Parameters:
message
- value to be set- Returns:
- Builder
-
getMessage
A plain language description of the cause of an error.
- Returns:
- message
-
build
builds InvalidScopeError with checking for non-null required values- Specified by:
build
in interfaceBuilder<InvalidScopeError>
- Returns:
- InvalidScopeError
-
buildUnchecked
builds InvalidScopeError without checking for non-null required values- Returns:
- InvalidScopeError
-
of
factory method for an instance of InvalidScopeErrorBuilder- Returns:
- builder
-
of
create builder for InvalidScopeError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-