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