Class ShippingMethodKeyReferenceBuilder

java.lang.Object
com.commercetools.importapi.models.common.ShippingMethodKeyReferenceBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ShippingMethodKeyReference>

public class ShippingMethodKeyReferenceBuilder extends Object implements io.vrap.rmf.base.client.Builder<ShippingMethodKeyReference>
ShippingMethodKeyReferenceBuilder
Example to create an instance using the builder pattern

     ShippingMethodKeyReference shippingMethodKeyReference = ShippingMethodKeyReference.builder()
             .key("{key}")
             .build()
 
  • Constructor Details

    • ShippingMethodKeyReferenceBuilder

      public ShippingMethodKeyReferenceBuilder()
  • Method Details

    • key

      User-defined unique identifier of the referenced ShippingMethod.

      Parameters:
      key - value to be set
      Returns:
      Builder
    • getKey

      public String getKey()

      User-defined unique identifier of the referenced ShippingMethod.

      Returns:
      key
    • build

      builds ShippingMethodKeyReference with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.Builder<ShippingMethodKeyReference>
      Returns:
      ShippingMethodKeyReference
    • buildUnchecked

      public ShippingMethodKeyReference buildUnchecked()
      builds ShippingMethodKeyReference without checking for non-null required values
      Returns:
      ShippingMethodKeyReference
    • of

      factory method for an instance of ShippingMethodKeyReferenceBuilder
      Returns:
      builder
    • of

      create builder for ShippingMethodKeyReference instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder