Class ChannelSetAddressCustomFieldActionBuilder
java.lang.Object
com.commercetools.api.models.channel.ChannelSetAddressCustomFieldActionBuilder
- All Implemented Interfaces:
Builder<ChannelSetAddressCustomFieldAction>
public class ChannelSetAddressCustomFieldActionBuilder
extends Object
implements Builder<ChannelSetAddressCustomFieldAction>
ChannelSetAddressCustomFieldActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChannelSetAddressCustomFieldAction channelSetAddressCustomFieldAction = ChannelSetAddressCustomFieldAction.builder()
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ChannelSetAddressCustomFieldAction with checking for non-null required valuesbuilds ChannelSetAddressCustomFieldAction without checking for non-null required valuesgetName()
Name of the Custom Field.getValue()
Specifies the format of the value of the Custom Field defined byname
.Name of the Custom Field.of()
factory method for an instance of ChannelSetAddressCustomFieldActionBuilderof
(ChannelSetAddressCustomFieldAction template) create builder for ChannelSetAddressCustomFieldAction instanceSpecifies the format of the value of the Custom Field defined byname
.
-
Constructor Details
-
ChannelSetAddressCustomFieldActionBuilder
public ChannelSetAddressCustomFieldActionBuilder()
-
-
Method Details
-
name
Name of the Custom Field.
- Parameters:
name
- value to be set- Returns:
- Builder
-
value
Specifies the format of the value of the Custom Field defined by
name
. Ifvalue
is absent ornull
, this field will be removed, if it exists. Removing a field that does not exist returns an InvalidOperation error.- Parameters:
value
- value to be set- Returns:
- Builder
-
getName
Name of the Custom Field.
- Returns:
- name
-
getValue
Specifies the format of the value of the Custom Field defined by
name
. Ifvalue
is absent ornull
, this field will be removed, if it exists. Removing a field that does not exist returns an InvalidOperation error.- Returns:
- value
-
build
builds ChannelSetAddressCustomFieldAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ChannelSetAddressCustomFieldAction>
- Returns:
- ChannelSetAddressCustomFieldAction
-
buildUnchecked
builds ChannelSetAddressCustomFieldAction without checking for non-null required values- Returns:
- ChannelSetAddressCustomFieldAction
-
of
factory method for an instance of ChannelSetAddressCustomFieldActionBuilder- Returns:
- builder
-
of
public static ChannelSetAddressCustomFieldActionBuilder of(ChannelSetAddressCustomFieldAction template) create builder for ChannelSetAddressCustomFieldAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-