public AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails withSecretOptions(
            AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationSecretOptionsDetails... secretOptions) {
        if (this.secretOptions == null) {
            setSecretOptions(new java.util.ArrayList<AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationSecretOptionsDetails>(secretOptions.length));
        }
        for (AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationSecretOptionsDetails ele : secretOptions) {
            this.secretOptions.add(ele);
        }
        return this;
    }
<p>
The secrets to pass to the log configuration.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSecretOptions(java.util.Collection)} or {@link #withSecretOptions(java.util.Collection)} if you want
to override the existing values.
</p>

@param secretOptions
       The secrets to pass to the log configuration.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails.java