Interface CreateAutomationRuleResponse.Builder

  • Method Details

    • ruleArn

      The Amazon Resource Name (ARN) of the created rule.

      Parameters:
      ruleArn - The Amazon Resource Name (ARN) of the created rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ruleId

      The unique identifier of the created rule.

      Parameters:
      ruleId - The unique identifier of the created rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the automation rule. Must be 1-128 characters long and contain only alphanumeric characters, underscores, and hyphens.

      Parameters:
      name - The 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

      CreateAutomationRuleResponse.Builder description(String description)

      A 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 - A 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 type of automation rule. Can be either OrganizationRule for organization-wide rules or AccountRule for account-specific rules.

      Parameters:
      ruleType - The 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 type of automation rule. Can be either OrganizationRule for organization-wide rules or AccountRule for account-specific rules.

      Parameters:
      ruleType - The 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:
    • ruleRevision

      CreateAutomationRuleResponse.Builder ruleRevision(Long ruleRevision)

      The revision number of the automation rule. This is incremented each time the rule is updated.

      Parameters:
      ruleRevision - The revision number of the automation rule. This is incremented each time the rule is updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • organizationConfiguration

      CreateAutomationRuleResponse.Builder organizationConfiguration(OrganizationConfiguration organizationConfiguration)

      Configuration settings for organization-wide rules, including rule application order and target account IDs.

      Parameters:
      organizationConfiguration - 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 CreateAutomationRuleResponse.Builder organizationConfiguration(Consumer<OrganizationConfiguration.Builder> organizationConfiguration)

      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 priority level of the automation rule, used to determine execution order when multiple rules apply to the same resource.

      Parameters:
      priority - The 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

      CreateAutomationRuleResponse.Builder recommendedActionTypesWithStrings(Collection<String> recommendedActionTypes)

      List of recommended action types that this rule can execute, such as SnapshotAndDeleteUnattachedEbsVolume or UpgradeEbsVolumeType.

      Parameters:
      recommendedActionTypes - 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

      CreateAutomationRuleResponse.Builder recommendedActionTypesWithStrings(String... recommendedActionTypes)

      List of recommended action types that this rule can execute, such as SnapshotAndDeleteUnattachedEbsVolume or UpgradeEbsVolumeType.

      Parameters:
      recommendedActionTypes - 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

      CreateAutomationRuleResponse.Builder recommendedActionTypes(Collection<RecommendedActionType> recommendedActionTypes)

      List of recommended action types that this rule can execute, such as SnapshotAndDeleteUnattachedEbsVolume or UpgradeEbsVolumeType.

      Parameters:
      recommendedActionTypes - 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

      CreateAutomationRuleResponse.Builder recommendedActionTypes(RecommendedActionType... recommendedActionTypes)

      List of recommended action types that this rule can execute, such as SnapshotAndDeleteUnattachedEbsVolume or UpgradeEbsVolumeType.

      Parameters:
      recommendedActionTypes - 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 schedule configuration for when the automation rule should execute, including cron expression, timezone, and execution window.

      Parameters:
      schedule - The 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 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 current status of the automation rule. Can be Active or Inactive.

      Parameters:
      status - The current 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 current status of the automation rule. Can be Active or Inactive.

      Parameters:
      status - The current 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:
    • tags

      A list of key-value pairs used to categorize and organize the automation rule. Maximum of 200 tags allowed.

      Parameters:
      tags - A list of key-value pairs used to categorize and organize the automation rule. Maximum of 200 tags allowed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      A list of key-value pairs used to categorize and organize the automation rule. Maximum of 200 tags allowed.

      Parameters:
      tags - A list of key-value pairs used to categorize and organize the automation rule. Maximum of 200 tags allowed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      A list of key-value pairs used to categorize and organize the automation rule. Maximum of 200 tags allowed.

      This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdTimestamp

      CreateAutomationRuleResponse.Builder createdTimestamp(Instant createdTimestamp)

      The timestamp when the automation rule was created.

      Parameters:
      createdTimestamp - The timestamp when the automation rule was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.