Interface CreateAutomationRuleRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ComputeOptimizerAutomationRequest.Builder,CopyableBuilder<CreateAutomationRuleRequest.Builder,,CreateAutomationRuleRequest> SdkBuilder<CreateAutomationRuleRequest.Builder,,CreateAutomationRuleRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateAutomationRuleRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique identifier to ensure idempotency of the request.criteria(Consumer<Criteria.Builder> criteria) A set of conditions that specify which recommended action qualify for implementation.A set of conditions that specify which recommended action qualify for implementation.description(String description) A description of the automation rule.The name of the automation rule.organizationConfiguration(Consumer<OrganizationConfiguration.Builder> organizationConfiguration) Configuration for organization-level rules.organizationConfiguration(OrganizationConfiguration organizationConfiguration) Configuration for organization-level rules.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.A string representation of a decimal number between 0 and 1 (having up to 30 digits after the decimal point) that determines the priority of the rule.recommendedActionTypes(Collection<RecommendedActionType> recommendedActionTypes) The types of recommended actions this rule will automate.recommendedActionTypes(RecommendedActionType... recommendedActionTypes) The types of recommended actions this rule will automate.recommendedActionTypesWithStrings(String... recommendedActionTypes) The types of recommended actions this rule will automate.recommendedActionTypesWithStrings(Collection<String> recommendedActionTypes) The types of recommended actions this rule will automate.The type of rule.The type of rule.schedule(Consumer<Schedule.Builder> schedule) The schedule for when the rule should run.The schedule for when the rule should run.The status of the rulestatus(RuleStatus status) The status of the ruletags(Collection<Tag> tags) The tags to associate with the rule.tags(Consumer<Tag.Builder>... tags) The tags to associate with the rule.The tags to associate with the rule.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.computeoptimizerautomation.model.ComputeOptimizerAutomationRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
name
The name of the automation rule.
- Parameters:
name- The name of the automation rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the automation rule.
- Parameters:
description- A description of the automation rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleType
The type of rule.
Only the management account or a delegated administrator can set the ruleType to be OrganizationRule.
- Parameters:
ruleType- The type of rule.Only the management account or a delegated administrator can set the ruleType to be OrganizationRule.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ruleType
The type of rule.
Only the management account or a delegated administrator can set the ruleType to be OrganizationRule.
- Parameters:
ruleType- The type of rule.Only the management account or a delegated administrator can set the ruleType to be OrganizationRule.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
organizationConfiguration
CreateAutomationRuleRequest.Builder organizationConfiguration(OrganizationConfiguration organizationConfiguration) Configuration for organization-level rules. Required for OrganizationRule type.
- Parameters:
organizationConfiguration- Configuration for organization-level rules. Required for OrganizationRule type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
organizationConfiguration
default CreateAutomationRuleRequest.Builder organizationConfiguration(Consumer<OrganizationConfiguration.Builder> organizationConfiguration) Configuration for organization-level rules. Required for OrganizationRule type.
This is a convenience method that creates an instance of theOrganizationConfiguration.Builderavoiding the need to create one manually viaOrganizationConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toorganizationConfiguration(OrganizationConfiguration).- Parameters:
organizationConfiguration- a consumer that will call methods onOrganizationConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
priority
A string representation of a decimal number between 0 and 1 (having up to 30 digits after the decimal point) that determines the priority of the rule. When multiple rules match the same recommended action, Compute Optimizer assigns the action to the rule with the lowest priority value (highest priority), even if that rule is scheduled to run later than other matching rules.
- Parameters:
priority- A string representation of a decimal number between 0 and 1 (having up to 30 digits after the decimal point) that determines the priority of the rule. When multiple rules match the same recommended action, Compute Optimizer assigns the action to the rule with the lowest priority value (highest priority), even if that rule is scheduled to run later than other matching rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendedActionTypesWithStrings
CreateAutomationRuleRequest.Builder recommendedActionTypesWithStrings(Collection<String> recommendedActionTypes) The types of recommended actions this rule will automate.
- Parameters:
recommendedActionTypes- The types of recommended actions this rule will automate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendedActionTypesWithStrings
CreateAutomationRuleRequest.Builder recommendedActionTypesWithStrings(String... recommendedActionTypes) The types of recommended actions this rule will automate.
- Parameters:
recommendedActionTypes- The types of recommended actions this rule will automate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendedActionTypes
CreateAutomationRuleRequest.Builder recommendedActionTypes(Collection<RecommendedActionType> recommendedActionTypes) The types of recommended actions this rule will automate.
- Parameters:
recommendedActionTypes- The types of recommended actions this rule will automate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendedActionTypes
CreateAutomationRuleRequest.Builder recommendedActionTypes(RecommendedActionType... recommendedActionTypes) The types of recommended actions this rule will automate.
- Parameters:
recommendedActionTypes- The types of recommended actions this rule will automate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
criteria
A set of conditions that specify which recommended action qualify for implementation. When a rule is active and a recommended action matches these criteria, Compute Optimizer implements the action at the scheduled run time.
- Parameters:
criteria- A set of conditions that specify which recommended action qualify for implementation. When a rule is active and a recommended action matches these criteria, Compute Optimizer implements the action at the scheduled run time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
criteria
A set of conditions that specify which recommended action qualify for implementation. When a rule is active and a recommended action matches these criteria, Compute Optimizer implements the action at the scheduled run time.
This is a convenience method that creates an instance of theCriteria.Builderavoiding the need to create one manually viaCriteria.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocriteria(Criteria).- Parameters:
criteria- a consumer that will call methods onCriteria.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
schedule
The schedule for when the rule should run.
- Parameters:
schedule- The schedule for when the rule should run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedule
The schedule for when the rule should run.
This is a convenience method that creates an instance of theSchedule.Builderavoiding the need to create one manually viaSchedule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toschedule(Schedule).- Parameters:
schedule- a consumer that will call methods onSchedule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the rule
- Parameters:
status- The status of the rule- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the rule
- Parameters:
status- The status of the rule- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags to associate with the rule.
- Parameters:
tags- The tags to associate with the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to associate with the rule.
- Parameters:
tags- The tags to associate with the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to associate with the rule.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
A unique identifier to ensure idempotency of the request.
- Parameters:
clientToken- A unique identifier to ensure idempotency of the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateAutomationRuleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateAutomationRuleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-