Interface LogSource.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<LogSource.Builder,,LogSource> SdkBuilder<LogSource.Builder,,LogSource> SdkPojo
- Enclosing class:
LogSource
public static interface LogSource.Builder
extends SdkPojo, CopyableBuilder<LogSource.Builder,LogSource>
-
Method Summary
Modifier and TypeMethodDescriptionSpecify the account from which you want to collect logs.Specify the Regions from which you want to collect logs.sources(Collection<LogSourceResource> sources) Specify the sources from which you want to collect logs.sources(Consumer<LogSourceResource.Builder>... sources) Specify the sources from which you want to collect logs.sources(LogSourceResource... sources) Specify the sources from which you want to collect logs.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
account
Specify the account from which you want to collect logs.
- Parameters:
account- Specify the account from which you want to collect logs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
region
Specify the Regions from which you want to collect logs.
- Parameters:
region- Specify the Regions from which you want to collect logs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sources
Specify the sources from which you want to collect logs.
- Parameters:
sources- Specify the sources from which you want to collect logs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sources
Specify the sources from which you want to collect logs.
- Parameters:
sources- Specify the sources from which you want to collect logs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sources
Specify the sources from which you want to collect logs.
This is a convenience method that creates an instance of theLogSourceResource.Builderavoiding the need to create one manually viaLogSourceResource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosources(List<LogSourceResource>).- Parameters:
sources- a consumer that will call methods onLogSourceResource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-