@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class QuerySessionContext extends Object implements Serializable, Cloneable, StructuredPojo
A structure used as a protocol between query engines and Lake Formation or Glue. Contains both a Lake Formation generated authorization identifier and information from the request's authorization context.
Constructor and Description |
---|
QuerySessionContext() |
Modifier and Type | Method and Description |
---|---|
QuerySessionContext |
addAdditionalContextEntry(String key,
String value)
Add a single AdditionalContext entry
|
QuerySessionContext |
clearAdditionalContextEntries()
Removes all the entries added into AdditionalContext.
|
QuerySessionContext |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getAdditionalContext()
An opaque string-string map passed by the query engine.
|
String |
getClusterId()
An identifier string for the consumer cluster.
|
String |
getQueryAuthorizationId()
A cryptographically generated query identifier generated by Glue or Lake Formation.
|
String |
getQueryId()
A unique identifier generated by the query engine for the query.
|
Date |
getQueryStartTime()
A timestamp provided by the query engine for when the query started.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAdditionalContext(Map<String,String> additionalContext)
An opaque string-string map passed by the query engine.
|
void |
setClusterId(String clusterId)
An identifier string for the consumer cluster.
|
void |
setQueryAuthorizationId(String queryAuthorizationId)
A cryptographically generated query identifier generated by Glue or Lake Formation.
|
void |
setQueryId(String queryId)
A unique identifier generated by the query engine for the query.
|
void |
setQueryStartTime(Date queryStartTime)
A timestamp provided by the query engine for when the query started.
|
String |
toString()
Returns a string representation of this object.
|
QuerySessionContext |
withAdditionalContext(Map<String,String> additionalContext)
An opaque string-string map passed by the query engine.
|
QuerySessionContext |
withClusterId(String clusterId)
An identifier string for the consumer cluster.
|
QuerySessionContext |
withQueryAuthorizationId(String queryAuthorizationId)
A cryptographically generated query identifier generated by Glue or Lake Formation.
|
QuerySessionContext |
withQueryId(String queryId)
A unique identifier generated by the query engine for the query.
|
QuerySessionContext |
withQueryStartTime(Date queryStartTime)
A timestamp provided by the query engine for when the query started.
|
public void setQueryId(String queryId)
A unique identifier generated by the query engine for the query.
queryId
- A unique identifier generated by the query engine for the query.public String getQueryId()
A unique identifier generated by the query engine for the query.
public QuerySessionContext withQueryId(String queryId)
A unique identifier generated by the query engine for the query.
queryId
- A unique identifier generated by the query engine for the query.public void setQueryStartTime(Date queryStartTime)
A timestamp provided by the query engine for when the query started.
queryStartTime
- A timestamp provided by the query engine for when the query started.public Date getQueryStartTime()
A timestamp provided by the query engine for when the query started.
public QuerySessionContext withQueryStartTime(Date queryStartTime)
A timestamp provided by the query engine for when the query started.
queryStartTime
- A timestamp provided by the query engine for when the query started.public void setClusterId(String clusterId)
An identifier string for the consumer cluster.
clusterId
- An identifier string for the consumer cluster.public String getClusterId()
An identifier string for the consumer cluster.
public QuerySessionContext withClusterId(String clusterId)
An identifier string for the consumer cluster.
clusterId
- An identifier string for the consumer cluster.public void setQueryAuthorizationId(String queryAuthorizationId)
A cryptographically generated query identifier generated by Glue or Lake Formation.
queryAuthorizationId
- A cryptographically generated query identifier generated by Glue or Lake Formation.public String getQueryAuthorizationId()
A cryptographically generated query identifier generated by Glue or Lake Formation.
public QuerySessionContext withQueryAuthorizationId(String queryAuthorizationId)
A cryptographically generated query identifier generated by Glue or Lake Formation.
queryAuthorizationId
- A cryptographically generated query identifier generated by Glue or Lake Formation.public Map<String,String> getAdditionalContext()
An opaque string-string map passed by the query engine.
public void setAdditionalContext(Map<String,String> additionalContext)
An opaque string-string map passed by the query engine.
additionalContext
- An opaque string-string map passed by the query engine.public QuerySessionContext withAdditionalContext(Map<String,String> additionalContext)
An opaque string-string map passed by the query engine.
additionalContext
- An opaque string-string map passed by the query engine.public QuerySessionContext addAdditionalContextEntry(String key, String value)
public QuerySessionContext clearAdditionalContextEntries()
public String toString()
toString
in class Object
Object.toString()
public QuerySessionContext clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.