@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FirelensConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
The FireLens configuration for the container. This is used to specify and configure a log router for container logs. For more information, see Custom Log Routing in the Amazon Elastic Container Service Developer Guide.
| Constructor and Description |
|---|
FirelensConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
FirelensConfiguration |
addOptionsEntry(String key,
String value) |
FirelensConfiguration |
clearOptionsEntries()
Removes all the entries added into Options.
|
FirelensConfiguration |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getOptions()
The options to use when configuring the log router.
|
String |
getType()
The log router to use.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setOptions(Map<String,String> options)
The options to use when configuring the log router.
|
void |
setType(String type)
The log router to use.
|
String |
toString()
Returns a string representation of this object.
|
FirelensConfiguration |
withOptions(Map<String,String> options)
The options to use when configuring the log router.
|
FirelensConfiguration |
withType(FirelensConfigurationType type)
The log router to use.
|
FirelensConfiguration |
withType(String type)
The log router to use.
|
public void setType(String type)
The log router to use. The valid values are fluentd or fluentbit.
type - The log router to use. The valid values are fluentd or fluentbit.FirelensConfigurationTypepublic String getType()
The log router to use. The valid values are fluentd or fluentbit.
fluentd or fluentbit.FirelensConfigurationTypepublic FirelensConfiguration withType(String type)
The log router to use. The valid values are fluentd or fluentbit.
type - The log router to use. The valid values are fluentd or fluentbit.FirelensConfigurationTypepublic FirelensConfiguration withType(FirelensConfigurationType type)
The log router to use. The valid values are fluentd or fluentbit.
type - The log router to use. The valid values are fluentd or fluentbit.FirelensConfigurationTypepublic Map<String,String> getOptions()
The options to use when configuring the log router. This field is optional and can be used to add additional
metadata, such as the task, task definition, cluster, and container instance details to the log event. If
specified, the syntax to use is "options":{"enable-ecs-log-metadata":"true|false"}.
"options":{"enable-ecs-log-metadata":"true|false"}.public void setOptions(Map<String,String> options)
The options to use when configuring the log router. This field is optional and can be used to add additional
metadata, such as the task, task definition, cluster, and container instance details to the log event. If
specified, the syntax to use is "options":{"enable-ecs-log-metadata":"true|false"}.
options - The options to use when configuring the log router. This field is optional and can be used to add
additional metadata, such as the task, task definition, cluster, and container instance details to the log
event. If specified, the syntax to use is "options":{"enable-ecs-log-metadata":"true|false"}.public FirelensConfiguration withOptions(Map<String,String> options)
The options to use when configuring the log router. This field is optional and can be used to add additional
metadata, such as the task, task definition, cluster, and container instance details to the log event. If
specified, the syntax to use is "options":{"enable-ecs-log-metadata":"true|false"}.
options - The options to use when configuring the log router. This field is optional and can be used to add
additional metadata, such as the task, task definition, cluster, and container instance details to the log
event. If specified, the syntax to use is "options":{"enable-ecs-log-metadata":"true|false"}.public FirelensConfiguration addOptionsEntry(String key, String value)
public FirelensConfiguration clearOptionsEntries()
public String toString()
toString in class ObjectObject.toString()public FirelensConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2019. All rights reserved.