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
-
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 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.Builderavoiding the need to create one manually viaInputLogEvent.builder().When the
Consumercompletes,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
PutLogEventscall.The
sequenceTokenparameter is now ignored inPutLogEventsactions.PutLogEventsactions are now accepted and never returnInvalidSequenceTokenExceptionorDataAlreadyAcceptedExceptioneven if the sequence token is not valid.- Parameters:
sequenceToken- The sequence token obtained from the response of the previousPutLogEventscall.The
sequenceTokenparameter is now ignored inPutLogEventsactions.PutLogEventsactions are now accepted and never returnInvalidSequenceTokenExceptionorDataAlreadyAcceptedExceptioneven if the sequence token is not valid.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entity
PutLogEventsRequest.Builder entity(Entity 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
default PutLogEventsRequest.Builder entity(Consumer<Entity.Builder> entity)
The entity associated with the log events.
This is a convenience method that creates an instance of theEntity.Builderavoiding the need to create one manually viaEntity.builder().When the
Consumercompletes,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:
entity(Entity)
-
overrideConfiguration
PutLogEventsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
PutLogEventsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-