Interface CreateScraperRequest.Builder
- All Superinterfaces:
AmpRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<CreateScraperRequest.Builder,,CreateScraperRequest> SdkBuilder<CreateScraperRequest.Builder,,CreateScraperRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateScraperRequest
-
Method Summary
Modifier and TypeMethodDescription(optional) An alias to associate with the scraper.clientToken(String clientToken) (Optional) A unique, case-sensitive identifier that you can provide to ensure the idempotency of the request.default CreateScraperRequest.Builderdestination(Consumer<Destination.Builder> destination) The destination where the scraper sends the collected metrics.destination(Destination destination) The destination where the scraper sends the collected metrics.exporters(Collection<ExporterConfiguration> exporters) The exporter configurations for the scraper.exporters(Consumer<ExporterConfiguration.Builder>... exporters) The exporter configurations for the scraper.exporters(ExporterConfiguration... exporters) The exporter configurations for the scraper.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default CreateScraperRequest.BuilderroleConfiguration(Consumer<RoleConfiguration.Builder> roleConfiguration) Use this structure to enable cross-account access, so that you can use a target account to access Prometheus metrics from source accounts.roleConfiguration(RoleConfiguration roleConfiguration) Use this structure to enable cross-account access, so that you can use a target account to access Prometheus metrics from source accounts.default CreateScraperRequest.BuilderscrapeConfiguration(Consumer<ScrapeConfiguration.Builder> scrapeConfiguration) The configuration file to use in the new scraper.scrapeConfiguration(ScrapeConfiguration scrapeConfiguration) The configuration file to use in the new scraper.default CreateScraperRequest.Buildersource(Consumer<Source.Builder> source) The Amazon EKS or Amazon Web Services cluster from which the scraper will collect metrics.The Amazon EKS or Amazon Web Services cluster from which the scraper will collect metrics.(Optional) The list of tag keys and values to associate with the scraper.Methods inherited from interface software.amazon.awssdk.services.amp.model.AmpRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods 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
-
alias
(optional) An alias to associate with the scraper. This is for your use, and does not need to be unique.
- Parameters:
alias- (optional) An alias to associate with the scraper. This is for your use, and does not need to be unique.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scrapeConfiguration
The configuration file to use in the new scraper. For more information, see Scraper configuration in the Amazon Managed Service for Prometheus User Guide.
- Parameters:
scrapeConfiguration- The configuration file to use in the new scraper. For more information, see Scraper configuration in the Amazon Managed Service for Prometheus User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scrapeConfiguration
default CreateScraperRequest.Builder scrapeConfiguration(Consumer<ScrapeConfiguration.Builder> scrapeConfiguration) The configuration file to use in the new scraper. For more information, see Scraper configuration in the Amazon Managed Service for Prometheus User Guide.
This is a convenience method that creates an instance of theScrapeConfiguration.Builderavoiding the need to create one manually viaScrapeConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscrapeConfiguration(ScrapeConfiguration).- Parameters:
scrapeConfiguration- a consumer that will call methods onScrapeConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
source
The Amazon EKS or Amazon Web Services cluster from which the scraper will collect metrics.
- Parameters:
source- The Amazon EKS or Amazon Web Services cluster from which the scraper will collect metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
The Amazon EKS or Amazon Web Services cluster from which the scraper will collect metrics.
This is a convenience method that creates an instance of theSource.Builderavoiding the need to create one manually viaSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosource(Source).- Parameters:
source- a consumer that will call methods onSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
destination
The destination where the scraper sends the collected metrics. Valid destinations are Amazon Managed Service for Prometheus workspaces and CloudWatch datasets.
- Parameters:
destination- The destination where the scraper sends the collected metrics. Valid destinations are Amazon Managed Service for Prometheus workspaces and CloudWatch datasets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destination
The destination where the scraper sends the collected metrics. Valid destinations are Amazon Managed Service for Prometheus workspaces and CloudWatch datasets.
This is a convenience method that creates an instance of theDestination.Builderavoiding the need to create one manually viaDestination.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todestination(Destination).- Parameters:
destination- a consumer that will call methods onDestination.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
roleConfiguration
Use this structure to enable cross-account access, so that you can use a target account to access Prometheus metrics from source accounts.
- Parameters:
roleConfiguration- Use this structure to enable cross-account access, so that you can use a target account to access Prometheus metrics from source accounts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleConfiguration
default CreateScraperRequest.Builder roleConfiguration(Consumer<RoleConfiguration.Builder> roleConfiguration) Use this structure to enable cross-account access, so that you can use a target account to access Prometheus metrics from source accounts.
This is a convenience method that creates an instance of theRoleConfiguration.Builderavoiding the need to create one manually viaRoleConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toroleConfiguration(RoleConfiguration).- Parameters:
roleConfiguration- a consumer that will call methods onRoleConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
(Optional) A unique, case-sensitive identifier that you can provide to ensure the idempotency of the request.
- Parameters:
clientToken- (Optional) A unique, case-sensitive identifier that you can provide to ensure the idempotency of the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
(Optional) The list of tag keys and values to associate with the scraper.
- Parameters:
tags- (Optional) The list of tag keys and values to associate with the scraper.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exporters
The exporter configurations for the scraper. You can configure at most one Amazon OpenSearch Service domain. If you don't specify a value, the scraper is created without an exporter configuration.
- Parameters:
exporters- The exporter configurations for the scraper. You can configure at most one Amazon OpenSearch Service domain. If you don't specify a value, the scraper is created without an exporter configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exporters
The exporter configurations for the scraper. You can configure at most one Amazon OpenSearch Service domain. If you don't specify a value, the scraper is created without an exporter configuration.
- Parameters:
exporters- The exporter configurations for the scraper. You can configure at most one Amazon OpenSearch Service domain. If you don't specify a value, the scraper is created without an exporter configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exporters
The exporter configurations for the scraper. You can configure at most one Amazon OpenSearch Service domain. If you don't specify a value, the scraper is created without an exporter configuration.
This is a convenience method that creates an instance of theExporterConfiguration.Builderavoiding the need to create one manually viaExporterConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexporters(List<ExporterConfiguration>).- Parameters:
exporters- a consumer that will call methods onExporterConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateScraperRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateScraperRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-