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) a name 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.Builder
destination
(Consumer<Destination.Builder> destination) The Amazon Managed Service for Prometheus workspace to send metrics to.destination
(Destination destination) The Amazon Managed Service for Prometheus workspace to send metrics to.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default CreateScraperRequest.Builder
scrapeConfiguration
(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.Builder
source
(Consumer<Source.Builder> source) The Amazon EKS cluster from which the scraper will collect metrics.The Amazon EKS 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
build
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
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, sdkFields
-
Method Details
-
alias
(optional) a name to associate with the scraper. This is for your use, and does not need to be unique.
- Parameters:
alias
- (optional) a name 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.
-
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.
-
destination
The Amazon Managed Service for Prometheus workspace to send metrics to.
- Parameters:
destination
- The Amazon Managed Service for Prometheus workspace to send metrics to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destination
The Amazon Managed Service for Prometheus workspace to send metrics to.
This is a convenience method that creates an instance of theDestination.Builder
avoiding the need to create one manually viaDestination.builder()
.When the
Consumer
completes,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:
-
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.Builder
avoiding the need to create one manually viaScrapeConfiguration.builder()
.When the
Consumer
completes,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 cluster from which the scraper will collect metrics.
- Parameters:
source
- The Amazon EKS 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 cluster from which the scraper will collect metrics.
This is a convenience method that creates an instance of theSource.Builder
avoiding the need to create one manually viaSource.builder()
.When the
Consumer
completes,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:
-
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.
-
overrideConfiguration
CreateScraperRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in 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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-