Interface AttributeBooleanType
- All Superinterfaces:
AttributeType
- All Known Implementing Classes:
AttributeBooleanTypeImpl
Attribute type for Boolean values. Valid values for the Attribute are true
and false
(JSON Boolean).
Example to create an instance using the builder pattern
AttributeBooleanType attributeBooleanType = AttributeBooleanType.builder()
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeBooleanTypeBuilder
builder()
builder factory method for AttributeBooleanTypestatic AttributeBooleanTypeBuilder
builder
(AttributeBooleanType template) create builder for AttributeBooleanType instancestatic AttributeBooleanType
deepCopy
(AttributeBooleanType template) factory method to create a deep copy of AttributeBooleanTypestatic AttributeBooleanType
of()
factory methodstatic AttributeBooleanType
of
(AttributeBooleanType template) factory method to create a shallow copy AttributeBooleanTypestatic com.fasterxml.jackson.core.type.TypeReference<AttributeBooleanType>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withAttributeBooleanType
(Function<AttributeBooleanType, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.product_type.AttributeType
getName, withAttributeType
-
Field Details
-
BOOLEAN
discriminator value for AttributeBooleanType- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of AttributeBooleanType
-
of
factory method to create a shallow copy AttributeBooleanType- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of AttributeBooleanType- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AttributeBooleanType- Returns:
- builder
-
builder
create builder for AttributeBooleanType instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAttributeBooleanType
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
-