Class CustomerSetCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<CustomerSetCustomTypeAction>
Example to create an instance using the builder pattern
CustomerSetCustomTypeAction customerSetCustomTypeAction = CustomerSetCustomTypeAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CustomerSetCustomTypeAction with checking for non-null required valuesbuilds CustomerSetCustomTypeAction without checking for non-null required valuesfields(FieldContainer fields) Object containing the Custom Fields fields for the Customer.Object containing the Custom Fields fields for the Customer.Object containing the Custom Fields fields for the Customer.getType()Defines the Type that extends the Customer with Custom Fields.of()factory method for an instance of CustomerSetCustomTypeActionBuilderof(CustomerSetCustomTypeAction template) create builder for CustomerSetCustomTypeAction instancetype(TypeResourceIdentifier type) Defines the Type that extends the Customer with Custom Fields.Defines the Type that extends the Customer with Custom Fields.Object containing the Custom Fields fields for the Customer.Defines the Type that extends the Customer with Custom Fields.
-
Constructor Details
-
CustomerSetCustomTypeActionBuilder
public CustomerSetCustomTypeActionBuilder()
-
-
Method Details
-
type
public CustomerSetCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the Customer with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Customer.
- Parameters:
builder- function to build the type value- Returns:
- Builder
-
withType
public CustomerSetCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the Customer with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Customer.
- Parameters:
builder- function to build the type value- Returns:
- Builder
-
type
Defines the Type that extends the Customer with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Customer.
- Parameters:
type- value to be set- Returns:
- Builder
-
fields
public CustomerSetCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Object containing the Custom Fields fields for the Customer.
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 CustomerSetCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Object containing the Custom Fields fields for the Customer.
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 Customer.
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 Customer with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Customer.
- Returns:
- type
-
getFields
Object containing the Custom Fields fields for the Customer.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Returns:
- fields
-
build
builds CustomerSetCustomTypeAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<CustomerSetCustomTypeAction>- Returns:
- CustomerSetCustomTypeAction
-
buildUnchecked
builds CustomerSetCustomTypeAction without checking for non-null required values- Returns:
- CustomerSetCustomTypeAction
-
of
factory method for an instance of CustomerSetCustomTypeActionBuilder- Returns:
- builder
-
of
create builder for CustomerSetCustomTypeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-