Class ChannelSetAddressCustomTypeActionBuilder
java.lang.Object
com.commercetools.api.models.channel.ChannelSetAddressCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<ChannelSetAddressCustomTypeAction>
public class ChannelSetAddressCustomTypeActionBuilder
extends Object
implements Builder<ChannelSetAddressCustomTypeAction>
ChannelSetAddressCustomTypeActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChannelSetAddressCustomTypeAction channelSetAddressCustomTypeAction = ChannelSetAddressCustomTypeAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ChannelSetAddressCustomTypeAction with checking for non-null required valuesbuilds ChannelSetAddressCustomTypeAction without checking for non-null required valuesfields
(FieldContainer fields) Sets the Custom Fields fields for theaddress
.Sets the Custom Fields fields for theaddress
.Sets the Custom Fields fields for theaddress
.getType()
Defines the Type that extends theaddress
with Custom Fields.of()
factory method for an instance of ChannelSetAddressCustomTypeActionBuilderof
(ChannelSetAddressCustomTypeAction template) create builder for ChannelSetAddressCustomTypeAction instancetype
(TypeResourceIdentifier type) Defines the Type that extends theaddress
with Custom Fields.Defines the Type that extends theaddress
with Custom Fields.Sets the Custom Fields fields for theaddress
.Defines the Type that extends theaddress
with Custom Fields.
-
Constructor Details
-
ChannelSetAddressCustomTypeActionBuilder
public ChannelSetAddressCustomTypeActionBuilder()
-
-
Method Details
-
type
public ChannelSetAddressCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the
address
with Custom Fields. If absent, any existing Type and Custom Fields are removed from theaddress
.- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
withType
public ChannelSetAddressCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the
address
with Custom Fields. If absent, any existing Type and Custom Fields are removed from theaddress
.- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
type
Defines the Type that extends the
address
with Custom Fields. If absent, any existing Type and Custom Fields are removed from theaddress
.- Parameters:
type
- value to be set- Returns:
- Builder
-
fields
public ChannelSetAddressCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Sets the Custom Fields fields for the
address
.- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
withFields
public ChannelSetAddressCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Sets the Custom Fields fields for the
address
.- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
fields
Sets the Custom Fields fields for the
address
.- Parameters:
fields
- value to be set- Returns:
- Builder
-
getType
Defines the Type that extends the
address
with Custom Fields. If absent, any existing Type and Custom Fields are removed from theaddress
.- Returns:
- type
-
getFields
Sets the Custom Fields fields for the
address
.- Returns:
- fields
-
build
builds ChannelSetAddressCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ChannelSetAddressCustomTypeAction>
- Returns:
- ChannelSetAddressCustomTypeAction
-
buildUnchecked
builds ChannelSetAddressCustomTypeAction without checking for non-null required values- Returns:
- ChannelSetAddressCustomTypeAction
-
of
factory method for an instance of ChannelSetAddressCustomTypeActionBuilder- Returns:
- builder
-
of
public static ChannelSetAddressCustomTypeActionBuilder of(ChannelSetAddressCustomTypeAction template) create builder for ChannelSetAddressCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-