Class AccessDeniedErrorBuilder
java.lang.Object
com.commercetools.importapi.models.errors.AccessDeniedErrorBuilder
- All Implemented Interfaces:
Builder<AccessDeniedError>
AccessDeniedErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AccessDeniedError accessDeniedError = AccessDeniedError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds AccessDeniedError with checking for non-null required valuesbuilds AccessDeniedError 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 AccessDeniedErrorBuilder
of()
factory method for an instance of AccessDeniedErrorBuilderstatic AccessDeniedErrorBuilder
of
(AccessDeniedError template) create builder for AccessDeniedError instance
-
Constructor Details
-
AccessDeniedErrorBuilder
public AccessDeniedErrorBuilder()
-
-
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 AccessDeniedError with checking for non-null required values- Specified by:
build
in interfaceBuilder<AccessDeniedError>
- Returns:
- AccessDeniedError
-
buildUnchecked
builds AccessDeniedError without checking for non-null required values- Returns:
- AccessDeniedError
-
of
factory method for an instance of AccessDeniedErrorBuilder- Returns:
- builder
-
of
create builder for AccessDeniedError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-