Interface BooleanAttribute
- All Superinterfaces:
Attribute
This type represents an attribute whose value is either "true" or "false".
Example to create an instance using the builder pattern
BooleanAttribute booleanAttribute = BooleanAttribute.builder()
.value(true)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanAttributeBuilder
builder()
builder factory method for BooleanAttributestatic BooleanAttributeBuilder
builder
(BooleanAttribute template) create builder for BooleanAttribute instancestatic BooleanAttribute
deepCopy
(BooleanAttribute template) factory method to create a deep copy of BooleanAttribute@NotNull Boolean
getValue()
static BooleanAttribute
of()
factory methodstatic BooleanAttribute
of
(BooleanAttribute template) factory method to create a shallow copy BooleanAttributevoid
set valuestatic com.fasterxml.jackson.core.type.TypeReference<BooleanAttribute>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withBooleanAttribute
(Function<BooleanAttribute, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.productvariants.Attribute
getName, getType, setName, withAttribute
-
Field Details
-
BOOLEAN
discriminator value for BooleanAttribute- See Also:
-
-
Method Details
-
getValue
- Returns:
- value
-
setValue
set value- Parameters:
value
- value to be set
-
of
factory method- Returns:
- instance of BooleanAttribute
-
of
factory method to create a shallow copy BooleanAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of BooleanAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BooleanAttribute- Returns:
- builder
-
builder
create builder for BooleanAttribute instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBooleanAttribute
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-