Interface CreateAutomationRuleResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ComputeOptimizerAutomationResponse.Builder,CopyableBuilder<CreateAutomationRuleResponse.Builder,,CreateAutomationRuleResponse> SdkBuilder<CreateAutomationRuleResponse.Builder,,CreateAutomationRuleResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateAutomationRuleResponse
-
Method Summary
Modifier and TypeMethodDescriptioncreatedTimestamp(Instant createdTimestamp) The timestamp when the automation rule was created.criteria(Consumer<Criteria.Builder> criteria) Sets the value of the Criteria property for this object.Sets the value of the Criteria property for this object.description(String description) A description of the automation rule.The name of the automation rule.organizationConfiguration(Consumer<OrganizationConfiguration.Builder> organizationConfiguration) Configuration settings for organization-wide rules, including rule application order and target account IDs.organizationConfiguration(OrganizationConfiguration organizationConfiguration) Configuration settings for organization-wide rules, including rule application order and target account IDs.The priority level of the automation rule, used to determine execution order when multiple rules apply to the same resource.recommendedActionTypes(Collection<RecommendedActionType> recommendedActionTypes) List of recommended action types that this rule can execute, such as SnapshotAndDeleteUnattachedEbsVolume or UpgradeEbsVolumeType.recommendedActionTypes(RecommendedActionType... recommendedActionTypes) List of recommended action types that this rule can execute, such as SnapshotAndDeleteUnattachedEbsVolume or UpgradeEbsVolumeType.recommendedActionTypesWithStrings(String... recommendedActionTypes) List of recommended action types that this rule can execute, such as SnapshotAndDeleteUnattachedEbsVolume or UpgradeEbsVolumeType.recommendedActionTypesWithStrings(Collection<String> recommendedActionTypes) List of recommended action types that this rule can execute, such as SnapshotAndDeleteUnattachedEbsVolume or UpgradeEbsVolumeType.The Amazon Resource Name (ARN) of the created rule.The unique identifier of the created rule.ruleRevision(Long ruleRevision) The revision number of the automation rule.The type of automation rule.The type of automation rule.schedule(Consumer<Schedule.Builder> schedule) The schedule configuration for when the automation rule should execute, including cron expression, timezone, and execution window.The schedule configuration for when the automation rule should execute, including cron expression, timezone, and execution window.The current status of the automation rule.status(RuleStatus status) The current status of the automation rule.tags(Collection<Tag> tags) A list of key-value pairs used to categorize and organize the automation rule.tags(Consumer<Tag.Builder>... tags) A list of key-value pairs used to categorize and organize the automation rule.A list of key-value pairs used to categorize and organize the automation rule.Methods inherited from interface software.amazon.awssdk.services.computeoptimizerautomation.model.ComputeOptimizerAutomationResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
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
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
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 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
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 theCriteria.Builderavoiding the need to create one manually viaCriteria.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocriteria(Criteria).- Parameters:
criteria- a consumer that will call methods onCriteria.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 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. 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 theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- 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.
-