Interface ExporterConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ExporterConfiguration.Builder,,ExporterConfiguration> SdkBuilder<ExporterConfiguration.Builder,,ExporterConfiguration> SdkPojo
- Enclosing class:
ExporterConfiguration
@Mutable
@NotThreadSafe
public static interface ExporterConfiguration.Builder
extends SdkPojo, CopyableBuilder<ExporterConfiguration.Builder,ExporterConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ExporterConfiguration.BuilderopenSearchConfiguration(Consumer<OpenSearchExporterConfiguration.Builder> openSearchConfiguration) The configuration that the scraper uses to export metrics to an Amazon OpenSearch Service domain.openSearchConfiguration(OpenSearchExporterConfiguration openSearchConfiguration) The configuration that the scraper uses to export metrics to an Amazon OpenSearch Service domain.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, sdkFieldNameToField, sdkFields
-
Method Details
-
openSearchConfiguration
ExporterConfiguration.Builder openSearchConfiguration(OpenSearchExporterConfiguration openSearchConfiguration) The configuration that the scraper uses to export metrics to an Amazon OpenSearch Service domain.
- Parameters:
openSearchConfiguration- The configuration that the scraper uses to export metrics to an Amazon OpenSearch Service domain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
openSearchConfiguration
default ExporterConfiguration.Builder openSearchConfiguration(Consumer<OpenSearchExporterConfiguration.Builder> openSearchConfiguration) The configuration that the scraper uses to export metrics to an Amazon OpenSearch Service domain.
This is a convenience method that creates an instance of theOpenSearchExporterConfiguration.Builderavoiding the need to create one manually viaOpenSearchExporterConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toopenSearchConfiguration(OpenSearchExporterConfiguration).- Parameters:
openSearchConfiguration- a consumer that will call methods onOpenSearchExporterConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-