Interface ScraperSummary.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ScraperSummary.Builder,ScraperSummary>,SdkBuilder<ScraperSummary.Builder,ScraperSummary>,SdkPojo
- Enclosing class:
- ScraperSummary
public static interface ScraperSummary.Builder extends SdkPojo, CopyableBuilder<ScraperSummary.Builder,ScraperSummary>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ScraperSummary.Builderalias(String alias)(Optional) A name associated with the scraper.ScraperSummary.Builderarn(String arn)The Amazon Resource Name (ARN) of the scraper.ScraperSummary.BuildercreatedAt(Instant createdAt)The date and time that the scraper was created.default ScraperSummary.Builderdestination(Consumer<Destination.Builder> destination)The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.ScraperSummary.Builderdestination(Destination destination)The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.ScraperSummary.BuilderlastModifiedAt(Instant lastModifiedAt)The date and time that the scraper was last modified.ScraperSummary.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.ScraperSummary.BuilderscraperId(String scraperId)The ID of the scraper.default ScraperSummary.Buildersource(Consumer<Source.Builder> source)The Amazon EKS cluster from which the scraper collects metrics.ScraperSummary.Buildersource(Source source)The Amazon EKS cluster from which the scraper collects metrics.default ScraperSummary.Builderstatus(Consumer<ScraperStatus.Builder> status)A structure that contains the current status of the scraper.ScraperSummary.Builderstatus(ScraperStatus status)A structure that contains the current status of the scraper.ScraperSummary.BuilderstatusReason(String statusReason)If there is a failure, the reason for the failure.ScraperSummary.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
ScraperSummary.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
ScraperSummary.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
ScraperSummary.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
ScraperSummary.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 ScraperSummary.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
ScraperSummary.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
ScraperSummary.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.
-
scraperId
ScraperSummary.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
ScraperSummary.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 ScraperSummary.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
ScraperSummary.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 ScraperSummary.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
ScraperSummary.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
ScraperSummary.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.
-
-