io.sphere.sdk.customergroups.CustomerGroupDraftDsl Maven / Gradle / Ivy
/*
This class has been generated by class io.sphere.sdk.annotations.processors.ResourceDraftValueAnnotationProcessor
induced by the annotation io.sphere.sdk.annotations.ResourceDraftValue.
in the source class io.sphere.sdk.customergroups.CustomerGroupDraft.
*/
package io.sphere.sdk.customergroups;
import javax.annotation.Nullable;
import io.sphere.sdk.models.*;
import java.util.*;
import io.sphere.sdk.utils.*;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.sphere.sdk.customergroups.CustomerGroupDraftBuilder;
public final class CustomerGroupDraftDsl extends io.sphere.sdk.models.Base implements CustomerGroupDraft {
private final java.lang.String groupName;
@JsonCreator()
CustomerGroupDraftDsl(final java.lang.String groupName) {
this.groupName = groupName;
}
public java.lang.String getGroupName() {
return groupName;
}
public CustomerGroupDraftDsl withGroupName(final java.lang.String groupName) {
return newBuilder().groupName(groupName).build();
}
private CustomerGroupDraftBuilder newBuilder() {
return new CustomerGroupDraftBuilder(groupName);
}
public static CustomerGroupDraftDsl of(final java.lang.String groupName) {
return new CustomerGroupDraftDsl(groupName);
}
public static CustomerGroupDraftDsl of(final CustomerGroupDraft template) {
return new CustomerGroupDraftDsl(template.getGroupName());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy