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