public ContainerDefinition 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/AmazonECS/latest/developerguide/specifying-sensitive-data.html">Specifying
Sensitive Data</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
</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 <i>Amazon Elastic Container Service Developer Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/ContainerDefinition.java