@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ContextDataType extends Object implements Serializable, Cloneable, StructuredPojo
Contextual user data type used for evaluating the risk of an unexpected event by Amazon Cognito advanced security.
Constructor and Description |
---|
ContextDataType() |
Modifier and Type | Method and Description |
---|---|
ContextDataType |
clone() |
boolean |
equals(Object obj) |
String |
getEncodedData()
Encoded data containing device fingerprinting details, collected using the Amazon Cognito context data collection
library.
|
List<HttpHeader> |
getHttpHeaders()
HttpHeaders received on your server in same order.
|
String |
getIpAddress()
Source IP address of your user.
|
String |
getServerName()
Your server endpoint where this API is invoked.
|
String |
getServerPath()
Your server path where this API is invoked.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEncodedData(String encodedData)
Encoded data containing device fingerprinting details, collected using the Amazon Cognito context data collection
library.
|
void |
setHttpHeaders(Collection<HttpHeader> httpHeaders)
HttpHeaders received on your server in same order.
|
void |
setIpAddress(String ipAddress)
Source IP address of your user.
|
void |
setServerName(String serverName)
Your server endpoint where this API is invoked.
|
void |
setServerPath(String serverPath)
Your server path where this API is invoked.
|
String |
toString()
Returns a string representation of this object.
|
ContextDataType |
withEncodedData(String encodedData)
Encoded data containing device fingerprinting details, collected using the Amazon Cognito context data collection
library.
|
ContextDataType |
withHttpHeaders(Collection<HttpHeader> httpHeaders)
HttpHeaders received on your server in same order.
|
ContextDataType |
withHttpHeaders(HttpHeader... httpHeaders)
HttpHeaders received on your server in same order.
|
ContextDataType |
withIpAddress(String ipAddress)
Source IP address of your user.
|
ContextDataType |
withServerName(String serverName)
Your server endpoint where this API is invoked.
|
ContextDataType |
withServerPath(String serverPath)
Your server path where this API is invoked.
|
public void setIpAddress(String ipAddress)
Source IP address of your user.
ipAddress
- Source IP address of your user.public String getIpAddress()
Source IP address of your user.
public ContextDataType withIpAddress(String ipAddress)
Source IP address of your user.
ipAddress
- Source IP address of your user.public void setServerName(String serverName)
Your server endpoint where this API is invoked.
serverName
- Your server endpoint where this API is invoked.public String getServerName()
Your server endpoint where this API is invoked.
public ContextDataType withServerName(String serverName)
Your server endpoint where this API is invoked.
serverName
- Your server endpoint where this API is invoked.public void setServerPath(String serverPath)
Your server path where this API is invoked.
serverPath
- Your server path where this API is invoked.public String getServerPath()
Your server path where this API is invoked.
public ContextDataType withServerPath(String serverPath)
Your server path where this API is invoked.
serverPath
- Your server path where this API is invoked.public List<HttpHeader> getHttpHeaders()
HttpHeaders received on your server in same order.
public void setHttpHeaders(Collection<HttpHeader> httpHeaders)
HttpHeaders received on your server in same order.
httpHeaders
- HttpHeaders received on your server in same order.public ContextDataType withHttpHeaders(HttpHeader... httpHeaders)
HttpHeaders received on your server in same order.
NOTE: This method appends the values to the existing list (if any). Use
setHttpHeaders(java.util.Collection)
or withHttpHeaders(java.util.Collection)
if you want to
override the existing values.
httpHeaders
- HttpHeaders received on your server in same order.public ContextDataType withHttpHeaders(Collection<HttpHeader> httpHeaders)
HttpHeaders received on your server in same order.
httpHeaders
- HttpHeaders received on your server in same order.public void setEncodedData(String encodedData)
Encoded data containing device fingerprinting details, collected using the Amazon Cognito context data collection library.
encodedData
- Encoded data containing device fingerprinting details, collected using the Amazon Cognito context data
collection library.public String getEncodedData()
Encoded data containing device fingerprinting details, collected using the Amazon Cognito context data collection library.
public ContextDataType withEncodedData(String encodedData)
Encoded data containing device fingerprinting details, collected using the Amazon Cognito context data collection library.
encodedData
- Encoded data containing device fingerprinting details, collected using the Amazon Cognito context data
collection library.public String toString()
toString
in class Object
Object.toString()
public ContextDataType clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.