Interface ShippingMethodLabel

All Superinterfaces:
Label

public interface ShippingMethodLabel extends Label
ShippingMethodLabel
Example to create an instance using the builder pattern

     ShippingMethodLabel shippingMethodLabel = ShippingMethodLabel.builder()
             .name("{name}")
             .build()
 
  • Field Details

    • SHIPPING_METHOD_LABEL

      static final String SHIPPING_METHOD_LABEL
      discriminator value for ShippingMethodLabel
      See Also:
  • Method Details

    • getType

      @NotNull @NotNull String getType()
      Specified by:
      getType in interface Label
      Returns:
      type
    • getKey

      String getKey()

      User-defined unique identifier of the Shipping Method.

      Returns:
      key
    • getName

      @NotNull @NotNull String getName()

      Unique name identifier of the Shipping Method.

      Returns:
      name
    • setKey

      void setKey(String key)

      User-defined unique identifier of the Shipping Method.

      Parameters:
      key - value to be set
    • setName

      void setName(String name)

      Unique name identifier of the Shipping Method.

      Parameters:
      name - value to be set
    • of

      static ShippingMethodLabel of()
      factory method
      Returns:
      instance of ShippingMethodLabel
    • of

      factory method to create a shallow copy ShippingMethodLabel
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • copyDeep

      Specified by:
      copyDeep in interface Label
    • deepCopy

      @Nullable static ShippingMethodLabel deepCopy(@Nullable ShippingMethodLabel template)
      factory method to create a deep copy of ShippingMethodLabel
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static ShippingMethodLabelBuilder builder()
      builder factory method for ShippingMethodLabel
      Returns:
      builder
    • builder

      create builder for ShippingMethodLabel instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withShippingMethodLabel

      default <T> T withShippingMethodLabel(Function<ShippingMethodLabel,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<ShippingMethodLabel> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference