Interface CreateScraperRequest.Builder
-
- All Superinterfaces:
AmpRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<CreateScraperRequest.Builder,CreateScraperRequest>,SdkBuilder<CreateScraperRequest.Builder,CreateScraperRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateScraperRequest
public static interface CreateScraperRequest.Builder extends AmpRequest.Builder, SdkPojo, CopyableBuilder<CreateScraperRequest.Builder,CreateScraperRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateScraperRequest.Builderalias(String alias)(optional) An alias to associate with the scraper.CreateScraperRequest.BuilderclientToken(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 Amazon Managed Service for Prometheus workspace to send metrics to.CreateScraperRequest.Builderdestination(Destination destination)The Amazon Managed Service for Prometheus workspace to send metrics to.CreateScraperRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateScraperRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default CreateScraperRequest.BuilderroleConfiguration(Consumer<RoleConfiguration.Builder> roleConfiguration)The scraper role configuration for the workspace.CreateScraperRequest.BuilderroleConfiguration(RoleConfiguration roleConfiguration)The scraper role configuration for the workspace.default CreateScraperRequest.BuilderscrapeConfiguration(Consumer<ScrapeConfiguration.Builder> scrapeConfiguration)The configuration file to use in the new scraper.CreateScraperRequest.BuilderscrapeConfiguration(ScrapeConfiguration scrapeConfiguration)The configuration file to use in the new scraper.default CreateScraperRequest.Buildersource(Consumer<Source.Builder> source)The Amazon EKS cluster from which the scraper will collect metrics.CreateScraperRequest.Buildersource(Source source)The Amazon EKS cluster from which the scraper will collect metrics.CreateScraperRequest.Buildertags(Map<String,String> tags)(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
alias
CreateScraperRequest.Builder alias(String 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.
-
clientToken
CreateScraperRequest.Builder clientToken(String 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
CreateScraperRequest.Builder destination(Destination 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
default CreateScraperRequest.Builder destination(Consumer<Destination.Builder> destination)
The 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
CreateScraperRequest.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 CreateScraperRequest.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
CreateScraperRequest.Builder scrapeConfiguration(ScrapeConfiguration 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:
scrapeConfiguration(ScrapeConfiguration)
-
source
CreateScraperRequest.Builder source(Source 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
default CreateScraperRequest.Builder source(Consumer<Source.Builder> source)
The Amazon EKS 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:
source(Source)
-
tags
CreateScraperRequest.Builder tags(Map<String,String> 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateScraperRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-