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 valuesvalue of message}set the value to the messagestatic 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
set the value to the message- Parameters:
message
- value to be set- Returns:
- Builder
-
getMessage
value of message}- 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
-