public DescribePoliciesRequest withPolicyTypes(String... policyTypes) {
        if (this.policyTypes == null) {
            setPolicyTypes(new com.amazonaws.internal.SdkInternalList<String>(policyTypes.length));
        }
        for (String ele : policyTypes) {
            this.policyTypes.add(ele);
        }
        return this;
    }
public DescribePoliciesRequest withPolicyTypes ( String ... policyTypes ) { if ( this . policyTypes == null ) { setPolicyTypes ( new com . amazonaws . internal . SdkInternalList < String > ( policyTypes . length ) ) ; } for ( String ele : policyTypes ) { this . policyTypes . add ( ele ) ; } return this ; }
<p>
One or more policy types. The valid values are <code>SimpleScaling</code>, <code>StepScaling</code>, and
<code>TargetTrackingScaling</code>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPolicyTypes(java.util.Collection)} or {@link #withPolicyTypes(java.util.Collection)} if you want to
override the existing values.
</p>

@param policyTypes
One or more policy types. The valid values are <code>SimpleScaling</code>, <code>StepScaling</code>, and
<code>TargetTrackingScaling</code>.
@return Returns a reference to this object so that method calls can be chained together.