Interface PutLogEventsRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CloudWatchLogsRequest.Builder
,CopyableBuilder<PutLogEventsRequest.Builder,PutLogEventsRequest>
,SdkBuilder<PutLogEventsRequest.Builder,PutLogEventsRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- PutLogEventsRequest
public static interface PutLogEventsRequest.Builder extends CloudWatchLogsRequest.Builder, SdkPojo, CopyableBuilder<PutLogEventsRequest.Builder,PutLogEventsRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
PutLogEventsRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
PutLogEventsRequest.Builder
sequenceToken(String sequenceToken)
The sequence token obtained from the response of the previousPutLogEvents
call.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.cloudwatchlogs.model.CloudWatchLogsRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
logGroupName
PutLogEventsRequest.Builder logGroupName(String logGroupName)
The name of the log group.
- Parameters:
logGroupName
- The name of the log group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logStreamName
PutLogEventsRequest.Builder logStreamName(String logStreamName)
The name of the log stream.
- Parameters:
logStreamName
- The name of the log stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logEvents
PutLogEventsRequest.Builder logEvents(Collection<InputLogEvent> logEvents)
The log events.
- Parameters:
logEvents
- The log events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logEvents
PutLogEventsRequest.Builder logEvents(InputLogEvent... logEvents)
The log events.
- Parameters:
logEvents
- The log events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logEvents
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 viaInputLogEvent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#logEvents(List
.) - Parameters:
logEvents
- a consumer that will call methods onInputLogEvent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#logEvents(java.util.Collection
)
-
sequenceToken
PutLogEventsRequest.Builder sequenceToken(String sequenceToken)
The sequence token obtained from the response of the previous
PutLogEvents
call.The
sequenceToken
parameter is now ignored inPutLogEvents
actions.PutLogEvents
actions are now accepted and never returnInvalidSequenceTokenException
orDataAlreadyAcceptedException
even if the sequence token is not valid.- Parameters:
sequenceToken
- The sequence token obtained from the response of the previousPutLogEvents
call.The
sequenceToken
parameter is now ignored inPutLogEvents
actions.PutLogEvents
actions are now accepted and never returnInvalidSequenceTokenException
orDataAlreadyAcceptedException
even if the sequence token is not valid.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
PutLogEventsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
PutLogEventsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-