Class CfnAutomationRuleProps.Builder
java.lang.Object
software.amazon.awscdk.services.computeoptimizer.CfnAutomationRuleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAutomationRuleProps>
- Enclosing interface:
CfnAutomationRuleProps
@Stability(Stable)
public static final class CfnAutomationRuleProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAutomationRuleProps>
A builder for
CfnAutomationRuleProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.criteria(IResolvable criteria) Sets the value ofCfnAutomationRuleProps.getCriteria()criteria(CfnAutomationRule.CriteriaProperty criteria) Sets the value ofCfnAutomationRuleProps.getCriteria()description(String description) Sets the value ofCfnAutomationRuleProps.getDescription()Sets the value ofCfnAutomationRuleProps.getName()organizationConfiguration(IResolvable organizationConfiguration) Sets the value ofCfnAutomationRuleProps.getOrganizationConfiguration()organizationConfiguration(CfnAutomationRule.OrganizationConfigurationProperty organizationConfiguration) Sets the value ofCfnAutomationRuleProps.getOrganizationConfiguration()Sets the value ofCfnAutomationRuleProps.getPriority()recommendedActionTypes(List<String> recommendedActionTypes) Sets the value ofCfnAutomationRuleProps.getRecommendedActionTypes()Sets the value ofCfnAutomationRuleProps.getRuleType()schedule(IResolvable schedule) Sets the value ofCfnAutomationRuleProps.getSchedule()schedule(CfnAutomationRule.ScheduleProperty schedule) Sets the value ofCfnAutomationRuleProps.getSchedule()Sets the value ofCfnAutomationRuleProps.getStatus()Sets the value ofCfnAutomationRuleProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnAutomationRuleProps.getName()- Parameters:
name- The name of the automation rule. This parameter is required.- Returns:
this
-
recommendedActionTypes
@Stability(Stable) public CfnAutomationRuleProps.Builder recommendedActionTypes(List<String> recommendedActionTypes) Sets the value ofCfnAutomationRuleProps.getRecommendedActionTypes()- Parameters:
recommendedActionTypes- The types of recommended actions this rule will implement. This parameter is required.- Returns:
this
-
ruleType
Sets the value ofCfnAutomationRuleProps.getRuleType()- Parameters:
ruleType- The type of automation rule. This parameter is required.- Returns:
this
-
schedule
Sets the value ofCfnAutomationRuleProps.getSchedule()- Parameters:
schedule- the value to be set. This parameter is required.- Returns:
this
-
schedule
@Stability(Stable) public CfnAutomationRuleProps.Builder schedule(CfnAutomationRule.ScheduleProperty schedule) Sets the value ofCfnAutomationRuleProps.getSchedule()- Parameters:
schedule- the value to be set. This parameter is required.- Returns:
this
-
status
Sets the value ofCfnAutomationRuleProps.getStatus()- Parameters:
status- The status of the automation rule. This parameter is required.- Returns:
this
-
criteria
Sets the value ofCfnAutomationRuleProps.getCriteria()- Parameters:
criteria- the value to be set.- Returns:
this
-
criteria
@Stability(Stable) public CfnAutomationRuleProps.Builder criteria(CfnAutomationRule.CriteriaProperty criteria) Sets the value ofCfnAutomationRuleProps.getCriteria()- Parameters:
criteria- the value to be set.- Returns:
this
-
description
Sets the value ofCfnAutomationRuleProps.getDescription()- Parameters:
description- The description of the automation rule.- Returns:
this
-
organizationConfiguration
@Stability(Stable) public CfnAutomationRuleProps.Builder organizationConfiguration(IResolvable organizationConfiguration) Sets the value ofCfnAutomationRuleProps.getOrganizationConfiguration()- Parameters:
organizationConfiguration- the value to be set.- Returns:
this
-
organizationConfiguration
@Stability(Stable) public CfnAutomationRuleProps.Builder organizationConfiguration(CfnAutomationRule.OrganizationConfigurationProperty organizationConfiguration) Sets the value ofCfnAutomationRuleProps.getOrganizationConfiguration()- Parameters:
organizationConfiguration- the value to be set.- Returns:
this
-
priority
Sets the value ofCfnAutomationRuleProps.getPriority()- Parameters:
priority- Rule priority within its group.- Returns:
this
-
tags
Sets the value ofCfnAutomationRuleProps.getTags()- Parameters:
tags- Tags associated with the automation rule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAutomationRuleProps>- Returns:
- a new instance of
CfnAutomationRuleProps - Throws:
NullPointerException- if any required attribute was not provided
-