public GeneratedPolicyResult withGeneratedPolicies(GeneratedPolicy... generatedPolicies) {
        if (this.generatedPolicies == null) {
            setGeneratedPolicies(new java.util.ArrayList<GeneratedPolicy>(generatedPolicies.length));
        }
        for (GeneratedPolicy ele : generatedPolicies) {
            this.generatedPolicies.add(ele);
        }
        return this;
    }
<p>
The text to use as the content for the new policy. The policy is created using the <a
href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreatePolicy.html">CreatePolicy</a> action.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setGeneratedPolicies(java.util.Collection)} or {@link #withGeneratedPolicies(java.util.Collection)} if
you want to override the existing values.
</p>

@param generatedPolicies
       The text to use as the content for the new policy. The policy is created using the <a
       href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreatePolicy.html">CreatePolicy</a> action.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-accessanalyzer/src/main/java/com/amazonaws/services/accessanalyzer/model/GeneratedPolicyResult.java