Interface GraphQLAttributeDefinitionTypeConflictError

All Superinterfaces:
GraphQLErrorObject

public interface GraphQLAttributeDefinitionTypeConflictError extends GraphQLErrorObject

Returned when the type is different for an AttributeDefinition using the same name in multiple Product Types.

The error is returned as a failed response to the Create ProductType request.


Example to create an instance using the builder pattern

     GraphQLAttributeDefinitionTypeConflictError graphQLAttributeDefinitionTypeConflictError = GraphQLAttributeDefinitionTypeConflictError.builder()
             .conflictingProductTypeId("{conflictingProductTypeId}")
             .conflictingProductTypeName("{conflictingProductTypeName}")
             .conflictingAttributeName("{conflictingAttributeName}")
             .build()
 
  • Field Details

    • ATTRIBUTE_DEFINITION_TYPE_CONFLICT

      static final String ATTRIBUTE_DEFINITION_TYPE_CONFLICT
      discriminator value for GraphQLAttributeDefinitionTypeConflictError
      See Also:
  • Method Details

    • getCode

      @NotNull @NotNull String getCode()
      Description copied from interface: GraphQLErrorObject

      Error identifier.

      Specified by:
      getCode in interface GraphQLErrorObject
      Returns:
      code
    • getConflictingProductTypeId

      @NotNull @NotNull String getConflictingProductTypeId()

      Unique identifier of the Product Type containing the conflicting name.

      Returns:
      conflictingProductTypeId
    • getConflictingProductTypeName

      @NotNull @NotNull String getConflictingProductTypeName()

      Name of the Product Type containing the conflicting name.

      Returns:
      conflictingProductTypeName
    • getConflictingAttributeName

      @NotNull @NotNull String getConflictingAttributeName()

      Name of the conflicting Attribute.

      Returns:
      conflictingAttributeName
    • setConflictingProductTypeId

      void setConflictingProductTypeId(String conflictingProductTypeId)

      Unique identifier of the Product Type containing the conflicting name.

      Parameters:
      conflictingProductTypeId - value to be set
    • setConflictingProductTypeName

      void setConflictingProductTypeName(String conflictingProductTypeName)

      Name of the Product Type containing the conflicting name.

      Parameters:
      conflictingProductTypeName - value to be set
    • setConflictingAttributeName

      void setConflictingAttributeName(String conflictingAttributeName)

      Name of the conflicting Attribute.

      Parameters:
      conflictingAttributeName - value to be set
    • of

      factory method
      Returns:
      instance of GraphQLAttributeDefinitionTypeConflictError
    • of

      factory method to create a shallow copy GraphQLAttributeDefinitionTypeConflictError
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of GraphQLAttributeDefinitionTypeConflictError
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for GraphQLAttributeDefinitionTypeConflictError
      Returns:
      builder
    • builder

      create builder for GraphQLAttributeDefinitionTypeConflictError instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withGraphQLAttributeDefinitionTypeConflictError

      default <T> T withGraphQLAttributeDefinitionTypeConflictError(Function<GraphQLAttributeDefinitionTypeConflictError,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<GraphQLAttributeDefinitionTypeConflictError> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference