io.sphere.sdk.projects.CartClassificationDraftDsl Maven / Gradle / Ivy
The newest version!
package io.sphere.sdk.projects;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.sphere.sdk.models.Base;
import io.sphere.sdk.models.LocalizedEnumValue;
import java.util.Set;
import javax.annotation.Generated;
/**
* Dsl class for {@link CartClassificationDraft}.
*/
@Generated(
value = "io.sphere.sdk.annotations.processors.generators.ResourceDraftValueGenerator",
comments = "Generated from: io.sphere.sdk.projects.CartClassificationDraft"
)
public final class CartClassificationDraftDsl extends Base implements CartClassificationDraft {
private Set values;
@JsonCreator
CartClassificationDraftDsl(final Set values) {
this.values = values;
}
public Set getValues() {
return values;
}
/**
* Creates a new builder with the values of this object.
*
* @return new builder
*/
public CartClassificationDraftBuilder newBuilder() {
return new CartClassificationDraftBuilder(values);
}
public CartClassificationDraftDsl withValues(final Set values) {
return newBuilder().values(values).build();
}
/**
* Creates a new object initialized with the given values.
*
* @param values initial value for the {@link CartClassificationDraft#getValues()} property
* @return new object initialized with the given values
*/
public static CartClassificationDraftDsl of(final Set values) {
return new CartClassificationDraftDsl(values);
}
/**
* Creates a new object initialized with the fields of the template parameter.
*
* @param template the template
* @return a new object initialized from the template
*/
public static CartClassificationDraftDsl of(final CartClassificationDraft template) {
return new CartClassificationDraftDsl(template.getValues());
}
}