Class ReviewSetCustomTypeActionBuilder
java.lang.Object
com.commercetools.api.models.review.ReviewSetCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<ReviewSetCustomTypeAction>
public class ReviewSetCustomTypeActionBuilder
extends Object
implements Builder<ReviewSetCustomTypeAction>
ReviewSetCustomTypeActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ReviewSetCustomTypeAction reviewSetCustomTypeAction = ReviewSetCustomTypeAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ReviewSetCustomTypeAction with checking for non-null required valuesbuilds ReviewSetCustomTypeAction without checking for non-null required valuesfields
(FieldContainer fields) Sets the Custom Fields fields for the Review.Sets the Custom Fields fields for the Review.Sets the Custom Fields fields for the Review.getType()
Defines the Type that extends the Review with Custom Fields.of()
factory method for an instance of ReviewSetCustomTypeActionBuilderof
(ReviewSetCustomTypeAction template) create builder for ReviewSetCustomTypeAction instancetype
(TypeResourceIdentifier type) Defines the Type that extends the Review with Custom Fields.Defines the Type that extends the Review with Custom Fields.Sets the Custom Fields fields for the Review.Defines the Type that extends the Review with Custom Fields.
-
Constructor Details
-
ReviewSetCustomTypeActionBuilder
public ReviewSetCustomTypeActionBuilder()
-
-
Method Details
-
type
public ReviewSetCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the Review with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Review.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
withType
public ReviewSetCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the Review with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Review.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
type
Defines the Type that extends the Review with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Review.
- Parameters:
type
- value to be set- Returns:
- Builder
-
fields
public ReviewSetCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Sets the Custom Fields fields for the Review.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
withFields
public ReviewSetCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Sets the Custom Fields fields for the Review.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
fields
Sets the Custom Fields fields for the Review.
- Parameters:
fields
- value to be set- Returns:
- Builder
-
getType
Defines the Type that extends the Review with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Review.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the Review.
- Returns:
- fields
-
build
builds ReviewSetCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ReviewSetCustomTypeAction>
- Returns:
- ReviewSetCustomTypeAction
-
buildUnchecked
builds ReviewSetCustomTypeAction without checking for non-null required values- Returns:
- ReviewSetCustomTypeAction
-
of
factory method for an instance of ReviewSetCustomTypeActionBuilder- Returns:
- builder
-
of
create builder for ReviewSetCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-