Interface ScraperDescription.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ScraperDescription.Builder,ScraperDescription>,SdkBuilder<ScraperDescription.Builder,ScraperDescription>,SdkPojo
- Enclosing class:
- ScraperDescription
public static interface ScraperDescription.Builder extends SdkPojo, CopyableBuilder<ScraperDescription.Builder,ScraperDescription>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ScraperDescription.Builderalias(String alias)(Optional) A name associated with the scraper.ScraperDescription.Builderarn(String arn)The Amazon Resource Name (ARN) of the scraper.ScraperDescription.BuildercreatedAt(Instant createdAt)The date and time that the scraper was created.default ScraperDescription.Builderdestination(Consumer<Destination.Builder> destination)The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.ScraperDescription.Builderdestination(Destination destination)The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.ScraperDescription.BuilderlastModifiedAt(Instant lastModifiedAt)The date and time that the scraper was last modified.ScraperDescription.BuilderroleArn(String roleArn)The Amazon Resource Name (ARN) of the IAM role that provides permissions for the scraper to discover and collect metrics on your behalf.default ScraperDescription.BuilderscrapeConfiguration(Consumer<ScrapeConfiguration.Builder> scrapeConfiguration)The configuration file in use by the scraper.ScraperDescription.BuilderscrapeConfiguration(ScrapeConfiguration scrapeConfiguration)The configuration file in use by the scraper.ScraperDescription.BuilderscraperId(String scraperId)The ID of the scraper.default ScraperDescription.Buildersource(Consumer<Source.Builder> source)The Amazon EKS cluster from which the scraper collects metrics.ScraperDescription.Buildersource(Source source)The Amazon EKS cluster from which the scraper collects metrics.default ScraperDescription.Builderstatus(Consumer<ScraperStatus.Builder> status)A structure that contains the current status of the scraper.ScraperDescription.Builderstatus(ScraperStatus status)A structure that contains the current status of the scraper.ScraperDescription.BuilderstatusReason(String statusReason)If there is a failure, the reason for the failure.ScraperDescription.Buildertags(Map<String,String> tags)(Optional) The list of tag keys and values associated with the scraper.-
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 Detail
-
alias
ScraperDescription.Builder alias(String alias)
(Optional) A name associated with the scraper.
- Parameters:
alias- (Optional) A name associated with the scraper.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
ScraperDescription.Builder arn(String arn)
The Amazon Resource Name (ARN) of the scraper.
- Parameters:
arn- The Amazon Resource Name (ARN) of the scraper.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
ScraperDescription.Builder createdAt(Instant createdAt)
The date and time that the scraper was created.
- Parameters:
createdAt- The date and time that the scraper was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destination
ScraperDescription.Builder destination(Destination destination)
The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.
- Parameters:
destination- The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destination
default ScraperDescription.Builder destination(Consumer<Destination.Builder> destination)
The Amazon Managed Service for Prometheus workspace the scraper sends 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)
-
lastModifiedAt
ScraperDescription.Builder lastModifiedAt(Instant lastModifiedAt)
The date and time that the scraper was last modified.
- Parameters:
lastModifiedAt- The date and time that the scraper was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
ScraperDescription.Builder roleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role that provides permissions for the scraper to discover and collect metrics on your behalf.
- Parameters:
roleArn- The Amazon Resource Name (ARN) of the IAM role that provides permissions for the scraper to discover and collect metrics on your behalf.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scrapeConfiguration
ScraperDescription.Builder scrapeConfiguration(ScrapeConfiguration scrapeConfiguration)
The configuration file in use by the scraper.
- Parameters:
scrapeConfiguration- The configuration file in use by the scraper.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scrapeConfiguration
default ScraperDescription.Builder scrapeConfiguration(Consumer<ScrapeConfiguration.Builder> scrapeConfiguration)
The configuration file in use by the scraper.
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)
-
scraperId
ScraperDescription.Builder scraperId(String scraperId)
The ID of the scraper.
- Parameters:
scraperId- The ID of the scraper.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
ScraperDescription.Builder source(Source source)
The Amazon EKS cluster from which the scraper collects metrics.
- Parameters:
source- The Amazon EKS cluster from which the scraper collects metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
default ScraperDescription.Builder source(Consumer<Source.Builder> source)
The Amazon EKS cluster from which the scraper collects 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)
-
status
ScraperDescription.Builder status(ScraperStatus status)
A structure that contains the current status of the scraper.
- Parameters:
status- A structure that contains the current status of the scraper.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
default ScraperDescription.Builder status(Consumer<ScraperStatus.Builder> status)
A structure that contains the current status of the scraper.
This is a convenience method that creates an instance of theScraperStatus.Builderavoiding the need to create one manually viaScraperStatus.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostatus(ScraperStatus).- Parameters:
status- a consumer that will call methods onScraperStatus.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
status(ScraperStatus)
-
statusReason
ScraperDescription.Builder statusReason(String statusReason)
If there is a failure, the reason for the failure.
- Parameters:
statusReason- If there is a failure, the reason for the failure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
ScraperDescription.Builder tags(Map<String,String> tags)
(Optional) The list of tag keys and values associated with the scraper.
- Parameters:
tags- (Optional) The list of tag keys and values associated with the scraper.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-