Interface ApprovalRuleSetCustomTypeAction
- All Superinterfaces:
ApprovalRuleUpdateAction
ApprovalRuleSetCustomTypeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ApprovalRuleSetCustomTypeAction approvalRuleSetCustomTypeAction = ApprovalRuleSetCustomTypeAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for ApprovalRuleSetCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ApprovalRuleSetCustomTypeActionbuilder
(ApprovalRuleSetCustomTypeAction template) create builder for ApprovalRuleSetCustomTypeAction instancedeepCopy
(ApprovalRuleSetCustomTypeAction template) factory method to create a deep copy of ApprovalRuleSetCustomTypeAction@Valid FieldContainer
Sets the Custom Fields fields for the ApprovalRule.@Valid TypeResourceIdentifier
getType()
Defines the Type that extends the ApprovalRule with Custom Fields.of()
factory methodof
(ApprovalRuleSetCustomTypeAction template) factory method to create a shallow copy ApprovalRuleSetCustomTypeActionvoid
setFields
(FieldContainer fields) Sets the Custom Fields fields for the ApprovalRule.void
Defines the Type that extends the ApprovalRule with Custom Fields.static com.fasterxml.jackson.core.type.TypeReference<ApprovalRuleSetCustomTypeAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.approval_rule.ApprovalRuleUpdateAction
getAction, withApprovalRuleUpdateAction
-
Field Details
-
SET_CUSTOM_TYPE
discriminator value for ApprovalRuleSetCustomTypeAction- See Also:
-
-
Method Details
-
getType
Defines the Type that extends the ApprovalRule with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ApprovalRule.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the ApprovalRule.
- Returns:
- fields
-
setType
Defines the Type that extends the ApprovalRule with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ApprovalRule.
- Parameters:
type
- value to be set
-
setFields
Sets the Custom Fields fields for the ApprovalRule.
- Parameters:
fields
- value to be set
-
of
factory method- Returns:
- instance of ApprovalRuleSetCustomTypeAction
-
of
factory method to create a shallow copy ApprovalRuleSetCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ApprovalRuleSetCustomTypeAction deepCopy(@Nullable ApprovalRuleSetCustomTypeAction template) factory method to create a deep copy of ApprovalRuleSetCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ApprovalRuleSetCustomTypeAction- Returns:
- builder
-
builder
create builder for ApprovalRuleSetCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withApprovalRuleSetCustomTypeAction
default <T> T withApprovalRuleSetCustomTypeAction(Function<ApprovalRuleSetCustomTypeAction, 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<ApprovalRuleSetCustomTypeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-