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)An optional user-assigned alias for this scraper.CreateScraperRequest.BuilderclientToken(String clientToken)Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.default CreateScraperRequest.Builderdestination(Consumer<Destination.Builder> destination)The destination that the scraper will be producing metrics to.CreateScraperRequest.Builderdestination(Destination destination)The destination that the scraper will be producing metrics to.CreateScraperRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateScraperRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default CreateScraperRequest.BuilderscrapeConfiguration(Consumer<ScrapeConfiguration.Builder> scrapeConfiguration)The configuration used to create the scraper.CreateScraperRequest.BuilderscrapeConfiguration(ScrapeConfiguration scrapeConfiguration)The configuration used to create the scraper.default CreateScraperRequest.Buildersource(Consumer<Source.Builder> source)The source that the scraper will be discovering and collecting metrics from.CreateScraperRequest.Buildersource(Source source)The source that the scraper will be discovering and collecting metrics from.CreateScraperRequest.Buildertags(Map<String,String> tags)Optional, user-provided tags for this 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, sdkFields
-
-
-
-
Method Detail
-
alias
CreateScraperRequest.Builder alias(String alias)
An optional user-assigned alias for this scraper. This alias is for user reference and does not need to be unique.
- Parameters:
alias- An optional user-assigned alias for this scraper. This alias is for user reference and does not need to be unique.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scrapeConfiguration
CreateScraperRequest.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 CreateScraperRequest.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
CreateScraperRequest.Builder source(Source source)
The source that the scraper will be discovering and collecting metrics from.
- Parameters:
source- The source that the scraper will be discovering and collecting metrics from.- 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 source that the scraper will be 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
CreateScraperRequest.Builder destination(Destination destination)
The destination that the scraper will be producing metrics to.
- Parameters:
destination- The destination that the scraper will be producing 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 destination that the scraper will be 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)
-
clientToken
CreateScraperRequest.Builder clientToken(String clientToken)
Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
- Parameters:
clientToken- Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateScraperRequest.Builder tags(Map<String,String> tags)
Optional, user-provided tags for this scraper.
- Parameters:
tags- Optional, user-provided tags for this 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
-
-