Interface UpdateAutomationRuleRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ComputeOptimizerAutomationRequest.Builder,CopyableBuilder<UpdateAutomationRuleRequest.Builder,,UpdateAutomationRuleRequest> SdkBuilder<UpdateAutomationRuleRequest.Builder,,UpdateAutomationRuleRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateAutomationRuleRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.criteria(Consumer<Criteria.Builder> criteria) Sets the value of the Criteria property for this object.Sets the value of the Criteria property for this object.description(String description) The updated description of the automation rule.The updated name of the automation rule.organizationConfiguration(Consumer<OrganizationConfiguration.Builder> organizationConfiguration) Updated configuration settings for organization-wide rules, including rule application order and target account IDs.organizationConfiguration(OrganizationConfiguration organizationConfiguration) Updated configuration settings for organization-wide rules, including rule application order and target account IDs.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The updated priority level of the automation rule, used to determine execution order when multiple rules apply to the same resource.recommendedActionTypes(Collection<RecommendedActionType> recommendedActionTypes) Updated list of recommended action types that this rule can execute, such as SnapshotAndDeleteUnattachedEbsVolume or UpgradeEbsVolumeType.recommendedActionTypes(RecommendedActionType... recommendedActionTypes) Updated list of recommended action types that this rule can execute, such as SnapshotAndDeleteUnattachedEbsVolume or UpgradeEbsVolumeType.recommendedActionTypesWithStrings(String... recommendedActionTypes) Updated list of recommended action types that this rule can execute, such as SnapshotAndDeleteUnattachedEbsVolume or UpgradeEbsVolumeType.recommendedActionTypesWithStrings(Collection<String> recommendedActionTypes) Updated list of recommended action types that this rule can execute, such as SnapshotAndDeleteUnattachedEbsVolume or UpgradeEbsVolumeType.The ARN of the rule to update.ruleRevision(Long ruleRevision) The revision number of the rule to update.The updated type of automation rule.The updated type of automation rule.schedule(Consumer<Schedule.Builder> schedule) The updated schedule configuration for when the automation rule should execute, including cron expression, timezone, and execution window.The updated schedule configuration for when the automation rule should execute, including cron expression, timezone, and execution window.The updated status of the automation rule.status(RuleStatus status) The updated status of the automation 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
-
ruleArn
The ARN of the rule to update.
- Parameters:
ruleArn- The ARN of the rule to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleRevision
The revision number of the rule to update.
- Parameters:
ruleRevision- The revision number of the rule to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The updated name of the automation rule. Must be 1-128 characters long and contain only alphanumeric characters, underscores, and hyphens.
- Parameters:
name- The updated name of the automation rule. Must be 1-128 characters long and contain only alphanumeric characters, underscores, and hyphens.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The updated description of the automation rule. Can be up to 1024 characters long and contain alphanumeric characters, underscores, hyphens, spaces, and certain special characters.
- Parameters:
description- The updated description of the automation rule. Can be up to 1024 characters long and contain alphanumeric characters, underscores, hyphens, spaces, and certain special characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleType
The updated type of automation rule. Can be either OrganizationRule for organization-wide rules or AccountRule for account-specific rules.
- Parameters:
ruleType- The updated type of automation rule. Can be either OrganizationRule for organization-wide rules or AccountRule for account-specific rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ruleType
The updated type of automation rule. Can be either OrganizationRule for organization-wide rules or AccountRule for account-specific rules.
- Parameters:
ruleType- The updated type of automation rule. Can be either OrganizationRule for organization-wide rules or AccountRule for account-specific rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
organizationConfiguration
UpdateAutomationRuleRequest.Builder organizationConfiguration(OrganizationConfiguration organizationConfiguration) Updated configuration settings for organization-wide rules, including rule application order and target account IDs.
- Parameters:
organizationConfiguration- Updated configuration settings for organization-wide rules, including rule application order and target account IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
organizationConfiguration
default UpdateAutomationRuleRequest.Builder organizationConfiguration(Consumer<OrganizationConfiguration.Builder> organizationConfiguration) Updated configuration settings for organization-wide rules, including rule application order and target account IDs.
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
The updated priority level of the automation rule, used to determine execution order when multiple rules apply to the same resource.
- Parameters:
priority- The updated priority level of the automation rule, used to determine execution order when multiple rules apply to the same resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendedActionTypesWithStrings
UpdateAutomationRuleRequest.Builder recommendedActionTypesWithStrings(Collection<String> recommendedActionTypes) Updated list of recommended action types that this rule can execute, such as SnapshotAndDeleteUnattachedEbsVolume or UpgradeEbsVolumeType.
- Parameters:
recommendedActionTypes- Updated list of recommended action types that this rule can execute, such as SnapshotAndDeleteUnattachedEbsVolume or UpgradeEbsVolumeType.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendedActionTypesWithStrings
UpdateAutomationRuleRequest.Builder recommendedActionTypesWithStrings(String... recommendedActionTypes) Updated list of recommended action types that this rule can execute, such as SnapshotAndDeleteUnattachedEbsVolume or UpgradeEbsVolumeType.
- Parameters:
recommendedActionTypes- Updated list of recommended action types that this rule can execute, such as SnapshotAndDeleteUnattachedEbsVolume or UpgradeEbsVolumeType.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendedActionTypes
UpdateAutomationRuleRequest.Builder recommendedActionTypes(Collection<RecommendedActionType> recommendedActionTypes) Updated list of recommended action types that this rule can execute, such as SnapshotAndDeleteUnattachedEbsVolume or UpgradeEbsVolumeType.
- Parameters:
recommendedActionTypes- Updated list of recommended action types that this rule can execute, such as SnapshotAndDeleteUnattachedEbsVolume or UpgradeEbsVolumeType.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendedActionTypes
UpdateAutomationRuleRequest.Builder recommendedActionTypes(RecommendedActionType... recommendedActionTypes) Updated list of recommended action types that this rule can execute, such as SnapshotAndDeleteUnattachedEbsVolume or UpgradeEbsVolumeType.
- Parameters:
recommendedActionTypes- Updated list of recommended action types that this rule can execute, such as SnapshotAndDeleteUnattachedEbsVolume or UpgradeEbsVolumeType.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
criteria
Sets the value of the Criteria property for this object.- Parameters:
criteria- The new value for the Criteria property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
criteria
Sets the value of the Criteria property for this object. 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 updated schedule configuration for when the automation rule should execute, including cron expression, timezone, and execution window.
- Parameters:
schedule- The updated schedule configuration for when the automation rule should execute, including cron expression, timezone, and execution window.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedule
The updated schedule configuration for when the automation rule should execute, including cron expression, timezone, and execution window.
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 updated status of the automation rule. Can be Active or Inactive.
- Parameters:
status- The updated status of the automation rule. Can be Active or Inactive.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The updated status of the automation rule. Can be Active or Inactive.
- Parameters:
status- The updated status of the automation rule. Can be Active or Inactive.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Must be 1-64 characters long and contain only alphanumeric characters, underscores, and hyphens.
- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Must be 1-64 characters long and contain only alphanumeric characters, underscores, and hyphens.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateAutomationRuleRequest.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
UpdateAutomationRuleRequest.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.
-