public DescribeTrustsRequest withTrustIds(String... trustIds) {
        if (this.trustIds == null) {
            setTrustIds(new com.amazonaws.internal.SdkInternalList<String>(trustIds.length));
        }
        for (String ele : trustIds) {
            this.trustIds.add(ele);
        }
        return this;
    }
public DescribeTrustsRequest withTrustIds ( String ... trustIds ) { if ( this . trustIds == null ) { setTrustIds ( new com . amazonaws . internal . SdkInternalList < String > ( trustIds . length ) ) ; } for ( String ele : trustIds ) { this . trustIds . add ( ele ) ; } return this ; }
<p>
A list of identifiers of the trust relationships for which to obtain the information. If this member is null, all
trust relationships that belong to the current account are returned.
</p>
<p>
An empty list results in an <code>InvalidParameterException</code> being thrown.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTrustIds(java.util.Collection)} or {@link #withTrustIds(java.util.Collection)} if you want to override
the existing values.
</p>

@param trustIds
A list of identifiers of the trust relationships for which to obtain the information. If this member is
null, all trust relationships that belong to the current account are returned.</p>
<p>
An empty list results in an <code>InvalidParameterException</code> being thrown.
@return Returns a reference to this object so that method calls can be chained together.