Interface ClassificationShippingRateInput

All Superinterfaces:
ShippingRateInput

public interface ClassificationShippingRateInput extends ShippingRateInput
ClassificationShippingRateInput
Example to create an instance using the builder pattern

     ClassificationShippingRateInput classificationShippingRateInput = ClassificationShippingRateInput.builder()
             .key("{key}")
             .label(labelBuilder -> labelBuilder)
             .build()
 
  • Field Details

    • CLASSIFICATION

      static final String CLASSIFICATION
      discriminator value for ClassificationShippingRateInput
      See Also:
  • Method Details

    • getKey

      @NotNull @NotNull String getKey()
      Returns:
      key
    • getLabel

      @NotNull @Valid @NotNull @Valid LocalizedString getLabel()

      A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.

      {
          "de": "Hundefutter",
          "en": "dog food"
        }
        
      Returns:
      label
    • setKey

      void setKey(String key)
      set key
      Parameters:
      key - value to be set
    • setLabel

      void setLabel(LocalizedString label)

      A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.

      {
          "de": "Hundefutter",
          "en": "dog food"
        }
        
      Parameters:
      label - value to be set
    • of

      factory method
      Returns:
      instance of ClassificationShippingRateInput
    • of

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

      factory method to create a deep copy of ClassificationShippingRateInput
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for ClassificationShippingRateInput
      Returns:
      builder
    • builder

      create builder for ClassificationShippingRateInput instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withClassificationShippingRateInput

      default <T> T withClassificationShippingRateInput(Function<ClassificationShippingRateInput,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<ClassificationShippingRateInput> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference