public CloudTrailProperties withTrailProperties(TrailProperties... trailProperties) {
        if (this.trailProperties == null) {
            setTrailProperties(new java.util.ArrayList<TrailProperties>(trailProperties.length));
        }
        for (TrailProperties ele : trailProperties) {
            this.trailProperties.add(ele);
        }
        return this;
    }
<p>
A <code>TrailProperties</code> object that contains settings for trail properties.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTrailProperties(java.util.Collection)} or {@link #withTrailProperties(java.util.Collection)} if you
want to override the existing values.
</p>

@param trailProperties
       A <code>TrailProperties</code> object that contains settings for trail properties.
@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/CloudTrailProperties.java