Interface ExporterConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ExporterConfiguration.Builder,,ExporterConfiguration> SdkBuilder<ExporterConfiguration.Builder,,ExporterConfiguration> SdkPojo
- Enclosing class:
ExporterConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondefault ExporterConfiguration.BuilderkafkaConfiguration(Consumer<KafkaExporterConfiguration.Builder> kafkaConfiguration) The configuration that the scraper uses to collect metrics from an Amazon MSK cluster through a managed Kafka exporter.kafkaConfiguration(KafkaExporterConfiguration kafkaConfiguration) The configuration that the scraper uses to collect metrics from an Amazon MSK cluster through a managed Kafka exporter.default 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:
-
kafkaConfiguration
The configuration that the scraper uses to collect metrics from an Amazon MSK cluster through a managed Kafka exporter.
- Parameters:
kafkaConfiguration- The configuration that the scraper uses to collect metrics from an Amazon MSK cluster through a managed Kafka exporter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kafkaConfiguration
default ExporterConfiguration.Builder kafkaConfiguration(Consumer<KafkaExporterConfiguration.Builder> kafkaConfiguration) The configuration that the scraper uses to collect metrics from an Amazon MSK cluster through a managed Kafka exporter.
This is a convenience method that creates an instance of theKafkaExporterConfiguration.Builderavoiding the need to create one manually viaKafkaExporterConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tokafkaConfiguration(KafkaExporterConfiguration).- Parameters:
kafkaConfiguration- a consumer that will call methods onKafkaExporterConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-