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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LogSource.Builderaccount(String account)Specify the account from which you want to collect logs.LogSource.Builderregion(String region)Specify the Regions from which you want to collect logs.LogSource.Buildersources(Collection<LogSourceResource> sources)Specify the sources from which you want to collect logs.LogSource.Buildersources(Consumer<LogSourceResource.Builder>... sources)Specify the sources from which you want to collect logs.LogSource.Buildersources(LogSourceResource... sources)Specify the sources from which you want to collect logs.-
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
-
account
LogSource.Builder account(String 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
LogSource.Builder region(String 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
LogSource.Builder sources(Collection<LogSourceResource> 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
LogSource.Builder sources(LogSourceResource... 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
LogSource.Builder sources(Consumer<LogSourceResource.Builder>... 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 to#sources(List.) - 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:
#sources(java.util.Collection)
-
-