Interface ContextDataType.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ContextDataType.Builder,,ContextDataType> SdkBuilder<ContextDataType.Builder,,ContextDataType> SdkPojo
- Enclosing class:
- ContextDataType
@Mutable
@NotThreadSafe
public static interface ContextDataType.Builder
extends SdkPojo, CopyableBuilder<ContextDataType.Builder,ContextDataType>
-
Method Summary
Modifier and TypeMethodDescriptionencodedData(String encodedData) Encoded device-fingerprint details that your app collected with the Amazon Cognito context data collection library.httpHeaders(Collection<HttpHeader> httpHeaders) The HTTP headers from your user's authentication request.httpHeaders(Consumer<HttpHeader.Builder>... httpHeaders) The HTTP headers from your user's authentication request.httpHeaders(HttpHeader... httpHeaders) The HTTP headers from your user's authentication request.The source IP address of your user's device.serverName(String serverName) The name of your application's service endpoint.serverPath(String serverPath) The path of your application's service endpoint.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
ipAddress
The source IP address of your user's device.
- Parameters:
ipAddress- The source IP address of your user's device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverName
The name of your application's service endpoint.
- Parameters:
serverName- The name of your application's service endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverPath
The path of your application's service endpoint.
- Parameters:
serverPath- The path of your application's service endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
httpHeaders
The HTTP headers from your user's authentication request.
- Parameters:
httpHeaders- The HTTP headers from your user's authentication request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
httpHeaders
The HTTP headers from your user's authentication request.
- Parameters:
httpHeaders- The HTTP headers from your user's authentication request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
httpHeaders
The HTTP headers from your user's authentication request.
This is a convenience method that creates an instance of theHttpHeader.Builderavoiding the need to create one manually viaHttpHeader.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohttpHeaders(List<HttpHeader>).- Parameters:
httpHeaders- a consumer that will call methods onHttpHeader.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-