Interface AutomationRule.Builder

  • Method Details

    • ruleArn

      AutomationRule.Builder ruleArn(String ruleArn)

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

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

      The unique identifier of the automation rule.

      Parameters:
      ruleId - The unique identifier of the automation rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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

      AutomationRule.Builder description(String 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

      AutomationRule.Builder ruleType(String ruleType)

      The type of automation rule (OrganizationRule or AccountRule).

      Parameters:
      ruleType - The type of automation rule (OrganizationRule or AccountRule).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ruleType

      AutomationRule.Builder ruleType(RuleType ruleType)

      The type of automation rule (OrganizationRule or AccountRule).

      Parameters:
      ruleType - The type of automation rule (OrganizationRule or AccountRule).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ruleRevision

      AutomationRule.Builder ruleRevision(Long ruleRevision)

      The revision number of the automation rule.

      Parameters:
      ruleRevision - The revision number of the automation rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accountId

      AutomationRule.Builder accountId(String accountId)

      The 12-digit Amazon Web Services account ID that owns this automation rule.

      Parameters:
      accountId - The 12-digit Amazon Web Services account ID that owns this automation rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • organizationConfiguration

      AutomationRule.Builder organizationConfiguration(OrganizationConfiguration organizationConfiguration)

      Configuration settings for organization-wide rules.

      Parameters:
      organizationConfiguration - Configuration settings for organization-wide rules.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • organizationConfiguration

      default AutomationRule.Builder organizationConfiguration(Consumer<OrganizationConfiguration.Builder> organizationConfiguration)

      Configuration settings for organization-wide rules.

      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

      AutomationRule.Builder priority(String 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

      AutomationRule.Builder recommendedActionTypesWithStrings(Collection<String> recommendedActionTypes)

      List of recommended action types that this rule can execute.

      Parameters:
      recommendedActionTypes - List of recommended action types that this rule can execute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recommendedActionTypesWithStrings

      AutomationRule.Builder recommendedActionTypesWithStrings(String... recommendedActionTypes)

      List of recommended action types that this rule can execute.

      Parameters:
      recommendedActionTypes - List of recommended action types that this rule can execute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recommendedActionTypes

      AutomationRule.Builder recommendedActionTypes(Collection<RecommendedActionType> recommendedActionTypes)

      List of recommended action types that this rule can execute.

      Parameters:
      recommendedActionTypes - List of recommended action types that this rule can execute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recommendedActionTypes

      AutomationRule.Builder recommendedActionTypes(RecommendedActionType... recommendedActionTypes)

      List of recommended action types that this rule can execute.

      Parameters:
      recommendedActionTypes - List of recommended action types that this rule can execute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • schedule

      AutomationRule.Builder schedule(Schedule schedule)

      The schedule configuration for when the automation rule should execute.

      Parameters:
      schedule - The schedule configuration for when the automation rule should execute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • schedule

      default AutomationRule.Builder schedule(Consumer<Schedule.Builder> schedule)

      The schedule configuration for when the automation rule should execute.

      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 (Active or Inactive).

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

      Parameters:
      status - The current status of the automation rule (Active or Inactive).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdTimestamp

      AutomationRule.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.
    • lastUpdatedTimestamp

      AutomationRule.Builder lastUpdatedTimestamp(Instant lastUpdatedTimestamp)

      The timestamp when the automation rule was last updated.

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