Interface ApprovalFlowSetCustomTypeAction
- All Superinterfaces:
ApprovalFlowUpdateAction
ApprovalFlowSetCustomTypeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ApprovalFlowSetCustomTypeAction approvalFlowSetCustomTypeAction = ApprovalFlowSetCustomTypeAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ApprovalFlowSetCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ApprovalFlowSetCustomTypeActionbuilder(ApprovalFlowSetCustomTypeAction template) create builder for ApprovalFlowSetCustomTypeAction instancecopyDeep()deepCopy(ApprovalFlowSetCustomTypeAction template) factory method to create a deep copy of ApprovalFlowSetCustomTypeAction@Valid FieldContainerSets the Custom Fields fields for the ApprovalFlow.@Valid TypeResourceIdentifiergetType()Defines the Type that extends the ApprovalFlow with Custom Fields.of()factory methodof(ApprovalFlowSetCustomTypeAction template) factory method to create a shallow copy ApprovalFlowSetCustomTypeActionvoidsetFields(FieldContainer fields) Sets the Custom Fields fields for the ApprovalFlow.voidDefines the Type that extends the ApprovalFlow with Custom Fields.static com.fasterxml.jackson.core.type.TypeReference<ApprovalFlowSetCustomTypeAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.approval_flow.ApprovalFlowUpdateAction
getAction, withApprovalFlowUpdateAction
-
Field Details
-
SET_CUSTOM_TYPE
discriminator value for ApprovalFlowSetCustomTypeAction- See Also:
-
-
Method Details
-
getType
Defines the Type that extends the ApprovalFlow with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ApprovalFlow.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the ApprovalFlow.
- Returns:
- fields
-
setType
Defines the Type that extends the ApprovalFlow with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ApprovalFlow.
- Parameters:
type- value to be set
-
setFields
Sets the Custom Fields fields for the ApprovalFlow.
- Parameters:
fields- value to be set
-
of
factory method- Returns:
- instance of ApprovalFlowSetCustomTypeAction
-
of
factory method to create a shallow copy ApprovalFlowSetCustomTypeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ApprovalFlowSetCustomTypeAction copyDeep()- Specified by:
copyDeepin interfaceApprovalFlowUpdateAction
-
deepCopy
@Nullable static ApprovalFlowSetCustomTypeAction deepCopy(@Nullable ApprovalFlowSetCustomTypeAction template) factory method to create a deep copy of ApprovalFlowSetCustomTypeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ApprovalFlowSetCustomTypeAction- Returns:
- builder
-
builder
create builder for ApprovalFlowSetCustomTypeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withApprovalFlowSetCustomTypeAction
default <T> T withApprovalFlowSetCustomTypeAction(Function<ApprovalFlowSetCustomTypeAction, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<ApprovalFlowSetCustomTypeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-