@Generated(value="io.sphere.sdk.annotations.processors.generators.DraftBuilderGenerator", comments="Generated from: io.sphere.sdk.stores.StoreDraft") public final class StoreDraftBuilder extends Base implements Builder<StoreDraftDsl>
StoreDraft
.Modifier and Type | Method and Description |
---|---|
StoreDraftDsl |
build()
Creates a new instance of
StoreDraftDsl with the values of this builder. |
StoreDraftBuilder |
custom(CustomFieldsDraft custom)
Sets the
custom property of this builder. |
StoreDraftBuilder |
distributionChannels(List<ResourceIdentifier<Channel>> distributionChannels)
Sets the
distributionChannels property of this builder. |
CustomFieldsDraft |
getCustom() |
List<ResourceIdentifier<Channel>> |
getDistributionChannels() |
String |
getKey() |
List<String> |
getLanguages() |
LocalizedString |
getName() |
List<ProductSelectionSettingDraft> |
getProductSelections() |
List<ResourceIdentifier<Channel>> |
getSupplyChannels() |
StoreDraftBuilder |
key(String key)
Sets the
key property of this builder. |
StoreDraftBuilder |
languages(List<String> languages)
Sets the
languages property of this builder. |
StoreDraftBuilder |
name(LocalizedString name)
Sets the
name property of this builder. |
static StoreDraftBuilder |
of(StoreDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static StoreDraftBuilder |
of(String key)
Creates a new object initialized with the given values.
|
static StoreDraftBuilder |
of(String key,
LocalizedString name)
Creates a new object initialized with the given values.
|
static StoreDraftBuilder |
of(String key,
LocalizedString name,
List<String> languages)
Creates a new object initialized with the given values.
|
StoreDraftBuilder |
plusDistributionChannels(List<ResourceIdentifier<Channel>> distributionChannels)
Concatenate
distributionChannels parameter to the distributionChannels list property of this builder. |
StoreDraftBuilder |
plusDistributionChannels(ResourceIdentifier<Channel> distributionChannels)
Adds
distributionChannels parameter to the distributionChannels list property of this builder. |
StoreDraftBuilder |
plusLanguages(List<String> languages)
Concatenate
languages parameter to the languages list property of this builder. |
StoreDraftBuilder |
plusLanguages(String languages)
Adds
languages parameter to the languages list property of this builder. |
StoreDraftBuilder |
plusProductSelections(List<ProductSelectionSettingDraft> productSelections)
Concatenate
productSelections parameter to the productSelections list property of this builder. |
StoreDraftBuilder |
plusProductSelections(ProductSelectionSettingDraft productSelections)
Adds
productSelections parameter to the productSelections list property of this builder. |
StoreDraftBuilder |
plusSupplyChannels(List<ResourceIdentifier<Channel>> supplyChannels)
Concatenate
supplyChannels parameter to the supplyChannels list property of this builder. |
StoreDraftBuilder |
plusSupplyChannels(ResourceIdentifier<Channel> supplyChannels)
Adds
supplyChannels parameter to the supplyChannels list property of this builder. |
StoreDraftBuilder |
productSelections(List<ProductSelectionSettingDraft> productSelections)
Sets the
productSelections property of this builder. |
StoreDraftBuilder |
supplyChannels(List<ResourceIdentifier<Channel>> supplyChannels)
Sets the
supplyChannels property of this builder. |
public StoreDraftBuilder custom(@Nullable CustomFieldsDraft custom)
custom
property of this builder.custom
- the value for StoreDraft.getCustom()
public StoreDraftBuilder distributionChannels(@Nullable List<ResourceIdentifier<Channel>> distributionChannels)
distributionChannels
property of this builder.distributionChannels
- the value for StoreDraft.getDistributionChannels()
public StoreDraftBuilder key(String key)
key
property of this builder.key
- the value for StoreDraft.getKey()
public StoreDraftBuilder languages(@Nullable List<String> languages)
languages
property of this builder.languages
- the value for StoreDraft.getLanguages()
public StoreDraftBuilder name(@Nullable LocalizedString name)
name
property of this builder.name
- the value for StoreDraft.getName()
public StoreDraftBuilder productSelections(@Nullable List<ProductSelectionSettingDraft> productSelections)
productSelections
property of this builder.productSelections
- the value for StoreDraft.getProductSelections()
public StoreDraftBuilder supplyChannels(@Nullable List<ResourceIdentifier<Channel>> supplyChannels)
supplyChannels
property of this builder.supplyChannels
- the value for StoreDraft.getSupplyChannels()
@Nullable public CustomFieldsDraft getCustom()
@Nullable public List<ResourceIdentifier<Channel>> getDistributionChannels()
public String getKey()
@Nullable public LocalizedString getName()
@Nullable public List<ProductSelectionSettingDraft> getProductSelections()
@Nullable public List<ResourceIdentifier<Channel>> getSupplyChannels()
public StoreDraftBuilder plusDistributionChannels(List<ResourceIdentifier<Channel>> distributionChannels)
distributionChannels
parameter to the distributionChannels
list property of this builder.distributionChannels
- the value for StoreDraft.getDistributionChannels()
public StoreDraftBuilder plusLanguages(List<String> languages)
languages
parameter to the languages
list property of this builder.languages
- the value for StoreDraft.getLanguages()
public StoreDraftBuilder plusProductSelections(List<ProductSelectionSettingDraft> productSelections)
productSelections
parameter to the productSelections
list property of this builder.productSelections
- the value for StoreDraft.getProductSelections()
public StoreDraftBuilder plusSupplyChannels(List<ResourceIdentifier<Channel>> supplyChannels)
supplyChannels
parameter to the supplyChannels
list property of this builder.supplyChannels
- the value for StoreDraft.getSupplyChannels()
public StoreDraftBuilder plusDistributionChannels(ResourceIdentifier<Channel> distributionChannels)
distributionChannels
parameter to the distributionChannels
list property of this builder.distributionChannels
- the value of the element to add to StoreDraft.getDistributionChannels()
public StoreDraftBuilder plusLanguages(String languages)
languages
parameter to the languages
list property of this builder.languages
- the value of the element to add to StoreDraft.getLanguages()
public StoreDraftBuilder plusProductSelections(ProductSelectionSettingDraft productSelections)
productSelections
parameter to the productSelections
list property of this builder.productSelections
- the value of the element to add to StoreDraft.getProductSelections()
public StoreDraftBuilder plusSupplyChannels(ResourceIdentifier<Channel> supplyChannels)
supplyChannels
parameter to the supplyChannels
list property of this builder.supplyChannels
- the value of the element to add to StoreDraft.getSupplyChannels()
public StoreDraftDsl build()
StoreDraftDsl
with the values of this builder.build
in interface Builder<StoreDraftDsl>
public static StoreDraftBuilder of(String key)
key
- initial value for the StoreDraft.getKey()
propertypublic static StoreDraftBuilder of(String key, @Nullable LocalizedString name)
key
- initial value for the StoreDraft.getKey()
propertyname
- initial value for the StoreDraft.getName()
propertypublic static StoreDraftBuilder of(String key, @Nullable LocalizedString name, @Nullable List<String> languages)
key
- initial value for the StoreDraft.getKey()
propertyname
- initial value for the StoreDraft.getName()
propertylanguages
- initial value for the StoreDraft.getLanguages()
propertypublic static StoreDraftBuilder of(StoreDraft template)
template
- the template