public TaskContainerProperties withSecrets(Secret... secrets) {
        if (this.secrets == null) {
            setSecrets(new java.util.ArrayList<Secret>(secrets.length));
        }
        for (Secret ele : secrets) {
            this.secrets.add(ele);
        }
        return this;
    }
<p>
The secrets to pass to the container. For more information, see <a
href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data.html">Specifying
Sensitive Data</a> in the Amazon Elastic Container Service Developer Guide.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSecrets(java.util.Collection)} or {@link #withSecrets(java.util.Collection)} if you want to override
the existing values.
</p>

@param secrets
       The secrets to pass to the container. For more information, see <a
       href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data.html"
       >Specifying Sensitive Data</a> in the Amazon Elastic Container Service Developer Guide.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-batch/src/main/java/com/amazonaws/services/batch/model/TaskContainerProperties.java