Interface CreateAutomationRuleRequest.Builder

  • 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

      CreateAutomationRuleRequest.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

      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 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

      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 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 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 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 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 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:
    • clientToken

      CreateAutomationRuleRequest.Builder clientToken(String 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.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.