io.sphere.sdk.customergroups.CustomerGroupDraftBuilder Maven / Gradle / Ivy
package io.sphere.sdk.customergroups;
import io.sphere.sdk.models.Base;
import io.sphere.sdk.models.Builder;
import java.lang.String;
import javax.annotation.Generated;
/**
* Builder for {@link CustomerGroupDraft}.
*/
@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 {
private String groupName;
CustomerGroupDraftBuilder() {
}
CustomerGroupDraftBuilder(final String groupName) {
this.groupName = groupName;
}
/**
* Sets the {@code groupName} property of this builder.
*
* @param groupName the value for {@link CustomerGroupDraft#getGroupName()}
* @return this builder
*/
public CustomerGroupDraftBuilder groupName(final String groupName) {
this.groupName = groupName;
return this;
}
/**
* Creates a new instance of {@code CustomerGroupDraftDsl} with the values of this builder.
*
* @return the instance
*/
public CustomerGroupDraftDsl build() {
return new CustomerGroupDraftDsl(groupName);
}
/**
* Creates a builder initialized with the given values.
*
* @param groupName initial value for the {@link CustomerGroupDraft#getGroupName()} property
* @return new builder initialized with the given values
*/
public static CustomerGroupDraftBuilder of(final String groupName) {
return new CustomerGroupDraftBuilder(groupName);
}
/**
* Creates a builder initialized with the fields of the template parameter.
*
* @param template the template
* @return a new builder initialized from the template
*/
public static CustomerGroupDraftBuilder of(final CustomerGroupDraft template) {
return new CustomerGroupDraftBuilder(template.getGroupName());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy