io.sphere.sdk.carts.ClassificationShippingRateInputDraftDsl Maven / Gradle / Ivy
package io.sphere.sdk.carts;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.sphere.sdk.models.Base;
import java.lang.String;
import javax.annotation.Generated;
/**
* Dsl class for {@link ClassificationShippingRateInputDraft}.
*/
@Generated(
value = "io.sphere.sdk.annotations.processors.generators.ResourceDraftValueGenerator",
comments = "Generated from: io.sphere.sdk.carts.ClassificationShippingRateInputDraft"
)
public final class ClassificationShippingRateInputDraftDsl extends Base implements ClassificationShippingRateInputDraft {
private String key;
@JsonCreator
ClassificationShippingRateInputDraftDsl(final String key) {
this.key = key;
}
public String getKey() {
return key;
}
/**
* Creates a new builder with the values of this object.
*
* @return new builder
*/
public ClassificationShippingRateInputDraftBuilder newBuilder() {
return new ClassificationShippingRateInputDraftBuilder(key);
}
public ClassificationShippingRateInputDraftDsl withKey(final String key) {
return newBuilder().key(key).build();
}
/**
* Creates a new object initialized with the given values.
*
* @param key initial value for the {@link ClassificationShippingRateInputDraft#getKey()} property
* @return new object initialized with the given values
*/
public static ClassificationShippingRateInputDraftDsl of(final String key) {
return new ClassificationShippingRateInputDraftDsl(key);
}
/**
* 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 ClassificationShippingRateInputDraftDsl of(final ClassificationShippingRateInputDraft template) {
return new ClassificationShippingRateInputDraftDsl(template.getKey());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy