public ListSamplesResult withSamples(Sample... samples) {
        if (this.samples == null) {
            setSamples(new java.util.ArrayList<Sample>(samples.length));
        }
        for (Sample ele : samples) {
            this.samples.add(ele);
        }
        return this;
    }
public ListSamplesResult withSamples ( Sample ... samples ) { if ( this . samples == null ) { setSamples ( new java . util . ArrayList < Sample > ( samples . length ) ) ; } for ( Sample ele : samples ) { this . samples . add ( ele ) ; } return this ; }
<p>
Information about the samples.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSamples(java.util.Collection)} or {@link #withSamples(java.util.Collection)} if you want to override
the existing values.
</p>

@param samples
Information about the samples.
@return Returns a reference to this object so that method calls can be chained together.