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