Interface UpdateScraperRequest.Builder
- All Superinterfaces:
AmpRequest.Builder
,AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateScraperRequest.Builder,
,UpdateScraperRequest> SdkBuilder<UpdateScraperRequest.Builder,
,UpdateScraperRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateScraperRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe new alias of the scraper.clientToken
(String clientToken) A unique identifier that you can provide to ensure the idempotency of the request.default UpdateScraperRequest.Builder
destination
(Consumer<Destination.Builder> destination) The new Amazon Managed Service for Prometheus workspace to send metrics to.destination
(Destination destination) The new 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 UpdateScraperRequest.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.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 UpdateScraperRequest.Builder
scrapeConfiguration
(Consumer<ScrapeConfiguration.Builder> scrapeConfiguration) Contains the base-64 encoded YAML configuration for the scraper.scrapeConfiguration
(ScrapeConfiguration scrapeConfiguration) Contains the base-64 encoded YAML configuration for the scraper.The ID of the scraper to update.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, sdkFieldNameToField, sdkFields
-
Method Details
-
alias
The new alias of the scraper.
- Parameters:
alias
- The new alias of the scraper.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
- Parameters:
clientToken
- A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destination
The new Amazon Managed Service for Prometheus workspace to send metrics to.
- Parameters:
destination
- The new 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 new 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:
-
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 UpdateScraperRequest.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.Builder
avoiding the need to create one manually viaRoleConfiguration.builder()
.When the
Consumer
completes,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:
-
scrapeConfiguration
Contains the base-64 encoded YAML configuration for the scraper.
For more information about configuring a scraper, see Using an Amazon Web Services managed collector in the Amazon Managed Service for Prometheus User Guide.
- Parameters:
scrapeConfiguration
- Contains the base-64 encoded YAML configuration for the scraper.For more information about configuring a scraper, see Using an Amazon Web Services managed collector 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 UpdateScraperRequest.Builder scrapeConfiguration(Consumer<ScrapeConfiguration.Builder> scrapeConfiguration) Contains the base-64 encoded YAML configuration for the scraper.
For more information about configuring a scraper, see Using an Amazon Web Services managed collector in the Amazon Managed Service for Prometheus User Guide.
ScrapeConfiguration.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:
-
scraperId
The ID of the scraper to update.
- Parameters:
scraperId
- The ID of the scraper to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateScraperRequest.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
UpdateScraperRequest.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.
-