Interface PutLogEventsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CloudWatchLogsRequest.Builder
,CopyableBuilder<PutLogEventsRequest.Builder,
,PutLogEventsRequest> SdkBuilder<PutLogEventsRequest.Builder,
,PutLogEventsRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
PutLogEventsRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault PutLogEventsRequest.Builder
entity
(Consumer<Entity.Builder> entity) The entity associated with the log events.The entity associated with the log events.logEvents
(Collection<InputLogEvent> logEvents) The log events.logEvents
(Consumer<InputLogEvent.Builder>... logEvents) The log events.logEvents
(InputLogEvent... logEvents) The log events.logGroupName
(String logGroupName) The name of the log group.logStreamName
(String logStreamName) The name of the log stream.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.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, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
The log events.
- Parameters:
logEvents
- The log events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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 tologEvents(List<InputLogEvent>)
.- 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:
-
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.
-
entity
The entity associated with the log events.
- Parameters:
entity
- The entity associated with the log events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entity
The entity associated with the log events.
This is a convenience method that creates an instance of theEntity.Builder
avoiding the need to create one manually viaEntity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toentity(Entity)
.- Parameters:
entity
- a consumer that will call methods onEntity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
PutLogEventsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutLogEventsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-