@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.
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)
Marshalls this structured data using the given
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
.FirelensConfigurationType
public String getType()
The log router to use. The valid values are fluentd
or fluentbit
.
fluentd
or fluentbit
.FirelensConfigurationType
public 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
.FirelensConfigurationType
public 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
.FirelensConfigurationType
public 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 Object
Object.toString()
public FirelensConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.