Interface AutomationRule.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AutomationRule.Builder,,AutomationRule> SdkBuilder<AutomationRule.Builder,,AutomationRule> SdkPojo
- Enclosing class:
AutomationRule
-
Method Summary
Modifier and TypeMethodDescriptionThe 12-digit Amazon Web Services account ID that owns this automation rule.createdTimestamp(Instant createdTimestamp) The timestamp when the automation rule was created.description(String description) A description of the automation rule.lastUpdatedTimestamp(Instant lastUpdatedTimestamp) The timestamp when the automation rule was last updated.The name of the automation rule.default AutomationRule.BuilderorganizationConfiguration(Consumer<OrganizationConfiguration.Builder> organizationConfiguration) Configuration settings for organization-wide rules.organizationConfiguration(OrganizationConfiguration organizationConfiguration) Configuration settings for organization-wide rules.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.recommendedActionTypes(Collection<RecommendedActionType> recommendedActionTypes) List of recommended action types that this rule can execute.recommendedActionTypes(RecommendedActionType... recommendedActionTypes) List of recommended action types that this rule can execute.recommendedActionTypesWithStrings(String... recommendedActionTypes) List of recommended action types that this rule can execute.recommendedActionTypesWithStrings(Collection<String> recommendedActionTypes) List of recommended action types that this rule can execute.The Amazon Resource Name (ARN) of the automation rule.The unique identifier of the automation rule.ruleRevision(Long ruleRevision) The revision number of the automation rule.The type of automation rule (OrganizationRule or AccountRule).The type of automation rule (OrganizationRule or AccountRule).default AutomationRule.Builderschedule(Consumer<Schedule.Builder> schedule) The schedule configuration for when the automation rule should execute.The schedule configuration for when the automation rule should execute.The current status of the automation rule (Active or Inactive).status(RuleStatus status) The current status of the automation rule (Active or Inactive).Methods 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 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
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 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
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
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
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 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
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
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
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
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
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
The schedule configuration for when the automation rule should execute.
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 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
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
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.
-