public ForgotPasswordRequest withAnalyticsMetadata(AnalyticsMetadataType analyticsMetadata) {
        setAnalyticsMetadata(analyticsMetadata);
        return this;
    }
<p>
The Amazon Pinpoint analytics metadata that contributes to your metrics for <code>ForgotPassword</code> calls.
</p>

@param analyticsMetadata
       The Amazon Pinpoint analytics metadata that contributes to your metrics for <code>ForgotPassword</code>
       calls.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/ForgotPasswordRequest.java