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