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
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringFieldBuilderbuilder()builder factory method for StringFieldstatic StringFieldBuilderbuilder(StringField template) create builder for StringField instancecopyDeep()static StringFielddeepCopy(StringField template) factory method to create a deep copy of StringField@NotNull StringgetValue()A text value.static StringFieldof()factory methodstatic StringFieldof(StringField template) factory method to create a shallow copy StringFieldvoidA text value.static com.fasterxml.jackson.core.type.TypeReference<StringField>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithStringField(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
A text value.
- Returns:
- value
-
setValue
A text 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
-
copyDeep
StringField copyDeep()- Specified by:
copyDeepin interfaceCustomField
-
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
-