@Generated(value="io.sphere.sdk.annotations.processors.generators.DraftBuilderGenerator", comments="Generated from: io.sphere.sdk.customergroups.CustomerGroupDraft") public final class CustomerGroupDraftBuilder extends Base implements Builder<CustomerGroupDraftDsl>
CustomerGroupDraft.| Modifier and Type | Method and Description |
|---|---|
CustomerGroupDraftDsl |
build()
Creates a new instance of
CustomerGroupDraftDsl with the values of this builder. |
CustomerGroupDraftBuilder |
custom(CustomFieldsDraft custom)
Sets the
custom property of this builder. |
CustomFieldsDraft |
getCustom() |
String |
getGroupName() |
String |
getKey() |
CustomerGroupDraftBuilder |
groupName(String groupName)
Sets the
groupName property of this builder. |
CustomerGroupDraftBuilder |
key(String key)
Sets the
key property of this builder. |
static CustomerGroupDraftBuilder |
of(CustomerGroupDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static CustomerGroupDraftBuilder |
of(String groupName)
Creates a new object initialized with the given values.
|
public CustomerGroupDraftBuilder custom(@Nullable CustomFieldsDraft custom)
custom property of this builder.custom - the value for CustomerGroupDraft.getCustom()public CustomerGroupDraftBuilder groupName(String groupName)
groupName property of this builder.groupName - the value for CustomerGroupDraft.getGroupName()public CustomerGroupDraftBuilder key(@Nullable String key)
key property of this builder.key - the value for CustomerGroupDraft.getKey()@Nullable public CustomFieldsDraft getCustom()
public String getGroupName()
public CustomerGroupDraftDsl build()
CustomerGroupDraftDsl with the values of this builder.build in interface Builder<CustomerGroupDraftDsl>public static CustomerGroupDraftBuilder of(String groupName)
groupName - initial value for the CustomerGroupDraft.getGroupName() propertypublic static CustomerGroupDraftBuilder of(CustomerGroupDraft template)
template - the template