Class CfnAssociation.SourceAwsConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.devopsagent.CfnAssociation.SourceAwsConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssociation.SourceAwsConfigurationProperty>
- Enclosing interface:
CfnAssociation.SourceAwsConfigurationProperty
@Stability(Stable)
public static final class CfnAssociation.SourceAwsConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssociation.SourceAwsConfigurationProperty>
A builder for
CfnAssociation.SourceAwsConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnAssociation.SourceAwsConfigurationProperty.getAccountId()accountType(String accountType) Sets the value ofCfnAssociation.SourceAwsConfigurationProperty.getAccountType()assumableRoleArn(String assumableRoleArn) Sets the value ofCfnAssociation.SourceAwsConfigurationProperty.getAssumableRoleArn()build()Builds the configured instance.Sets the value ofCfnAssociation.SourceAwsConfigurationProperty.getResources()resources(IResolvable resources) Sets the value ofCfnAssociation.SourceAwsConfigurationProperty.getResources()tags(List<? extends CfnAssociation.KeyValuePairProperty> tags) Sets the value ofCfnAssociation.SourceAwsConfigurationProperty.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountId
@Stability(Stable) public CfnAssociation.SourceAwsConfigurationProperty.Builder accountId(String accountId) Sets the value ofCfnAssociation.SourceAwsConfigurationProperty.getAccountId()- Parameters:
accountId- AWS Account Id corresponding to provided resources. This parameter is required.- Returns:
this
-
accountType
@Stability(Stable) public CfnAssociation.SourceAwsConfigurationProperty.Builder accountType(String accountType) Sets the value ofCfnAssociation.SourceAwsConfigurationProperty.getAccountType()- Parameters:
accountType- Account Type 'source' for DevOpsAgent monitoring. This parameter is required.- Returns:
this
-
assumableRoleArn
@Stability(Stable) public CfnAssociation.SourceAwsConfigurationProperty.Builder assumableRoleArn(String assumableRoleArn) Sets the value ofCfnAssociation.SourceAwsConfigurationProperty.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.SourceAwsConfigurationProperty.Builder resources(IResolvable resources) Sets the value ofCfnAssociation.SourceAwsConfigurationProperty.getResources()- Parameters:
resources- List of AWS resources.- Returns:
this
-
resources
@Stability(Stable) public CfnAssociation.SourceAwsConfigurationProperty.Builder resources(List<? extends Object> resources) Sets the value ofCfnAssociation.SourceAwsConfigurationProperty.getResources()- Parameters:
resources- List of AWS resources.- Returns:
this
-
tags
@Stability(Stable) public CfnAssociation.SourceAwsConfigurationProperty.Builder tags(List<? extends CfnAssociation.KeyValuePairProperty> tags) Sets the value ofCfnAssociation.SourceAwsConfigurationProperty.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.SourceAwsConfigurationProperty>- Returns:
- a new instance of
CfnAssociation.SourceAwsConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-