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