public static interface PutLogEventsRequest.Builder extends CloudWatchLogsRequest.Builder, CopyableBuilder<PutLogEventsRequest.Builder,PutLogEventsRequest>
| Modifier and Type | Method and Description |
|---|---|
PutLogEventsRequest.Builder |
logEvents(Collection<InputLogEvent> logEvents)
The log events.
|
PutLogEventsRequest.Builder |
logEvents(Consumer<InputLogEvent.Builder>... logEvents)
The log events.
|
PutLogEventsRequest.Builder |
logEvents(InputLogEvent... logEvents)
The log events.
|
PutLogEventsRequest.Builder |
logGroupName(String logGroupName)
The name of the log group.
|
PutLogEventsRequest.Builder |
logStreamName(String logStreamName)
The name of the log stream.
|
PutLogEventsRequest.Builder |
requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
Add an optional request override configuration.
|
PutLogEventsRequest.Builder |
requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
Add an optional request override configuration.
|
PutLogEventsRequest.Builder |
sequenceToken(String sequenceToken)
The sequence token obtained from the response of the previous
PutLogEvents call. |
buildrequestOverrideConfigcopyapply, buildPutLogEventsRequest.Builder logGroupName(String logGroupName)
The name of the log group.
logGroupName - The name of the log group.PutLogEventsRequest.Builder logStreamName(String logStreamName)
The name of the log stream.
logStreamName - The name of the log stream.PutLogEventsRequest.Builder logEvents(Collection<InputLogEvent> logEvents)
The log events.
logEvents - The log events.PutLogEventsRequest.Builder logEvents(InputLogEvent... logEvents)
The log events.
logEvents - The log events.PutLogEventsRequest.Builder logEvents(Consumer<InputLogEvent.Builder>... logEvents)
The log events.
This is a convenience that creates an instance of theList.Builder avoiding the need
to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and
its result is passed to #logEvents(List) .logEvents - a consumer that will call methods on List.Builder #logEvents(List) PutLogEventsRequest.Builder sequenceToken(String sequenceToken)
The sequence token obtained from the response of the previous PutLogEvents call. An upload in a
newly created log stream does not require a sequence token. You can also get the sequence token using
DescribeLogStreams. If you call PutLogEvents twice within a narrow time period using the
same value for sequenceToken, both calls may be successful, or one may be rejected.
sequenceToken - The sequence token obtained from the response of the previous PutLogEvents call. An
upload in a newly created log stream does not require a sequence token. You can also get the sequence
token using DescribeLogStreams. If you call PutLogEvents twice within a narrow
time period using the same value for sequenceToken, both calls may be successful, or one
may be rejected.PutLogEventsRequest.Builder requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.BuilderrequestOverrideConfig in interface AwsRequest.BuilderawsRequestOverrideConfig - The override configuration.PutLogEventsRequest.Builder requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
AwsRequest.BuilderrequestOverrideConfig in interface AwsRequest.BuilderbuilderConsumer - A Consumer to which an empty AwsRequestOverrideConfig.Builder will be given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.