Class CfnAgentProfileProps.Builder
java.lang.Object
software.amazon.awscdk.services.wellarchitected.CfnAgentProfileProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAgentProfileProps>
- Enclosing interface:
CfnAgentProfileProps
@Stability(Stable)
public static final class CfnAgentProfileProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAgentProfileProps>
A builder for
CfnAgentProfileProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregationConfiguration(List<? extends Object> aggregationConfiguration) Sets the value ofCfnAgentProfileProps.getAggregationConfiguration()aggregationConfiguration(IResolvable aggregationConfiguration) Sets the value ofCfnAgentProfileProps.getAggregationConfiguration()build()Builds the configured instance.businessOverview(String businessOverview) Sets the value ofCfnAgentProfileProps.getBusinessOverview()deletionProtection(Boolean deletionProtection) Sets the value ofCfnAgentProfileProps.getDeletionProtection()deletionProtection(IResolvable deletionProtection) Sets the value ofCfnAgentProfileProps.getDeletionProtection()description(String description) Sets the value ofCfnAgentProfileProps.getDescription()displayName(String displayName) Sets the value ofCfnAgentProfileProps.getDisplayName()executionRoleArn(String executionRoleArn) Sets the value ofCfnAgentProfileProps.getExecutionRoleArn()Sets the value ofCfnAgentProfileProps.getName()Sets the value ofCfnAgentProfileProps.getPillars()Sets the value ofCfnAgentProfileProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aggregationConfiguration
@Stability(Stable) public CfnAgentProfileProps.Builder aggregationConfiguration(IResolvable aggregationConfiguration) Sets the value ofCfnAgentProfileProps.getAggregationConfiguration()- Parameters:
aggregationConfiguration- The aggregation configuration entries (account, regions, access role) associated with this profile. This parameter is required.- Returns:
this
-
aggregationConfiguration
@Stability(Stable) public CfnAgentProfileProps.Builder aggregationConfiguration(List<? extends Object> aggregationConfiguration) Sets the value ofCfnAgentProfileProps.getAggregationConfiguration()- Parameters:
aggregationConfiguration- The aggregation configuration entries (account, regions, access role) associated with this profile. This parameter is required.- Returns:
this
-
executionRoleArn
Sets the value ofCfnAgentProfileProps.getExecutionRoleArn()- Parameters:
executionRoleArn- The ARN of the IAM role assumed to execute recommendation actions. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnAgentProfileProps.getName()- Parameters:
name- The name of the profile. This parameter is required. Unique within the account and used as the last component of the ARN.- Returns:
this
-
pillars
Sets the value ofCfnAgentProfileProps.getPillars()- Parameters:
pillars- The list of Well-Architected pillars to focus on. This parameter is required.- Returns:
this
-
businessOverview
Sets the value ofCfnAgentProfileProps.getBusinessOverview()- Parameters:
businessOverview- A business overview for the profile used to improve recommendation quality.- Returns:
this
-
deletionProtection
@Stability(Stable) public CfnAgentProfileProps.Builder deletionProtection(Boolean deletionProtection) Sets the value ofCfnAgentProfileProps.getDeletionProtection()- Parameters:
deletionProtection- Whether deletion protection is enabled for the profile. When enabled, the profile cannot be deleted until deletion protection is disabled.- Returns:
this
-
deletionProtection
@Stability(Stable) public CfnAgentProfileProps.Builder deletionProtection(IResolvable deletionProtection) Sets the value ofCfnAgentProfileProps.getDeletionProtection()- Parameters:
deletionProtection- Whether deletion protection is enabled for the profile. When enabled, the profile cannot be deleted until deletion protection is disabled.- Returns:
this
-
description
Sets the value ofCfnAgentProfileProps.getDescription()- Parameters:
description- A description of the profile.- Returns:
this
-
displayName
Sets the value ofCfnAgentProfileProps.getDisplayName()- Parameters:
displayName- The human-readable display name of the profile.- Returns:
this
-
tags
Sets the value ofCfnAgentProfileProps.getTags()- Parameters:
tags- Key-value pairs to associate with the Agent Profile.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAgentProfileProps>- Returns:
- a new instance of
CfnAgentProfileProps - Throws:
NullPointerException- if any required attribute was not provided
-