Class EnumKeyAlreadyExistsErrorBuilder

java.lang.Object
com.commercetools.api.models.error.EnumKeyAlreadyExistsErrorBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<EnumKeyAlreadyExistsError>

public class EnumKeyAlreadyExistsErrorBuilder extends Object implements io.vrap.rmf.base.client.Builder<EnumKeyAlreadyExistsError>
EnumKeyAlreadyExistsErrorBuilder
Example to create an instance using the builder pattern

     EnumKeyAlreadyExistsError enumKeyAlreadyExistsError = EnumKeyAlreadyExistsError.builder()
             .message("{message}")
             .conflictingEnumKey("{conflictingEnumKey}")
             .conflictingAttributeName("{conflictingAttributeName}")
             .build()
 
  • Constructor Details

    • EnumKeyAlreadyExistsErrorBuilder

      public EnumKeyAlreadyExistsErrorBuilder()
  • Method Details

    • message

      public EnumKeyAlreadyExistsErrorBuilder message(String message)

      "The $attributeName attribute definition already contains an enum value with the key $enumKey."

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

      Error-specific additional fields.

      Parameters:
      values - properties to be set
      Returns:
      Builder
    • addValue

      public EnumKeyAlreadyExistsErrorBuilder addValue(String key, Object value)

      Error-specific additional fields.

      Parameters:
      key - property name
      value - property value
      Returns:
      Builder
    • conflictingEnumKey

      public EnumKeyAlreadyExistsErrorBuilder conflictingEnumKey(String conflictingEnumKey)

      Conflicting enum key.

      Parameters:
      conflictingEnumKey - value to be set
      Returns:
      Builder
    • conflictingAttributeName

      public EnumKeyAlreadyExistsErrorBuilder conflictingAttributeName(String conflictingAttributeName)

      Name of the conflicting Attribute.

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

      public String getMessage()

      "The $attributeName attribute definition already contains an enum value with the key $enumKey."

      Returns:
      message
    • getValues

      public Map<String,Object> getValues()

      Error-specific additional fields.

      Returns:
      pattern properties
    • getConflictingEnumKey

      public String getConflictingEnumKey()

      Conflicting enum key.

      Returns:
      conflictingEnumKey
    • getConflictingAttributeName

      public String getConflictingAttributeName()

      Name of the conflicting Attribute.

      Returns:
      conflictingAttributeName
    • build

      public EnumKeyAlreadyExistsError build()
      builds EnumKeyAlreadyExistsError with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.Builder<EnumKeyAlreadyExistsError>
      Returns:
      EnumKeyAlreadyExistsError
    • buildUnchecked

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

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

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