public static interface PutLogEventsRequest.Builder extends CloudWatchLogsRequest.Builder, SdkPojo, 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 |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
PutLogEventsRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
PutLogEventsRequest.Builder |
sequenceToken(String sequenceToken)
The sequence token obtained from the response of the previous
PutLogEvents call. |
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, 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 method that creates an instance of theInputLogEvent.Builder avoiding the need to
create one manually via InputLogEvent.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #logEvents(List.
logEvents - a consumer that will call methods on
InputLogEvent.Builder#logEvents(java.util.Collection) 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 might be successful or one might 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 might be successful or one might be
rejected.PutLogEventsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderPutLogEventsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2022. All rights reserved.