Interface ResultReuseConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ResultReuseConfiguration.Builder,,ResultReuseConfiguration> SdkBuilder<ResultReuseConfiguration.Builder,,ResultReuseConfiguration> SdkPojo
- Enclosing class:
ResultReuseConfiguration
public static interface ResultReuseConfiguration.Builder
extends SdkPojo, CopyableBuilder<ResultReuseConfiguration.Builder,ResultReuseConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResultReuseConfiguration.BuilderresultReuseByAgeConfiguration(Consumer<ResultReuseByAgeConfiguration.Builder> resultReuseByAgeConfiguration) Specifies whether previous query results are reused, and if so, their maximum age.resultReuseByAgeConfiguration(ResultReuseByAgeConfiguration resultReuseByAgeConfiguration) Specifies whether previous query results are reused, and if so, their maximum age.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
-
resultReuseByAgeConfiguration
ResultReuseConfiguration.Builder resultReuseByAgeConfiguration(ResultReuseByAgeConfiguration resultReuseByAgeConfiguration) Specifies whether previous query results are reused, and if so, their maximum age.
- Parameters:
resultReuseByAgeConfiguration- Specifies whether previous query results are reused, and if so, their maximum age.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultReuseByAgeConfiguration
default ResultReuseConfiguration.Builder resultReuseByAgeConfiguration(Consumer<ResultReuseByAgeConfiguration.Builder> resultReuseByAgeConfiguration) Specifies whether previous query results are reused, and if so, their maximum age.
This is a convenience method that creates an instance of theResultReuseByAgeConfiguration.Builderavoiding the need to create one manually viaResultReuseByAgeConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresultReuseByAgeConfiguration(ResultReuseByAgeConfiguration).- Parameters:
resultReuseByAgeConfiguration- a consumer that will call methods onResultReuseByAgeConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-