@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 device-fingerprint details that your app collected with the Amazon Cognito context data collection
library.
|
List<HttpHeader> |
getHttpHeaders()
HttpHeaders received on your server in same order.
|
String |
getIpAddress()
The source IP address of your user's device.
|
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 device-fingerprint details that your app collected with the Amazon Cognito context data collection
library.
|
void |
setHttpHeaders(Collection<HttpHeader> httpHeaders)
HttpHeaders received on your server in same order.
|
void |
setIpAddress(String ipAddress)
The source IP address of your user's device.
|
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 device-fingerprint details that your app collected with 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)
The source IP address of your user's device.
|
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)
The source IP address of your user's device.
ipAddress
- The source IP address of your user's device.public String getIpAddress()
The source IP address of your user's device.
public ContextDataType withIpAddress(String ipAddress)
The source IP address of your user's device.
ipAddress
- The source IP address of your user's device.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 device-fingerprint details that your app collected with the Amazon Cognito context data collection library. For more information, see Adding user device and session data to API requests.
encodedData
- Encoded device-fingerprint details that your app collected with the Amazon Cognito context data collection
library. For more information, see Adding user device and session data to API requests.public String getEncodedData()
Encoded device-fingerprint details that your app collected with the Amazon Cognito context data collection library. For more information, see Adding user device and session data to API requests.
public ContextDataType withEncodedData(String encodedData)
Encoded device-fingerprint details that your app collected with the Amazon Cognito context data collection library. For more information, see Adding user device and session data to API requests.
encodedData
- Encoded device-fingerprint details that your app collected with the Amazon Cognito context data collection
library. For more information, see Adding user device and session data to API requests.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.