Class CfnScraper.DestinationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.aps.CfnScraper.DestinationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScraper.DestinationProperty>
- Enclosing interface:
CfnScraper.DestinationProperty
@Stability(Stable)
public static final class CfnScraper.DestinationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScraper.DestinationProperty>
A builder for
CfnScraper.DestinationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionampConfiguration(IResolvable ampConfiguration) Sets the value ofCfnScraper.DestinationProperty.getAmpConfiguration()ampConfiguration(CfnScraper.AmpConfigurationProperty ampConfiguration) Sets the value ofCfnScraper.DestinationProperty.getAmpConfiguration()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ampConfiguration
@Stability(Stable) public CfnScraper.DestinationProperty.Builder ampConfiguration(IResolvable ampConfiguration) Sets the value ofCfnScraper.DestinationProperty.getAmpConfiguration()- Parameters:
ampConfiguration- The Amazon Managed Service for Prometheus workspace to send metrics to. This parameter is required.- Returns:
this
-
ampConfiguration
@Stability(Stable) public CfnScraper.DestinationProperty.Builder ampConfiguration(CfnScraper.AmpConfigurationProperty ampConfiguration) Sets the value ofCfnScraper.DestinationProperty.getAmpConfiguration()- Parameters:
ampConfiguration- The Amazon Managed Service for Prometheus workspace to send metrics to. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnScraper.DestinationProperty>- Returns:
- a new instance of
CfnScraper.DestinationProperty - Throws:
NullPointerException- if any required attribute was not provided
-