Class ZoneSetKeyActionBuilder
java.lang.Object
com.commercetools.api.models.zone.ZoneSetKeyActionBuilder
- All Implemented Interfaces:
Builder<ZoneSetKeyAction>
ZoneSetKeyActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ZoneSetKeyAction zoneSetKeyAction = ZoneSetKeyAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ZoneSetKeyAction with checking for non-null required valuesbuilds ZoneSetKeyAction without checking for non-null required valuesgetKey()Ifkeyis absent ornull, the existing key, if any, will be removed.Ifkeyis absent ornull, the existing key, if any, will be removed.static ZoneSetKeyActionBuilderof()factory method for an instance of ZoneSetKeyActionBuilderstatic ZoneSetKeyActionBuilderof(ZoneSetKeyAction template) create builder for ZoneSetKeyAction instance
-
Constructor Details
-
ZoneSetKeyActionBuilder
public ZoneSetKeyActionBuilder()
-
-
Method Details
-
key
If
keyis absent ornull, the existing key, if any, will be removed.- Parameters:
key- value to be set- Returns:
- Builder
-
getKey
If
keyis absent ornull, the existing key, if any, will be removed.- Returns:
- key
-
build
builds ZoneSetKeyAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ZoneSetKeyAction>- Returns:
- ZoneSetKeyAction
-
buildUnchecked
builds ZoneSetKeyAction without checking for non-null required values- Returns:
- ZoneSetKeyAction
-
of
factory method for an instance of ZoneSetKeyActionBuilder- Returns:
- builder
-
of
create builder for ZoneSetKeyAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-