Class LiveTailSessionUpdate.BuilderImpl
- All Implemented Interfaces:
SdkPojo,LiveTailSessionUpdate.Builder,Buildable,CopyableBuilder<LiveTailSessionUpdate.Builder,,LiveTailSessionUpdate> SdkBuilder<LiveTailSessionUpdate.Builder,LiveTailSessionUpdate>
- Enclosing class:
- LiveTailSessionUpdate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()sessionMetadata(LiveTailSessionMetadata sessionMetadata) This object contains the session metadata for a Live Tail session.sessionResults(Collection<LiveTailSessionLogEvent> sessionResults) An array, where each member of the array includes the information for one log event in the Live Tail session.sessionResults(Consumer<LiveTailSessionLogEvent.Builder>... sessionResults) An array, where each member of the array includes the information for one log event in the Live Tail session.sessionResults(LiveTailSessionLogEvent... sessionResults) An array, where each member of the array includes the information for one log event in the Live Tail session.final voidsetSessionMetadata(software.amazon.awssdk.services.cloudwatchlogs.model.LiveTailSessionMetadata.BuilderImpl sessionMetadata) final voidsetSessionResults(Collection<software.amazon.awssdk.services.cloudwatchlogs.model.LiveTailSessionLogEvent.BuilderImpl> sessionResults) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.cloudwatchlogs.model.LiveTailSessionUpdate.Builder
sessionMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutationMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields
-
Constructor Details
-
BuilderImpl
protected BuilderImpl() -
BuilderImpl
-
-
Method Details
-
getSessionMetadata
-
setSessionMetadata
public final void setSessionMetadata(software.amazon.awssdk.services.cloudwatchlogs.model.LiveTailSessionMetadata.BuilderImpl sessionMetadata) -
sessionMetadata
Description copied from interface:LiveTailSessionUpdate.BuilderThis object contains the session metadata for a Live Tail session.
- Specified by:
sessionMetadatain interfaceLiveTailSessionUpdate.Builder- Parameters:
sessionMetadata- This object contains the session metadata for a Live Tail session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getSessionResults
-
setSessionResults
public final void setSessionResults(Collection<software.amazon.awssdk.services.cloudwatchlogs.model.LiveTailSessionLogEvent.BuilderImpl> sessionResults) -
sessionResults
public final LiveTailSessionUpdate.Builder sessionResults(Collection<LiveTailSessionLogEvent> sessionResults) Description copied from interface:LiveTailSessionUpdate.BuilderAn array, where each member of the array includes the information for one log event in the Live Tail session.
A
sessionResultsarray can include as many as 500 log events. If the number of log events matching the request exceeds 500 per second, the log events are sampled down to 500 log events to be included in eachsessionUpdatestructure.- Specified by:
sessionResultsin interfaceLiveTailSessionUpdate.Builder- Parameters:
sessionResults- An array, where each member of the array includes the information for one log event in the Live Tail session.A
sessionResultsarray can include as many as 500 log events. If the number of log events matching the request exceeds 500 per second, the log events are sampled down to 500 log events to be included in eachsessionUpdatestructure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionResults
@SafeVarargs public final LiveTailSessionUpdate.Builder sessionResults(LiveTailSessionLogEvent... sessionResults) Description copied from interface:LiveTailSessionUpdate.BuilderAn array, where each member of the array includes the information for one log event in the Live Tail session.
A
sessionResultsarray can include as many as 500 log events. If the number of log events matching the request exceeds 500 per second, the log events are sampled down to 500 log events to be included in eachsessionUpdatestructure.- Specified by:
sessionResultsin interfaceLiveTailSessionUpdate.Builder- Parameters:
sessionResults- An array, where each member of the array includes the information for one log event in the Live Tail session.A
sessionResultsarray can include as many as 500 log events. If the number of log events matching the request exceeds 500 per second, the log events are sampled down to 500 log events to be included in eachsessionUpdatestructure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionResults
@SafeVarargs public final LiveTailSessionUpdate.Builder sessionResults(Consumer<LiveTailSessionLogEvent.Builder>... sessionResults) Description copied from interface:LiveTailSessionUpdate.BuilderAn array, where each member of the array includes the information for one log event in the Live Tail session.
A
This is a convenience method that creates an instance of thesessionResultsarray can include as many as 500 log events. If the number of log events matching the request exceeds 500 per second, the log events are sampled down to 500 log events to be included in eachsessionUpdatestructure.LiveTailSessionLogEvent.Builderavoiding the need to create one manually viaLiveTailSessionLogEvent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toLiveTailSessionUpdate.Builder.sessionResults(List<LiveTailSessionLogEvent>).- Specified by:
sessionResultsin interfaceLiveTailSessionUpdate.Builder- Parameters:
sessionResults- a consumer that will call methods onLiveTailSessionLogEvent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
build
- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkBuilder<LiveTailSessionUpdate.Builder,LiveTailSessionUpdate>
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-