@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UserContextDataType extends Object implements Serializable, Cloneable, StructuredPojo
Contextual data, such as the user's device fingerprint, IP address, or location, used for evaluating the risk of an unexpected event by Amazon Cognito advanced security.
Constructor and Description |
---|
UserContextDataType() |
Modifier and Type | Method and Description |
---|---|
UserContextDataType |
clone() |
boolean |
equals(Object obj) |
String |
getEncodedData()
Encoded device-fingerprint details that your app collected with the Amazon Cognito context data collection
library.
|
String |
getIpAddress()
The source IP address of your user's device.
|
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 |
setIpAddress(String ipAddress)
The source IP address of your user's device.
|
String |
toString()
Returns a string representation of this object.
|
UserContextDataType |
withEncodedData(String encodedData)
Encoded device-fingerprint details that your app collected with the Amazon Cognito context data collection
library.
|
UserContextDataType |
withIpAddress(String ipAddress)
The source IP address of your user's device.
|
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 UserContextDataType withIpAddress(String ipAddress)
The source IP address of your user's device.
ipAddress
- The source IP address of your user's device.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 UserContextDataType 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 UserContextDataType clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.