Class VariantSetImageLabelActionBuilder

java.lang.Object
com.commercetools.api.models.variant.VariantSetImageLabelActionBuilder
All Implemented Interfaces:
Builder<VariantSetImageLabelAction>

public class VariantSetImageLabelActionBuilder extends Object implements Builder<VariantSetImageLabelAction>
VariantSetImageLabelActionBuilder
Example to create an instance using the builder pattern

     VariantSetImageLabelAction variantSetImageLabelAction = VariantSetImageLabelAction.builder()
             .imageUrl("{imageUrl}")
             .build()
 
  • Constructor Details

    • VariantSetImageLabelActionBuilder

      public VariantSetImageLabelActionBuilder()
  • Method Details

    • imageUrl

      public VariantSetImageLabelActionBuilder imageUrl(String imageUrl)

      The URL of the image to set the label.

      Parameters:
      imageUrl - value to be set
      Returns:
      Builder
    • label

      public VariantSetImageLabelActionBuilder label(@Nullable String label)

      Value to set. If omitted, any existing value is removed.

      Parameters:
      label - value to be set
      Returns:
      Builder
    • staged

      public VariantSetImageLabelActionBuilder staged(@Nullable Boolean staged)

      If true, only the staged image is updated. If false, both the current and staged image is updated.

      Parameters:
      staged - value to be set
      Returns:
      Builder
    • getImageUrl

      public String getImageUrl()

      The URL of the image to set the label.

      Returns:
      imageUrl
    • getLabel

      @Nullable public String getLabel()

      Value to set. If omitted, any existing value is removed.

      Returns:
      label
    • getStaged

      @Nullable public Boolean getStaged()

      If true, only the staged image is updated. If false, both the current and staged image is updated.

      Returns:
      staged
    • build

      builds VariantSetImageLabelAction with checking for non-null required values
      Specified by:
      build in interface Builder<VariantSetImageLabelAction>
      Returns:
      VariantSetImageLabelAction
    • buildUnchecked

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

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

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