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