public ContainerDetail withSecrets(java.util.Collection<Secret> secrets) {
        setSecrets(secrets);
        return this;
    }
<p>
The secrets to pass to the container. For more information, see <a
href="https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html">Specifying sensitive
data</a> in the <i>Batch User Guide</i>.
</p>

@param secrets
       The secrets to pass to the container. For more information, see <a
       href="https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html">Specifying
       sensitive data</a> in the <i>Batch User Guide</i>.
@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/ContainerDetail.java