Interface GraphQLAssociateMissingPermissionError

All Superinterfaces:
GraphQLErrorObject

public interface GraphQLAssociateMissingPermissionError extends GraphQLErrorObject

Returned when an Associate is missing a Permission on a B2B resource.


Example to create an instance using the builder pattern

     GraphQLAssociateMissingPermissionError graphQLAssociateMissingPermissionError = GraphQLAssociateMissingPermissionError.builder()
             .associate(associateBuilder -> associateBuilder)
             .businessUnit(businessUnitBuilder -> businessUnitBuilder)
             .plusPermissions(permissionsBuilder -> permissionsBuilder)
             .build()
 
  • Field Details

    • ASSOCIATE_MISSING_PERMISSION

      static final String ASSOCIATE_MISSING_PERMISSION
      discriminator value for GraphQLAssociateMissingPermissionError
      See Also:
  • Method Details

    • getCode

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

      Error identifier.

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

      @NotNull @Valid @NotNull @Valid CustomerResourceIdentifier getAssociate()

      ResourceIdentifier to the Associate that tried to perform the action.

      Returns:
      associate
    • getBusinessUnit

      @NotNull @Valid @NotNull @Valid BusinessUnitResourceIdentifier getBusinessUnit()

      ResourceIdentifier to the BusinessUnit.

      Returns:
      businessUnit
    • getAssociateOnBehalf

      @Valid @Valid CustomerResourceIdentifier getAssociateOnBehalf()

      ResourceIdentifier of the Associate on whose behalf the action is performed.

      Returns:
      associateOnBehalf
    • getPermissions

      @NotNull @NotNull List<Permission> getPermissions()

      The Permissions that the Associate performing the action lacks. At least one of these Permissions is needed.

      Returns:
      permissions
    • setAssociate

      void setAssociate(CustomerResourceIdentifier associate)

      ResourceIdentifier to the Associate that tried to perform the action.

      Parameters:
      associate - value to be set
    • setBusinessUnit

      void setBusinessUnit(BusinessUnitResourceIdentifier businessUnit)

      ResourceIdentifier to the BusinessUnit.

      Parameters:
      businessUnit - value to be set
    • setAssociateOnBehalf

      void setAssociateOnBehalf(CustomerResourceIdentifier associateOnBehalf)

      ResourceIdentifier of the Associate on whose behalf the action is performed.

      Parameters:
      associateOnBehalf - value to be set
    • setPermissions

      void setPermissions(Permission... permissions)

      The Permissions that the Associate performing the action lacks. At least one of these Permissions is needed.

      Parameters:
      permissions - values to be set
    • setPermissions

      void setPermissions(List<Permission> permissions)

      The Permissions that the Associate performing the action lacks. At least one of these Permissions is needed.

      Parameters:
      permissions - values to be set
    • of

      factory method
      Returns:
      instance of GraphQLAssociateMissingPermissionError
    • of

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

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

      builder factory method for GraphQLAssociateMissingPermissionError
      Returns:
      builder
    • builder

      create builder for GraphQLAssociateMissingPermissionError instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withGraphQLAssociateMissingPermissionError

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