public void setDeviceOnlyRememberedOnUserPrompt(Boolean deviceOnlyRememberedOnUserPrompt) {
        this.deviceOnlyRememberedOnUserPrompt = deviceOnlyRememberedOnUserPrompt;
    }
<p>
When true, Amazon Cognito doesn't automatically remember a user's device when your app sends a <a
href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_ConfirmDevice.html">
ConfirmDevice</a> API request. In your app, create a prompt for your user to choose whether they want to remember
their device. Return the user's choice in an <a
href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateDeviceStatus.html">
UpdateDeviceStatus</a> API request.
</p>
<p>
When <code>DeviceOnlyRememberedOnUserPrompt</code> is <code>false</code>, Amazon Cognito immediately remembers
devices that you register in a <code>ConfirmDevice</code> API request.
</p>

@param deviceOnlyRememberedOnUserPrompt
       When true, Amazon Cognito doesn't automatically remember a user's device when your app sends a <a href=
       "https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_ConfirmDevice.html">
       ConfirmDevice</a> API request. In your app, create a prompt for your user to choose whether they want to
       remember their device. Return the user's choice in an <a href=
       "https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateDeviceStatus.html">
       UpdateDeviceStatus</a> API request.</p>
       <p>
       When <code>DeviceOnlyRememberedOnUserPrompt</code> is <code>false</code>, Amazon Cognito immediately
       remembers devices that you register in a <code>ConfirmDevice</code> API request.
aws-java-sdk-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/DeviceConfigurationType.java