Class CfnAssociation.AWSConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.devopsagent.CfnAssociation.AWSConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssociation.AWSConfigurationProperty>
- Enclosing interface:
CfnAssociation.AWSConfigurationProperty
@Stability(Stable)
public static final class CfnAssociation.AWSConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssociation.AWSConfigurationProperty>
A builder for
CfnAssociation.AWSConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnAssociation.AWSConfigurationProperty.getAccountId()accountType(String accountType) Sets the value ofCfnAssociation.AWSConfigurationProperty.getAccountType()assumableRoleArn(String assumableRoleArn) Sets the value ofCfnAssociation.AWSConfigurationProperty.getAssumableRoleArn()build()Builds the configured instance.Sets the value ofCfnAssociation.AWSConfigurationProperty.getResources()resources(IResolvable resources) Sets the value ofCfnAssociation.AWSConfigurationProperty.getResources()tags(List<? extends CfnAssociation.KeyValuePairProperty> tags) Sets the value ofCfnAssociation.AWSConfigurationProperty.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountId
@Stability(Stable) public CfnAssociation.AWSConfigurationProperty.Builder accountId(String accountId) Sets the value ofCfnAssociation.AWSConfigurationProperty.getAccountId()- Parameters:
accountId- AWS Account Id corresponding to provided resources. This parameter is required.- Returns:
this
-
accountType
@Stability(Stable) public CfnAssociation.AWSConfigurationProperty.Builder accountType(String accountType) Sets the value ofCfnAssociation.AWSConfigurationProperty.getAccountType()- Parameters:
accountType- Account Type 'monitor' for DevOpsAgent monitoring. This parameter is required.- Returns:
this
-
assumableRoleArn
@Stability(Stable) public CfnAssociation.AWSConfigurationProperty.Builder assumableRoleArn(String assumableRoleArn) Sets the value ofCfnAssociation.AWSConfigurationProperty.getAssumableRoleArn()- Parameters:
assumableRoleArn- Role ARN to be assumed by DevOpsAgent to operate on behalf of customer. This parameter is required.- Returns:
this
-
resources
@Stability(Stable) public CfnAssociation.AWSConfigurationProperty.Builder resources(IResolvable resources) Sets the value ofCfnAssociation.AWSConfigurationProperty.getResources()- Parameters:
resources- List of AWS resources.- Returns:
this
-
resources
@Stability(Stable) public CfnAssociation.AWSConfigurationProperty.Builder resources(List<? extends Object> resources) Sets the value ofCfnAssociation.AWSConfigurationProperty.getResources()- Parameters:
resources- List of AWS resources.- Returns:
this
-
tags
@Stability(Stable) public CfnAssociation.AWSConfigurationProperty.Builder tags(List<? extends CfnAssociation.KeyValuePairProperty> tags) Sets the value ofCfnAssociation.AWSConfigurationProperty.getTags()- Parameters:
tags- List of AWS tags as key-value pairs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAssociation.AWSConfigurationProperty>- Returns:
- a new instance of
CfnAssociation.AWSConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-