Interface Label

All Known Subinterfaces:
AssociateRoleLabel, BusinessUnitLabel, CustomerLabel, CustomObjectLabel, LocalizedLabel, OrderLabel, PaymentLabel, ProductLabel, QuoteLabel, QuoteRequestLabel, ReviewLabel, StagedQuoteLabel, StringLabel

public interface Label

Provides descriptive information specific to the resource.


Example to create a subtype instance using the builder pattern

     Label label = Label.associateRoleLabelBuilder()
             key("{key}")
             name("{name}")
             .build()
 
  • Method Details

    • getType

      @NotNull @NotNull String getType()
      Returns:
      type
    • deepCopy

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

      static AssociateRoleLabelBuilder associateRoleLabelBuilder()
      builder for associateRoleLabel subtype
      Returns:
      builder
    • businessUnitLabelBuilder

      static BusinessUnitLabelBuilder businessUnitLabelBuilder()
      builder for businessUnitLabel subtype
      Returns:
      builder
    • customObjectLabelBuilder

      static CustomObjectLabelBuilder customObjectLabelBuilder()
      builder for customObjectLabel subtype
      Returns:
      builder
    • customerLabelBuilder

      static CustomerLabelBuilder customerLabelBuilder()
      builder for customerLabel subtype
      Returns:
      builder
    • localizedLabelBuilder

      static LocalizedLabelBuilder localizedLabelBuilder()
      builder for localizedLabel subtype
      Returns:
      builder
    • orderLabelBuilder

      static OrderLabelBuilder orderLabelBuilder()
      builder for orderLabel subtype
      Returns:
      builder
    • paymentLabelBuilder

      static PaymentLabelBuilder paymentLabelBuilder()
      builder for paymentLabel subtype
      Returns:
      builder
    • productLabelBuilder

      static ProductLabelBuilder productLabelBuilder()
      builder for productLabel subtype
      Returns:
      builder
    • quoteLabelBuilder

      static QuoteLabelBuilder quoteLabelBuilder()
      builder for quoteLabel subtype
      Returns:
      builder
    • quoteRequestLabelBuilder

      static QuoteRequestLabelBuilder quoteRequestLabelBuilder()
      builder for quoteRequestLabel subtype
      Returns:
      builder
    • reviewLabelBuilder

      static ReviewLabelBuilder reviewLabelBuilder()
      builder for reviewLabel subtype
      Returns:
      builder
    • stagedQuoteLabelBuilder

      static StagedQuoteLabelBuilder stagedQuoteLabelBuilder()
      builder for stagedQuoteLabel subtype
      Returns:
      builder
    • stringLabelBuilder

      static StringLabelBuilder stringLabelBuilder()
      builder for stringLabel subtype
      Returns:
      builder
    • withLabel

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