Interface UpdateScraperRequest.Builder
-
- All Superinterfaces:
AmpRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<UpdateScraperRequest.Builder,UpdateScraperRequest>,SdkBuilder<UpdateScraperRequest.Builder,UpdateScraperRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- UpdateScraperRequest
public static interface UpdateScraperRequest.Builder extends AmpRequest.Builder, SdkPojo, CopyableBuilder<UpdateScraperRequest.Builder,UpdateScraperRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description UpdateScraperRequest.Builderalias(String alias)The new alias of the scraper.UpdateScraperRequest.BuilderclientToken(String clientToken)A unique identifier that you can provide to ensure the idempotency of the request.default UpdateScraperRequest.Builderdestination(Consumer<Destination.Builder> destination)The new Amazon Managed Service for Prometheus workspace to send metrics to.UpdateScraperRequest.Builderdestination(Destination destination)The new Amazon Managed Service for Prometheus workspace to send metrics to.UpdateScraperRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)UpdateScraperRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default UpdateScraperRequest.BuilderroleConfiguration(Consumer<RoleConfiguration.Builder> roleConfiguration)The scraper role configuration for the workspace.UpdateScraperRequest.BuilderroleConfiguration(RoleConfiguration roleConfiguration)The scraper role configuration for the workspace.default UpdateScraperRequest.BuilderscrapeConfiguration(Consumer<ScrapeConfiguration.Builder> scrapeConfiguration)Contains the base-64 encoded YAML configuration for the scraper.UpdateScraperRequest.BuilderscrapeConfiguration(ScrapeConfiguration scrapeConfiguration)Contains the base-64 encoded YAML configuration for the scraper.UpdateScraperRequest.BuilderscraperId(String scraperId)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 Detail
-
alias
UpdateScraperRequest.Builder alias(String 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
UpdateScraperRequest.Builder clientToken(String 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
UpdateScraperRequest.Builder destination(Destination 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
default UpdateScraperRequest.Builder destination(Consumer<Destination.Builder> destination)
The new Amazon Managed Service for Prometheus workspace to send metrics to.
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:
destination(Destination)
-
roleConfiguration
UpdateScraperRequest.Builder roleConfiguration(RoleConfiguration roleConfiguration)
The scraper role configuration for the workspace.
- Parameters:
roleConfiguration- The scraper role configuration for the workspace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleConfiguration
default UpdateScraperRequest.Builder roleConfiguration(Consumer<RoleConfiguration.Builder> roleConfiguration)
The scraper role configuration for the workspace.
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:
roleConfiguration(RoleConfiguration)
-
scrapeConfiguration
UpdateScraperRequest.Builder scrapeConfiguration(ScrapeConfiguration 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.
This is a convenience method that creates an instance of theFor more information about configuring a scraper, see Using an Amazon Web Services managed collector in the Amazon Managed Service for Prometheus User Guide.
ScrapeConfiguration.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:
scrapeConfiguration(ScrapeConfiguration)
-
scraperId
UpdateScraperRequest.Builder scraperId(String 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
UpdateScraperRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-