All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.carts.ClassificationShippingRateInputDraftBuilder Maven / Gradle / Ivy

The newest version!
package io.sphere.sdk.carts;

import io.sphere.sdk.models.Base;
import io.sphere.sdk.models.Builder;
import java.lang.String;
import javax.annotation.Generated;

/**
 * Builder for {@link ClassificationShippingRateInputDraft}.
 */
@Generated(
    value = "io.sphere.sdk.annotations.processors.generators.DraftBuilderGenerator",
    comments = "Generated from: io.sphere.sdk.carts.ClassificationShippingRateInputDraft"
)
public final class ClassificationShippingRateInputDraftBuilder extends Base implements Builder {
  private String key;

  ClassificationShippingRateInputDraftBuilder() {
  }

  ClassificationShippingRateInputDraftBuilder(final String key) {
    this.key = key;
  }

  /**
   * Sets the {@code key} property of this builder.
   *
   * @param key the value for {@link ClassificationShippingRateInputDraft#getKey()}
   * @return this builder
   */
  public ClassificationShippingRateInputDraftBuilder key(final String key) {
    this.key = key;
    return this;
  }

  public String getKey() {
    return key;
  }

  /**
   * Creates a new instance of {@code ClassificationShippingRateInputDraftDsl} with the values of this builder.
   *
   * @return the instance
   */
  public ClassificationShippingRateInputDraftDsl build() {
    return new ClassificationShippingRateInputDraftDsl(key);
  }

  /**
   * 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 ClassificationShippingRateInputDraftBuilder of(final String key) {
    return new ClassificationShippingRateInputDraftBuilder(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 ClassificationShippingRateInputDraftBuilder of(
      final ClassificationShippingRateInputDraft template) {
    return new ClassificationShippingRateInputDraftBuilder(template.getKey());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy