Class QuoteSetCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<QuoteSetCustomTypeAction>
Example to create an instance using the builder pattern
QuoteSetCustomTypeAction quoteSetCustomTypeAction = QuoteSetCustomTypeAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds QuoteSetCustomTypeAction with checking for non-null required valuesbuilds QuoteSetCustomTypeAction without checking for non-null required valuesfields(FieldContainer fields) Object containing the Custom Fields fields for the Quote.Object containing the Custom Fields fields for the Quote.Object containing 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.Object containing 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) Object containing the Custom Fields fields for the Quote.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Parameters:
builder- function to build the fields value- Returns:
- Builder
-
withFields
public QuoteSetCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Object containing the Custom Fields fields for the Quote.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Parameters:
builder- function to build the fields value- Returns:
- Builder
-
fields
Object containing the Custom Fields fields for the Quote.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- 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
Object containing the Custom Fields fields for the Quote.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Returns:
- fields
-
build
builds QuoteSetCustomTypeAction with checking for non-null required values- Specified by:
buildin 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
-