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)Alias of this scraper.ScraperDescription.Builderarn(String arn)The Amazon Resource Name (ARN) of this scraper.ScraperDescription.BuildercreatedAt(Instant createdAt)The time when the scraper was created.default ScraperDescription.Builderdestination(Consumer<Destination.Builder> destination)The destination that the scraper is producing metrics to.ScraperDescription.Builderdestination(Destination destination)The destination that the scraper is producing metrics to.ScraperDescription.BuilderlastModifiedAt(Instant lastModifiedAt)The time when 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 dsicover, collect, and produce metrics on your behalf.default ScraperDescription.BuilderscrapeConfiguration(Consumer<ScrapeConfiguration.Builder> scrapeConfiguration)The configuration used to create the scraper.ScraperDescription.BuilderscrapeConfiguration(ScrapeConfiguration scrapeConfiguration)The configuration used to create the scraper.ScraperDescription.BuilderscraperId(String scraperId)Unique string identifying this scraper.default ScraperDescription.Buildersource(Consumer<Source.Builder> source)The source that the scraper is discovering and collecting metrics from.ScraperDescription.Buildersource(Source source)The source that the scraper is discovering and collecting metrics from.default ScraperDescription.Builderstatus(Consumer<ScraperStatus.Builder> status)The status of this scraper.ScraperDescription.Builderstatus(ScraperStatus status)The status of this scraper.ScraperDescription.BuilderstatusReason(String statusReason)The reason for failure if any.ScraperDescription.Buildertags(Map<String,String> tags)The tags of this 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)
Alias of this scraper.
- Parameters:
alias- Alias of this scraper.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scraperId
ScraperDescription.Builder scraperId(String scraperId)
Unique string identifying this scraper.
- Parameters:
scraperId- Unique string identifying this 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 this scraper.
- Parameters:
arn- The Amazon Resource Name (ARN) of this scraper.- 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 dsicover, collect, and produce metrics on your behalf.
- Parameters:
roleArn- The Amazon Resource Name (ARN) of the IAM role that provides permissions for the scraper to dsicover, collect, and produce metrics on your behalf.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
ScraperDescription.Builder status(ScraperStatus status)
The status of this scraper.
- Parameters:
status- The status of this 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)
The status of this 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)
-
createdAt
ScraperDescription.Builder createdAt(Instant createdAt)
The time when the scraper was created.
- Parameters:
createdAt- The time when the scraper was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModifiedAt
ScraperDescription.Builder lastModifiedAt(Instant lastModifiedAt)
The time when the scraper was last modified.
- Parameters:
lastModifiedAt- The time when the scraper was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
ScraperDescription.Builder tags(Map<String,String> tags)
The tags of this scraper.
- Parameters:
tags- The tags of this scraper.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statusReason
ScraperDescription.Builder statusReason(String statusReason)
The reason for failure if any.
- Parameters:
statusReason- The reason for failure if any.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scrapeConfiguration
ScraperDescription.Builder scrapeConfiguration(ScrapeConfiguration scrapeConfiguration)
The configuration used to create the scraper.
- Parameters:
scrapeConfiguration- The configuration used to create 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 used to create 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)
-
source
ScraperDescription.Builder source(Source source)
The source that the scraper is discovering and collecting metrics from.
- Parameters:
source- The source that the scraper is discovering and collecting metrics from.- 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 source that the scraper is discovering and collecting metrics from.
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)
-
destination
ScraperDescription.Builder destination(Destination destination)
The destination that the scraper is producing metrics to.
- Parameters:
destination- The destination that the scraper is producing 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 destination that the scraper is producing 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)
-
-