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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ZoneSetKeyAction with checking for non-null required valuesbuilds ZoneSetKeyAction without checking for non-null required valuesgetKey()
Ifkey
is absent ornull
, the existing key, if any, will be removed.Ifkey
is absent ornull
, the existing key, if any, will be removed.static ZoneSetKeyActionBuilder
of()
factory method for an instance of ZoneSetKeyActionBuilderstatic ZoneSetKeyActionBuilder
of
(ZoneSetKeyAction template) create builder for ZoneSetKeyAction instance
-
Constructor Details
-
ZoneSetKeyActionBuilder
public ZoneSetKeyActionBuilder()
-
-
Method Details
-
key
If
key
is absent ornull
, the existing key, if any, will be removed.- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
If
key
is absent ornull
, the existing key, if any, will be removed.- Returns:
- key
-
build
builds ZoneSetKeyAction with checking for non-null required values- Specified by:
build
in 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
-