Class ReviewSetTargetActionBuilder
java.lang.Object
com.commercetools.api.models.review.ReviewSetTargetActionBuilder
- All Implemented Interfaces:
Builder<ReviewSetTargetAction>
ReviewSetTargetActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ReviewSetTargetAction reviewSetTargetAction = ReviewSetTargetAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ReviewSetTargetAction with checking for non-null required valuesbuilds ReviewSetTargetAction without checking for non-null required valuesValue to set, specified as ProductResourceIdentifier or ChannelResourceIdentifier, respectively.static ReviewSetTargetActionBuilder
of()
factory method for an instance of ReviewSetTargetActionBuilderstatic ReviewSetTargetActionBuilder
of
(ReviewSetTargetAction template) create builder for ReviewSetTargetAction instanceValue to set, specified as ProductResourceIdentifier or ChannelResourceIdentifier, respectively.
-
Constructor Details
-
ReviewSetTargetActionBuilder
public ReviewSetTargetActionBuilder()
-
-
Method Details
-
target
Value to set, specified as ProductResourceIdentifier or ChannelResourceIdentifier, respectively. If empty, any existing value will be removed.
- Parameters:
target
- value to be set- Returns:
- Builder
-
getTarget
Value to set, specified as ProductResourceIdentifier or ChannelResourceIdentifier, respectively. If empty, any existing value will be removed.
- Returns:
- target
-
build
builds ReviewSetTargetAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ReviewSetTargetAction>
- Returns:
- ReviewSetTargetAction
-
buildUnchecked
builds ReviewSetTargetAction without checking for non-null required values- Returns:
- ReviewSetTargetAction
-
of
factory method for an instance of ReviewSetTargetActionBuilder- Returns:
- builder
-
of
create builder for ReviewSetTargetAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-