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 valuesvalue of message}value of resource}set the value to the messagestatic 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
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 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
-