Class CfnAssociationPropsMixin.AWSConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.devopsagent.CfnAssociationPropsMixin.AWSConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssociationPropsMixin.AWSConfigurationProperty>
- Enclosing interface:
CfnAssociationPropsMixin.AWSConfigurationProperty
@Stability(Stable)
public static final class CfnAssociationPropsMixin.AWSConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssociationPropsMixin.AWSConfigurationProperty>
A builder for
CfnAssociationPropsMixin.AWSConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnAssociationPropsMixin.AWSConfigurationProperty.getAccountId()accountType(String accountType) Sets the value ofCfnAssociationPropsMixin.AWSConfigurationProperty.getAccountType()assumableRoleArn(String assumableRoleArn) Sets the value ofCfnAssociationPropsMixin.AWSConfigurationProperty.getAssumableRoleArn()build()Builds the configured instance.Sets the value ofCfnAssociationPropsMixin.AWSConfigurationProperty.getResources()resources(IResolvable resources) Sets the value ofCfnAssociationPropsMixin.AWSConfigurationProperty.getResources()tags(List<? extends CfnAssociationPropsMixin.KeyValuePairProperty> tags) Sets the value ofCfnAssociationPropsMixin.AWSConfigurationProperty.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountId
@Stability(Stable) public CfnAssociationPropsMixin.AWSConfigurationProperty.Builder accountId(String accountId) Sets the value ofCfnAssociationPropsMixin.AWSConfigurationProperty.getAccountId()- Parameters:
accountId- Account ID corresponding to the provided resources.- Returns:
this
-
accountType
@Stability(Stable) public CfnAssociationPropsMixin.AWSConfigurationProperty.Builder accountType(String accountType) Sets the value ofCfnAssociationPropsMixin.AWSConfigurationProperty.getAccountType()- Parameters:
accountType- Account Type 'monitor' for AWS DevOps Agent monitoring.- Returns:
this
-
assumableRoleArn
@Stability(Stable) public CfnAssociationPropsMixin.AWSConfigurationProperty.Builder assumableRoleArn(String assumableRoleArn) Sets the value ofCfnAssociationPropsMixin.AWSConfigurationProperty.getAssumableRoleArn()- Parameters:
assumableRoleArn- Role ARN used by AWS DevOps Agent to access resources in the primary account.- Returns:
this
-
resources
@Stability(Stable) public CfnAssociationPropsMixin.AWSConfigurationProperty.Builder resources(IResolvable resources) Sets the value ofCfnAssociationPropsMixin.AWSConfigurationProperty.getResources()- Parameters:
resources- List of resources to monitor.- Returns:
this
-
resources
@Stability(Stable) public CfnAssociationPropsMixin.AWSConfigurationProperty.Builder resources(List<? extends Object> resources) Sets the value ofCfnAssociationPropsMixin.AWSConfigurationProperty.getResources()- Parameters:
resources- List of resources to monitor.- Returns:
this
-
tags
@Stability(Stable) public CfnAssociationPropsMixin.AWSConfigurationProperty.Builder tags(List<? extends CfnAssociationPropsMixin.KeyValuePairProperty> tags) Sets the value ofCfnAssociationPropsMixin.AWSConfigurationProperty.getTags()- Parameters:
tags- List of tags as key-value pairs, used to identify resources for topology crawl.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAssociationPropsMixin.AWSConfigurationProperty>- Returns:
- a new instance of
CfnAssociationPropsMixin.AWSConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-