public DescribeStackResourceDriftsResult withStackResourceDrifts(StackResourceDrift... stackResourceDrifts) {
        if (this.stackResourceDrifts == null) {
            setStackResourceDrifts(new com.amazonaws.internal.SdkInternalList<StackResourceDrift>(stackResourceDrifts.length));
        }
        for (StackResourceDrift ele : stackResourceDrifts) {
            this.stackResourceDrifts.add(ele);
        }
        return this;
    }
public DescribeStackResourceDriftsResult withStackResourceDrifts ( StackResourceDrift ... stackResourceDrifts ) { if ( this . stackResourceDrifts == null ) { setStackResourceDrifts ( new com . amazonaws . internal . SdkInternalList < StackResourceDrift > ( stackResourceDrifts . length ) ) ; } for ( StackResourceDrift ele : stackResourceDrifts ) { this . stackResourceDrifts . add ( ele ) ; } return this ; }
<p>
Drift information for the resources that have been checked for drift in the specified stack. This includes actual
and expected configuration values for resources where AWS CloudFormation detects drift.
</p>
<p>
For a given stack, there will be one <code>StackResourceDrift</code> for each stack resource that has been
checked for drift. Resources that have not yet been checked for drift are not included. Resources that do not
currently support drift detection are not checked, and so not included. For a list of resources that support
drift detection, see <a
href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html"
>Resources that Support Drift Detection</a>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setStackResourceDrifts(java.util.Collection)} or {@link #withStackResourceDrifts(java.util.Collection)}
if you want to override the existing values.
</p>

@param stackResourceDrifts
Drift information for the resources that have been checked for drift in the specified stack. This includes
actual and expected configuration values for resources where AWS CloudFormation detects drift.</p>
<p>
For a given stack, there will be one <code>StackResourceDrift</code> for each stack resource that has been
checked for drift. Resources that have not yet been checked for drift are not included. Resources that do
not currently support drift detection are not checked, and so not included. For a list of resources that
support drift detection, see <a href=
"https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html"
>Resources that Support Drift Detection</a>.
@return Returns a reference to this object so that method calls can be chained together.