/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.securityhub.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The log configuration specification for the container. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails implements Serializable, Cloneable, StructuredPojo { /** ** The log driver to use for the container. *
** Valid values on Fargate are as follows: *
*
* awsfirelens
*
* awslogs
*
* splunk
*
* Valid values on Amazon EC2 are as follows: *
*
* awsfirelens
*
* awslogs
*
* fluentd
*
* gelf
*
* journald
*
* json-file
*
* logentries
*
* splunk
*
* syslog
*
* The configuration options to send to the log driver. Requires version 1.19 of the Docker Remote API or greater on * your container instance. *
*/ private java.util.Map* The secrets to pass to the log configuration. *
*/ private java.util.List* The log driver to use for the container. *
** Valid values on Fargate are as follows: *
*
* awsfirelens
*
* awslogs
*
* splunk
*
* Valid values on Amazon EC2 are as follows: *
*
* awsfirelens
*
* awslogs
*
* fluentd
*
* gelf
*
* journald
*
* json-file
*
* logentries
*
* splunk
*
* syslog
*
* Valid values on Fargate are as follows: *
*
* awsfirelens
*
* awslogs
*
* splunk
*
* Valid values on Amazon EC2 are as follows: *
*
* awsfirelens
*
* awslogs
*
* fluentd
*
* gelf
*
* journald
*
* json-file
*
* logentries
*
* splunk
*
* syslog
*
* The log driver to use for the container. *
** Valid values on Fargate are as follows: *
*
* awsfirelens
*
* awslogs
*
* splunk
*
* Valid values on Amazon EC2 are as follows: *
*
* awsfirelens
*
* awslogs
*
* fluentd
*
* gelf
*
* journald
*
* json-file
*
* logentries
*
* splunk
*
* syslog
*
* Valid values on Fargate are as follows: *
*
* awsfirelens
*
* awslogs
*
* splunk
*
* Valid values on Amazon EC2 are as follows: *
*
* awsfirelens
*
* awslogs
*
* fluentd
*
* gelf
*
* journald
*
* json-file
*
* logentries
*
* splunk
*
* syslog
*
* The log driver to use for the container. *
** Valid values on Fargate are as follows: *
*
* awsfirelens
*
* awslogs
*
* splunk
*
* Valid values on Amazon EC2 are as follows: *
*
* awsfirelens
*
* awslogs
*
* fluentd
*
* gelf
*
* journald
*
* json-file
*
* logentries
*
* splunk
*
* syslog
*
* Valid values on Fargate are as follows: *
*
* awsfirelens
*
* awslogs
*
* splunk
*
* Valid values on Amazon EC2 are as follows: *
*
* awsfirelens
*
* awslogs
*
* fluentd
*
* gelf
*
* journald
*
* json-file
*
* logentries
*
* splunk
*
* syslog
*
* The configuration options to send to the log driver. Requires version 1.19 of the Docker Remote API or greater on * your container instance. *
* * @return The configuration options to send to the log driver. Requires version 1.19 of the Docker Remote API or * greater on your container instance. */ public java.util.Map* The configuration options to send to the log driver. Requires version 1.19 of the Docker Remote API or greater on * your container instance. *
* * @param options * The configuration options to send to the log driver. Requires version 1.19 of the Docker Remote API or * greater on your container instance. */ public void setOptions(java.util.Map* The configuration options to send to the log driver. Requires version 1.19 of the Docker Remote API or greater on * your container instance. *
* * @param options * The configuration options to send to the log driver. Requires version 1.19 of the Docker Remote API or * greater on your container instance. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails withOptions(java.util.Map* The secrets to pass to the log configuration. *
* * @return The secrets to pass to the log configuration. */ public java.util.List* The secrets to pass to the log configuration. *
* * @param secretOptions * The secrets to pass to the log configuration. */ public void setSecretOptions(java.util.Collection* The secrets to pass to the log configuration. *
** NOTE: 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. *
* * @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. */ public AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails withSecretOptions( AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationSecretOptionsDetails... secretOptions) { if (this.secretOptions == null) { setSecretOptions(new java.util.ArrayList* The secrets to pass to the log configuration. *
* * @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. */ public AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails withSecretOptions( java.util.Collection