Class ErrorByExtensionBuilder

java.lang.Object
com.commercetools.api.models.error.ErrorByExtensionBuilder
All Implemented Interfaces:
Builder<ErrorByExtension>

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

     ErrorByExtension errorByExtension = ErrorByExtension.builder()
             .id("{id}")
             .build()
 
  • Constructor Details

    • ErrorByExtensionBuilder

      public ErrorByExtensionBuilder()
  • Method Details

    • id

      Unique identifier of the Extension.

      Parameters:
      id - value to be set
      Returns:
      Builder
    • key

      User-defined unique identifier of the Extension.

      Parameters:
      key - value to be set
      Returns:
      Builder
    • getId

      public String getId()

      Unique identifier of the Extension.

      Returns:
      id
    • getKey

      @Nullable public String getKey()

      User-defined unique identifier of the Extension.

      Returns:
      key
    • build

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

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

      public static ErrorByExtensionBuilder of()
      factory method for an instance of ErrorByExtensionBuilder
      Returns:
      builder
    • of

      public static ErrorByExtensionBuilder of(ErrorByExtension template)
      create builder for ErrorByExtension instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder