Class TypeSetDescriptionActionBuilder
java.lang.Object
com.commercetools.api.models.type.TypeSetDescriptionActionBuilder
- All Implemented Interfaces:
Builder<TypeSetDescriptionAction>
public class TypeSetDescriptionActionBuilder
extends Object
implements Builder<TypeSetDescriptionAction>
TypeSetDescriptionActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TypeSetDescriptionAction typeSetDescriptionAction = TypeSetDescriptionAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds TypeSetDescriptionAction with checking for non-null required valuesbuilds TypeSetDescriptionAction without checking for non-null required valuesdescription
(LocalizedString description) Value to set.Value to set.Value to set.of()
factory method for an instance of TypeSetDescriptionActionBuilderof
(TypeSetDescriptionAction template) create builder for TypeSetDescriptionAction instanceValue to set.
-
Constructor Details
-
TypeSetDescriptionActionBuilder
public TypeSetDescriptionActionBuilder()
-
-
Method Details
-
description
public TypeSetDescriptionActionBuilder description(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
withDescription
public TypeSetDescriptionActionBuilder withDescription(Function<LocalizedStringBuilder, LocalizedString> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
description
Value to set. If empty, any existing value will be removed.
- Parameters:
description
- value to be set- Returns:
- Builder
-
getDescription
Value to set. If empty, any existing value will be removed.
- Returns:
- description
-
build
builds TypeSetDescriptionAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<TypeSetDescriptionAction>
- Returns:
- TypeSetDescriptionAction
-
buildUnchecked
builds TypeSetDescriptionAction without checking for non-null required values- Returns:
- TypeSetDescriptionAction
-
of
factory method for an instance of TypeSetDescriptionActionBuilder- Returns:
- builder
-
of
create builder for TypeSetDescriptionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-