@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UserContext extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about the user context for a Amazon Kendra index.
Constructor and Description |
---|
UserContext() |
Modifier and Type | Method and Description |
---|---|
UserContext |
clone() |
boolean |
equals(Object obj) |
String |
getToken()
The user context token.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setToken(String token)
The user context token.
|
String |
toString()
Returns a string representation of this object.
|
UserContext |
withToken(String token)
The user context token.
|
public void setToken(String token)
The user context token. It must be a JWT or a JSON token.
token
- The user context token. It must be a JWT or a JSON token.public String getToken()
The user context token. It must be a JWT or a JSON token.
public UserContext withToken(String token)
The user context token. It must be a JWT or a JSON token.
token
- The user context token. It must be a JWT or a JSON token.public String toString()
toString
in class Object
Object.toString()
public UserContext clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.