Class ResourceCreationErrorBuilder
java.lang.Object
com.commercetools.importapi.models.errors.ResourceCreationErrorBuilder
- All Implemented Interfaces:
Builder<ResourceCreationError>
ResourceCreationErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ResourceCreationError resourceCreationError = ResourceCreationError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ResourceCreationError with checking for non-null required valuesbuilds ResourceCreationError without checking for non-null required valuesvalue of message}value of resource}set the value to the messagestatic ResourceCreationErrorBuilder
of()
factory method for an instance of ResourceCreationErrorBuilderstatic ResourceCreationErrorBuilder
of
(ResourceCreationError template) create builder for ResourceCreationError instanceset the value to the resource
-
Constructor Details
-
ResourceCreationErrorBuilder
public ResourceCreationErrorBuilder()
-
-
Method Details
-
message
set the value to the message- Parameters:
message
- value to be set- Returns:
- Builder
-
resource
set the value to the resource- Parameters:
resource
- value to be set- Returns:
- Builder
-
getMessage
value of message}- Returns:
- message
-
getResource
value of resource}- Returns:
- resource
-
build
builds ResourceCreationError with checking for non-null required values- Specified by:
build
in interfaceBuilder<ResourceCreationError>
- Returns:
- ResourceCreationError
-
buildUnchecked
builds ResourceCreationError without checking for non-null required values- Returns:
- ResourceCreationError
-
of
factory method for an instance of ResourceCreationErrorBuilder- Returns:
- builder
-
of
create builder for ResourceCreationError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-