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