Class CfnWorkloadProps.Builder
java.lang.Object
software.amazon.awscdk.services.wellarchitected.CfnWorkloadProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkloadProps>
- Enclosing interface:
CfnWorkloadProps
@Stability(Stable)
public static final class CfnWorkloadProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkloadProps>
A builder for
CfnWorkloadProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountIds(List<String> accountIds) Sets the value ofCfnWorkloadProps.getAccountIds()architecturalDesign(String architecturalDesign) Sets the value ofCfnWorkloadProps.getArchitecturalDesign()awsRegions(List<String> awsRegions) Sets the value ofCfnWorkloadProps.getAwsRegions()build()Builds the configured instance.description(String description) Sets the value ofCfnWorkloadProps.getDescription()discoveryConfig(IResolvable discoveryConfig) Sets the value ofCfnWorkloadProps.getDiscoveryConfig()discoveryConfig(CfnWorkload.DiscoveryConfigProperty discoveryConfig) Sets the value ofCfnWorkloadProps.getDiscoveryConfig()environment(String environment) Sets the value ofCfnWorkloadProps.getEnvironment()Sets the value ofCfnWorkloadProps.getIndustry()industryType(String industryType) Sets the value ofCfnWorkloadProps.getIndustryType()Sets the value ofCfnWorkloadProps.getLenses()nonAwsRegions(List<String> nonAwsRegions) Sets the value ofCfnWorkloadProps.getNonAwsRegions()Sets the value ofCfnWorkloadProps.getNotes()reviewOwner(String reviewOwner) Sets the value ofCfnWorkloadProps.getReviewOwner()tags(List<? extends CfnWorkload.TagsItemsProperty> tags) Sets the value ofCfnWorkloadProps.getTags()workloadName(String workloadName) Sets the value ofCfnWorkloadProps.getWorkloadName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnWorkloadProps.getDescription()- Parameters:
description- The description for the workload. This parameter is required.- Returns:
this
-
environment
Sets the value ofCfnWorkloadProps.getEnvironment()- Parameters:
environment- The environment for the workload. This parameter is required.- Returns:
this
-
lenses
Sets the value ofCfnWorkloadProps.getLenses()- Parameters:
lenses- The list of lenses associated with the workload. This parameter is required.- Returns:
this
-
workloadName
Sets the value ofCfnWorkloadProps.getWorkloadName()- Parameters:
workloadName- The name of the workload. This parameter is required.- Returns:
this
-
accountIds
Sets the value ofCfnWorkloadProps.getAccountIds()- Parameters:
accountIds- The list of Amazon Web Services account IDs associated with the workload.- Returns:
this
-
architecturalDesign
Sets the value ofCfnWorkloadProps.getArchitecturalDesign()- Parameters:
architecturalDesign- The URL of the architectural design for the workload.- Returns:
this
-
awsRegions
Sets the value ofCfnWorkloadProps.getAwsRegions()- Parameters:
awsRegions- The list of Amazon Web Services Regions associated with the workload.- Returns:
this
-
discoveryConfig
Sets the value ofCfnWorkloadProps.getDiscoveryConfig()- Parameters:
discoveryConfig- Discovery configuration associated to the workload.- Returns:
this
-
discoveryConfig
@Stability(Stable) public CfnWorkloadProps.Builder discoveryConfig(CfnWorkload.DiscoveryConfigProperty discoveryConfig) Sets the value ofCfnWorkloadProps.getDiscoveryConfig()- Parameters:
discoveryConfig- Discovery configuration associated to the workload.- Returns:
this
-
industry
Sets the value ofCfnWorkloadProps.getIndustry()- Parameters:
industry- The industry for the workload.- Returns:
this
-
industryType
Sets the value ofCfnWorkloadProps.getIndustryType()- Parameters:
industryType- The industry type for the workload.- Returns:
this
-
nonAwsRegions
Sets the value ofCfnWorkloadProps.getNonAwsRegions()- Parameters:
nonAwsRegions- The list of non-Amazon Web Services Regions associated with the workload.- Returns:
this
-
notes
Sets the value ofCfnWorkloadProps.getNotes()- Parameters:
notes- The notes associated with the workload.- Returns:
this
-
reviewOwner
Sets the value ofCfnWorkloadProps.getReviewOwner()- Parameters:
reviewOwner- The review owner of the workload.- Returns:
this
-
tags
@Stability(Stable) public CfnWorkloadProps.Builder tags(List<? extends CfnWorkload.TagsItemsProperty> tags) Sets the value ofCfnWorkloadProps.getTags()- Parameters:
tags- The tags associated with the workload.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWorkloadProps>- Returns:
- a new instance of
CfnWorkloadProps - Throws:
NullPointerException- if any required attribute was not provided
-