Class LiveTailSessionUpdate.BuilderImpl
- java.lang.Object
-
- software.amazon.awssdk.services.cloudwatchlogs.model.LiveTailSessionUpdate.BuilderImpl
-
- All Implemented Interfaces:
SdkPojo,LiveTailSessionUpdate.Builder,Buildable,CopyableBuilder<LiveTailSessionUpdate.Builder,LiveTailSessionUpdate>,SdkBuilder<LiveTailSessionUpdate.Builder,LiveTailSessionUpdate>
- Enclosing class:
- LiveTailSessionUpdate
protected static class LiveTailSessionUpdate.BuilderImpl extends Object implements LiveTailSessionUpdate.Builder
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilderImpl()protectedBuilderImpl(LiveTailSessionUpdate model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LiveTailSessionUpdatebuild()LiveTailSessionMetadata.BuildergetSessionMetadata()List<LiveTailSessionLogEvent.Builder>getSessionResults()List<SdkField<?>>sdkFields()LiveTailSessionUpdate.BuildersessionMetadata(LiveTailSessionMetadata sessionMetadata)This object contains the session metadata for a Live Tail session.LiveTailSessionUpdate.BuildersessionResults(Collection<LiveTailSessionLogEvent> sessionResults)An array, where each member of the array includes the information for one log event in the Live Tail session.LiveTailSessionUpdate.BuildersessionResults(Consumer<LiveTailSessionLogEvent.Builder>... sessionResults)An array, where each member of the array includes the information for one log event in the Live Tail session.LiveTailSessionUpdate.BuildersessionResults(LiveTailSessionLogEvent... sessionResults)An array, where each member of the array includes the information for one log event in the Live Tail session.voidsetSessionMetadata(software.amazon.awssdk.services.cloudwatchlogs.model.LiveTailSessionMetadata.BuilderImpl sessionMetadata)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, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.cloudwatchlogs.model.LiveTailSessionUpdate.Builder
sessionMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields
-
-
-
-
Constructor Detail
-
BuilderImpl
protected BuilderImpl()
-
BuilderImpl
protected BuilderImpl(LiveTailSessionUpdate model)
-
-
Method Detail
-
getSessionMetadata
public final LiveTailSessionMetadata.Builder getSessionMetadata()
-
setSessionMetadata
public final void setSessionMetadata(software.amazon.awssdk.services.cloudwatchlogs.model.LiveTailSessionMetadata.BuilderImpl sessionMetadata)
-
sessionMetadata
public final LiveTailSessionUpdate.Builder sessionMetadata(LiveTailSessionMetadata 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
public final List<LiveTailSessionLogEvent.Builder> 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 to#sessionResults(List.) - 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:
#sessionResults(java.util.Collection)
-
build
public LiveTailSessionUpdate build()
- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkBuilder<LiveTailSessionUpdate.Builder,LiveTailSessionUpdate>
-
-