Interface UpdateAutomationRuleRequest.Builder

  • 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

      UpdateAutomationRuleRequest.Builder ruleRevision(Long 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

      UpdateAutomationRuleRequest.Builder description(String 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 the OrganizationConfiguration.Builder avoiding the need to create one manually via OrganizationConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to organizationConfiguration(OrganizationConfiguration).

      Parameters:
      organizationConfiguration - a consumer that will call methods on OrganizationConfiguration.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 the Criteria.Builder avoiding the need to create one manually via Criteria.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to criteria(Criteria).

      Parameters:
      criteria - a consumer that will call methods on Criteria.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 the Schedule.Builder avoiding the need to create one manually via Schedule.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to schedule(Schedule).

      Parameters:
      schedule - a consumer that will call methods on Schedule.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

      UpdateAutomationRuleRequest.Builder clientToken(String 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.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.