public ResourceIdentifier withCognitoIdentityPoolId(String cognitoIdentityPoolId) {
        setCognitoIdentityPoolId(cognitoIdentityPoolId);
        return this;
    }
<p>
The ID of the Amazon Cognito identity pool.
</p>

@param cognitoIdentityPoolId
       The ID of the Amazon Cognito identity pool.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/ResourceIdentifier.java