Class CfnScraper.SourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.aps.CfnScraper.SourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScraper.SourceProperty>
- Enclosing interface:
CfnScraper.SourceProperty
@Stability(Stable)
public static final class CfnScraper.SourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScraper.SourceProperty>
A builder for
CfnScraper.SourceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.eksConfiguration(IResolvable eksConfiguration) Sets the value ofCfnScraper.SourceProperty.getEksConfiguration()eksConfiguration(CfnScraper.EksConfigurationProperty eksConfiguration) Sets the value ofCfnScraper.SourceProperty.getEksConfiguration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eksConfiguration
@Stability(Stable) public CfnScraper.SourceProperty.Builder eksConfiguration(IResolvable eksConfiguration) Sets the value ofCfnScraper.SourceProperty.getEksConfiguration()- Parameters:
eksConfiguration- The Amazon EKS cluster from which a scraper collects metrics. This parameter is required.- Returns:
this
-
eksConfiguration
@Stability(Stable) public CfnScraper.SourceProperty.Builder eksConfiguration(CfnScraper.EksConfigurationProperty eksConfiguration) Sets the value ofCfnScraper.SourceProperty.getEksConfiguration()- Parameters:
eksConfiguration- The Amazon EKS cluster from which a scraper collects metrics. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnScraper.SourceProperty>- Returns:
- a new instance of
CfnScraper.SourceProperty - Throws:
NullPointerException- if any required attribute was not provided
-