public void setEnvironment(java.util.Collection<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails> environment) {
        if (environment == null) {
            this.environment = null;
            return;
        }

        this.environment = new java.util.ArrayList<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails>(environment);
    }
<p>
The environment variables to pass to a container.
</p>

@param environment
       The environment variables to pass to a container.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsEcsTaskDefinitionContainerDefinitionsDetails.java