@Generated(value="io.sphere.sdk.annotations.processors.generators.DraftBuilderGenerator", comments="Generated from: io.sphere.sdk.zones.ZoneDraft") public final class ZoneDraftBuilder extends Base implements Builder<ZoneDraftDsl>
ZoneDraft
.Modifier and Type | Method and Description |
---|---|
ZoneDraftDsl |
build()
Creates a new instance of
ZoneDraftDsl with the values of this builder. |
ZoneDraftBuilder |
description(String description)
Sets the
description property of this builder. |
String |
getDescription() |
String |
getKey() |
Set<Location> |
getLocations() |
String |
getName() |
ZoneDraftBuilder |
key(String key)
Sets the
key property of this builder. |
ZoneDraftBuilder |
locations(Set<Location> locations)
Sets the
locations property of this builder. |
ZoneDraftBuilder |
name(String name)
Sets the
name property of this builder. |
static ZoneDraftBuilder |
of(String name,
Set<Location> locations)
Creates a new object initialized with the given values.
|
static ZoneDraftBuilder |
of(String name,
Set<Location> locations,
String description)
Creates a new object initialized with the given values.
|
static ZoneDraftBuilder |
of(ZoneDraft template)
Creates a new object initialized with the fields of the template parameter.
|
ZoneDraftBuilder |
plusLocations(Location locations)
Adds
locations parameter to the locations set property of this builder. |
ZoneDraftBuilder |
plusLocations(Set<Location> locations)
Concatenate
locations parameter to the locations set property of this builder. |
public ZoneDraftBuilder description(@Nullable String description)
description
property of this builder.description
- the value for ZoneDraft.getDescription()
public ZoneDraftBuilder key(@Nullable String key)
key
property of this builder.key
- the value for ZoneDraft.getKey()
public ZoneDraftBuilder locations(Set<Location> locations)
locations
property of this builder.locations
- the value for ZoneDraft.getLocations()
public ZoneDraftBuilder name(String name)
name
property of this builder.name
- the value for ZoneDraft.getName()
public String getName()
public ZoneDraftBuilder plusLocations(Set<Location> locations)
locations
parameter to the locations
set property of this builder.locations
- the value for ZoneDraft.getLocations()
public ZoneDraftBuilder plusLocations(Location locations)
locations
parameter to the locations
set property of this builder.locations
- the value of the element to add to ZoneDraft.getLocations()
public ZoneDraftDsl build()
ZoneDraftDsl
with the values of this builder.build
in interface Builder<ZoneDraftDsl>
public static ZoneDraftBuilder of(String name, Set<Location> locations, @Nullable String description)
name
- initial value for the ZoneDraft.getName()
propertylocations
- initial value for the ZoneDraft.getLocations()
propertydescription
- initial value for the ZoneDraft.getDescription()
propertypublic static ZoneDraftBuilder of(String name, Set<Location> locations)
name
- initial value for the ZoneDraft.getName()
propertylocations
- initial value for the ZoneDraft.getLocations()
propertypublic static ZoneDraftBuilder of(ZoneDraft template)
template
- the template