Class CfnLink.LinkConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.oam.CfnLink.LinkConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLink.LinkConfigurationProperty>
- Enclosing interface:
CfnLink.LinkConfigurationProperty
@Stability(Stable)
public static final class CfnLink.LinkConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLink.LinkConfigurationProperty>
A builder for
CfnLink.LinkConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.logGroupConfiguration(IResolvable logGroupConfiguration) Sets the value ofCfnLink.LinkConfigurationProperty.getLogGroupConfiguration()logGroupConfiguration(CfnLink.LinkFilterProperty logGroupConfiguration) Sets the value ofCfnLink.LinkConfigurationProperty.getLogGroupConfiguration()metricConfiguration(IResolvable metricConfiguration) Sets the value ofCfnLink.LinkConfigurationProperty.getMetricConfiguration()metricConfiguration(CfnLink.LinkFilterProperty metricConfiguration) Sets the value ofCfnLink.LinkConfigurationProperty.getMetricConfiguration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
logGroupConfiguration
@Stability(Stable) public CfnLink.LinkConfigurationProperty.Builder logGroupConfiguration(IResolvable logGroupConfiguration) Sets the value ofCfnLink.LinkConfigurationProperty.getLogGroupConfiguration()- Parameters:
logGroupConfiguration- Use this structure to filter which log groups are to share log events from this source account to the monitoring account.- Returns:
this
-
logGroupConfiguration
@Stability(Stable) public CfnLink.LinkConfigurationProperty.Builder logGroupConfiguration(CfnLink.LinkFilterProperty logGroupConfiguration) Sets the value ofCfnLink.LinkConfigurationProperty.getLogGroupConfiguration()- Parameters:
logGroupConfiguration- Use this structure to filter which log groups are to share log events from this source account to the monitoring account.- Returns:
this
-
metricConfiguration
@Stability(Stable) public CfnLink.LinkConfigurationProperty.Builder metricConfiguration(IResolvable metricConfiguration) Sets the value ofCfnLink.LinkConfigurationProperty.getMetricConfiguration()- Parameters:
metricConfiguration- Use this structure to filter which metric namespaces are to be shared from the source account to the monitoring account.- Returns:
this
-
metricConfiguration
@Stability(Stable) public CfnLink.LinkConfigurationProperty.Builder metricConfiguration(CfnLink.LinkFilterProperty metricConfiguration) Sets the value ofCfnLink.LinkConfigurationProperty.getMetricConfiguration()- Parameters:
metricConfiguration- Use this structure to filter which metric namespaces are to be shared from the source account to the monitoring account.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLink.LinkConfigurationProperty>- Returns:
- a new instance of
CfnLink.LinkConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-