Interface ScraperSummary.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ScraperSummary.Builder,
,ScraperSummary> SdkBuilder<ScraperSummary.Builder,
,ScraperSummary> SdkPojo
- Enclosing class:
ScraperSummary
-
Method Summary
Modifier and TypeMethodDescription(Optional) A name associated with the scraper.The Amazon Resource Name (ARN) of the scraper.The date and time that the scraper was created.default ScraperSummary.Builder
destination
(Consumer<Destination.Builder> destination) The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.destination
(Destination destination) The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.lastModifiedAt
(Instant lastModifiedAt) The date and time that the scraper was last modified.The Amazon Resource Name (ARN) of the IAM role that provides permissions for the scraper to discover and collect metrics on your behalf.The ID of the scraper.default ScraperSummary.Builder
source
(Consumer<Source.Builder> source) The Amazon EKS cluster from which the scraper collects metrics.The Amazon EKS cluster from which the scraper collects metrics.default ScraperSummary.Builder
status
(Consumer<ScraperStatus.Builder> status) A structure that contains the current status of the scraper.status
(ScraperStatus status) A structure that contains the current status of the scraper.statusReason
(String statusReason) If there is a failure, the reason for the failure.(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 Details
-
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
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
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
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
The Amazon Managed Service for Prometheus workspace the scraper sends 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:
-
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
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.
-
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
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
The Amazon EKS cluster from which the scraper collects 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:
-
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
A structure that contains the current status of the scraper.
This is a convenience method that creates an instance of theScraperStatus.Builder
avoiding the need to create one manually viaScraperStatus.builder()
.When the
Consumer
completes,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:
-
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
(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.
-