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