Interface StringField
- All Superinterfaces:
CustomField
A field with a string value.
Example to create an instance using the builder pattern
StringField stringField = StringField.builder()
.value("{value}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringFieldBuilder
builder()
builder factory method for StringFieldstatic StringFieldBuilder
builder
(StringField template) create builder for StringField instancestatic StringField
deepCopy
(StringField template) factory method to create a deep copy of StringField@NotNull String
getValue()
static StringField
of()
factory methodstatic StringField
of
(StringField template) factory method to create a shallow copy StringFieldvoid
set valuestatic com.fasterxml.jackson.core.type.TypeReference<StringField>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStringField
(Function<StringField, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.customfields.CustomField
getType, withCustomField
-
Field Details
-
STRING
discriminator value for StringField- See Also:
-
-
Method Details
-
getValue
- Returns:
- value
-
setValue
set value- Parameters:
value
- value to be set
-
of
factory method- Returns:
- instance of StringField
-
of
factory method to create a shallow copy StringField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of StringField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StringField- Returns:
- builder
-
builder
create builder for StringField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStringField
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
-