Class ImportContainerUpdateDraftBuilder

java.lang.Object
com.commercetools.importapi.models.importcontainers.ImportContainerUpdateDraftBuilder
All Implemented Interfaces:
Builder<ImportContainerUpdateDraft>

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

     ImportContainerUpdateDraft importContainerUpdateDraft = ImportContainerUpdateDraft.builder()
             .version(0.3)
             .build()
 
  • Constructor Details

    • ImportContainerUpdateDraftBuilder

      public ImportContainerUpdateDraftBuilder()
  • Method Details

    • version

      public ImportContainerUpdateDraftBuilder version(Long version)

      Current version of the ImportContainer.

      Parameters:
      version - value to be set
      Returns:
      Builder
    • resourceType

      The resource type to be imported. If not given, the ImportContainer is able to import all of the supported ImportResourceTypes.

      Parameters:
      resourceType - value to be set
      Returns:
      Builder
    • getVersion

      public Long getVersion()

      Current version of the ImportContainer.

      Returns:
      version
    • getResourceType

      @Nullable public ImportResourceType getResourceType()

      The resource type to be imported. If not given, the ImportContainer is able to import all of the supported ImportResourceTypes.

      Returns:
      resourceType
    • build

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

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

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

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