Class AccessDeniedErrorBuilder

java.lang.Object
com.commercetools.importapi.models.errors.AccessDeniedErrorBuilder
All Implemented Interfaces:
Builder<AccessDeniedError>

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

     AccessDeniedError accessDeniedError = AccessDeniedError.builder()
             .message("{message}")
             .build()
 
  • Constructor Details

    • AccessDeniedErrorBuilder

      public AccessDeniedErrorBuilder()
  • Method Details

    • message

      public AccessDeniedErrorBuilder message(String message)

      A plain language description of the cause of an error.

      Parameters:
      message - value to be set
      Returns:
      Builder
    • getMessage

      public String getMessage()

      A plain language description of the cause of an error.

      Returns:
      message
    • build

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

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

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

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