@Generated(value="io.sphere.sdk.annotations.processors.generators.DraftBuilderGenerator", comments="Generated from: io.sphere.sdk.channels.ChannelDraft") public final class ChannelDraftBuilder extends Base implements Builder<ChannelDraftDsl>
ChannelDraft.| Modifier and Type | Method and Description |
|---|---|
ChannelDraftBuilder |
address(Address address)
Sets the
address property of this builder. |
ChannelDraftDsl |
build()
Creates a new instance of
ChannelDraftDsl with the values of this builder. |
ChannelDraftBuilder |
custom(CustomFieldsDraft custom)
Sets the
custom property of this builder. |
ChannelDraftBuilder |
description(LocalizedString description)
Sets the
description property of this builder. |
ChannelDraftBuilder |
geoLocation(GeoJSON geoLocation)
Sets the
geoLocation property of this builder. |
Address |
getAddress() |
CustomFieldsDraft |
getCustom() |
LocalizedString |
getDescription() |
GeoJSON |
getGeoLocation() |
String |
getKey() |
LocalizedString |
getName() |
Set<ChannelRole> |
getRoles() |
ChannelDraftBuilder |
key(String key)
Sets the
key property of this builder. |
ChannelDraftBuilder |
name(LocalizedString name)
Sets the
name property of this builder. |
static ChannelDraftBuilder |
of(ChannelDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static ChannelDraftBuilder |
of(String key)
Creates a new object initialized with the given values.
|
ChannelDraftBuilder |
plusRoles(ChannelRole roles)
Adds
roles parameter to the roles set property of this builder. |
ChannelDraftBuilder |
plusRoles(Set<ChannelRole> roles)
Concatenate
roles parameter to the roles set property of this builder. |
ChannelDraftBuilder |
roles(Set<ChannelRole> roles)
Sets the
roles property of this builder. |
public ChannelDraftBuilder address(@Nullable Address address)
address property of this builder.address - the value for ChannelDraft.getAddress()public ChannelDraftBuilder custom(@Nullable CustomFieldsDraft custom)
custom property of this builder.custom - the value for ChannelDraft.getCustom()public ChannelDraftBuilder description(@Nullable LocalizedString description)
description property of this builder.description - the value for ChannelDraft.getDescription()public ChannelDraftBuilder geoLocation(@Nullable GeoJSON geoLocation)
geoLocation property of this builder.geoLocation - the value for ChannelDraft.getGeoLocation()public ChannelDraftBuilder key(String key)
key property of this builder.key - the value for ChannelDraft.getKey()public ChannelDraftBuilder name(@Nullable LocalizedString name)
name property of this builder.name - the value for ChannelDraft.getName()public ChannelDraftBuilder roles(@Nullable Set<ChannelRole> roles)
roles property of this builder.roles - the value for ChannelDraft.getRoles()@Nullable public CustomFieldsDraft getCustom()
@Nullable public LocalizedString getDescription()
public String getKey()
@Nullable public LocalizedString getName()
@Nullable public Set<ChannelRole> getRoles()
public ChannelDraftBuilder plusRoles(Set<ChannelRole> roles)
roles parameter to the roles set property of this builder.roles - the value for ChannelDraft.getRoles()public ChannelDraftBuilder plusRoles(ChannelRole roles)
roles parameter to the roles set property of this builder.roles - the value of the element to add to ChannelDraft.getRoles()public ChannelDraftDsl build()
ChannelDraftDsl with the values of this builder.build in interface Builder<ChannelDraftDsl>public static ChannelDraftBuilder of(String key)
key - initial value for the ChannelDraft.getKey() propertypublic static ChannelDraftBuilder of(ChannelDraft template)
template - the template