Class DeviceTracking.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.DeviceTracking.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DeviceTracking>
- Enclosing interface:
DeviceTracking
@Stability(Stable)
public static final class DeviceTracking.Builder
extends Object
implements software.amazon.jsii.Builder<DeviceTracking>
A builder for
DeviceTracking
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.challengeRequiredOnNewDevice
(Boolean challengeRequiredOnNewDevice) Sets the value ofDeviceTracking.getChallengeRequiredOnNewDevice()
deviceOnlyRememberedOnUserPrompt
(Boolean deviceOnlyRememberedOnUserPrompt) Sets the value ofDeviceTracking.getDeviceOnlyRememberedOnUserPrompt()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
challengeRequiredOnNewDevice
@Stability(Stable) public DeviceTracking.Builder challengeRequiredOnNewDevice(Boolean challengeRequiredOnNewDevice) Sets the value ofDeviceTracking.getChallengeRequiredOnNewDevice()
- Parameters:
challengeRequiredOnNewDevice
- Indicates whether a challenge is required on a new device. This parameter is required. Only applicable to a new device.- Returns:
this
-
deviceOnlyRememberedOnUserPrompt
@Stability(Stable) public DeviceTracking.Builder deviceOnlyRememberedOnUserPrompt(Boolean deviceOnlyRememberedOnUserPrompt) Sets the value ofDeviceTracking.getDeviceOnlyRememberedOnUserPrompt()
- Parameters:
deviceOnlyRememberedOnUserPrompt
- If true, a device is only remembered on user prompt. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DeviceTracking>
- Returns:
- a new instance of
DeviceTracking
- Throws:
NullPointerException
- if any required attribute was not provided
-