Enum UserContextModeForRetrieval
- All Implemented Interfaces:
Serializable,Comparable<UserContextModeForRetrieval>
Specifies the end-user identity that a knowledge base uses to filter retrieval results by document access controls. Valid values:
-
API_INPUT_ONLY– The knowledge base uses only the user context in the request. This is the default. -
IDENTITY_ENHANCED_SESSION_ELSE_API_INPUT– The knowledge base uses the user identity from a trusted identity-enhanced session. If you also include a user context in the request, it must match the session identity. Otherwise, the request fails with a validation error. If you don't make the request with an identity-enhanced session, the knowledge base uses the user context in the request. -
IDENTITY_ENHANCED_SESSION– The knowledge base uses only the user identity from a trusted identity-enhanced session and ignores any user context in the request.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic UserContextModeForRetrievalUse this in place of valueOf to convert the raw string returned by the service into the enum value.static Set<UserContextModeForRetrieval> toString()static UserContextModeForRetrievalReturns the enum constant of this type with the specified name.static UserContextModeForRetrieval[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
API_INPUT_ONLY
-
IDENTITY_ENHANCED_SESSION_ELSE_API_INPUT
-
IDENTITY_ENHANCED_SESSION
-
UNKNOWN_TO_SDK_VERSION
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<UserContextModeForRetrieval>
-
fromValue
Use this in place of valueOf to convert the raw string returned by the service into the enum value.- Parameters:
value- real value- Returns:
- UserContextModeForRetrieval corresponding to the value
-
knownValues
Use this in place ofvalues()to return aSetof all values known to the SDK. This will return all known enum values exceptUNKNOWN_TO_SDK_VERSION.- Returns:
- a
Setof knownUserContextModeForRetrievals
-