Class CfnAgentProfile.AggregationConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wellarchitected.CfnAgentProfile.AggregationConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAgentProfile.AggregationConfigurationProperty>
- Enclosing interface:
CfnAgentProfile.AggregationConfigurationProperty
@Stability(Stable)
public static final class CfnAgentProfile.AggregationConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAgentProfile.AggregationConfigurationProperty>
A builder for
CfnAgentProfile.AggregationConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessRoleArn(String accessRoleArn) Sets the value ofCfnAgentProfile.AggregationConfigurationProperty.getAccessRoleArn()Sets the value ofCfnAgentProfile.AggregationConfigurationProperty.getAccountId()build()Builds the configured instance.Sets the value ofCfnAgentProfile.AggregationConfigurationProperty.getRegions()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessRoleArn
@Stability(Stable) public CfnAgentProfile.AggregationConfigurationProperty.Builder accessRoleArn(String accessRoleArn) Sets the value ofCfnAgentProfile.AggregationConfigurationProperty.getAccessRoleArn()- Parameters:
accessRoleArn- The ARN of the IAM role used to access resources in this account. This parameter is required.- Returns:
this
-
accountId
@Stability(Stable) public CfnAgentProfile.AggregationConfigurationProperty.Builder accountId(String accountId) Sets the value ofCfnAgentProfile.AggregationConfigurationProperty.getAccountId()- Parameters:
accountId- The target AWS account ID. This parameter is required.- Returns:
this
-
regions
@Stability(Stable) public CfnAgentProfile.AggregationConfigurationProperty.Builder regions(List<String> regions) Sets the value ofCfnAgentProfile.AggregationConfigurationProperty.getRegions()- Parameters:
regions- The target regions in the account. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAgentProfile.AggregationConfigurationProperty>- Returns:
- a new instance of
CfnAgentProfile.AggregationConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-