Interface GraphQLEnumKeyDoesNotExistError

All Superinterfaces:
GraphQLErrorObject

public interface GraphQLEnumKeyDoesNotExistError extends GraphQLErrorObject

Returned when an AttributeEnumType or AttributeLocalizedEnumType already contains a value with the given key.

The error is returned as a failed response to the Change the key of an EnumValue update action.


Example to create an instance using the builder pattern

     GraphQLEnumKeyDoesNotExistError graphQLEnumKeyDoesNotExistError = GraphQLEnumKeyDoesNotExistError.builder()
             .conflictingEnumKey("{conflictingEnumKey}")
             .conflictingAttributeName("{conflictingAttributeName}")
             .build()
 
  • Field Details

    • ENUM_KEY_DOES_NOT_EXIST

      static final String ENUM_KEY_DOES_NOT_EXIST
      discriminator value for GraphQLEnumKeyDoesNotExistError
      See Also:
  • Method Details

    • getCode

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

      One of the error codes that is listed on the Errors page.

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

      @NotNull @NotNull String getConflictingEnumKey()

      Conflicting enum key.

      Returns:
      conflictingEnumKey
    • getConflictingAttributeName

      @NotNull @NotNull String getConflictingAttributeName()

      Name of the conflicting Attribute.

      Returns:
      conflictingAttributeName
    • setConflictingEnumKey

      void setConflictingEnumKey(String conflictingEnumKey)

      Conflicting enum key.

      Parameters:
      conflictingEnumKey - 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 GraphQLEnumKeyDoesNotExistError
    • of

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

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

      builder factory method for GraphQLEnumKeyDoesNotExistError
      Returns:
      builder
    • builder

      create builder for GraphQLEnumKeyDoesNotExistError instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withGraphQLEnumKeyDoesNotExistError

      default <T> T withGraphQLEnumKeyDoesNotExistError(Function<GraphQLEnumKeyDoesNotExistError,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<GraphQLEnumKeyDoesNotExistError> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference