Interface GetAutomationRuleResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ComputeOptimizerAutomationResponse.Builder,CopyableBuilder<GetAutomationRuleResponse.Builder,,GetAutomationRuleResponse> SdkBuilder<GetAutomationRuleResponse.Builder,,GetAutomationRuleResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetAutomationRuleResponse
-
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.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.lastUpdatedTimestamp(Instant lastUpdatedTimestamp) The timestamp when the automation rule was last updated.The name of the automation rule.organizationConfiguration(Consumer<OrganizationConfiguration.Builder> organizationConfiguration) Sets the value of the OrganizationConfiguration property for this object.organizationConfiguration(OrganizationConfiguration organizationConfiguration) Sets the value of the OrganizationConfiguration property for this object.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.The type of automation rule.schedule(Consumer<Schedule.Builder> schedule) Sets the value of the Schedule property for this object.Sets the value of the Schedule property for this object.The current status of the automation rule (Active or Inactive).status(RuleStatus status) The current status of the automation rule (Active or Inactive).tags(Collection<Tag> tags) The tags associated with the automation rule.tags(Consumer<Tag.Builder>... tags) The tags associated with the automation rule.The tags associated with 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 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.
- Parameters:
ruleType- The type of automation rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ruleType
The type of automation rule.
- Parameters:
ruleType- The type of automation rule.- 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
GetAutomationRuleResponse.Builder organizationConfiguration(OrganizationConfiguration organizationConfiguration) Sets the value of the OrganizationConfiguration property for this object.- Parameters:
organizationConfiguration- The new value for the OrganizationConfiguration property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
organizationConfiguration
default GetAutomationRuleResponse.Builder organizationConfiguration(Consumer<OrganizationConfiguration.Builder> organizationConfiguration) Sets the value of the OrganizationConfiguration property for this object. 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.
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendedActionTypesWithStrings
GetAutomationRuleResponse.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
GetAutomationRuleResponse.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
GetAutomationRuleResponse.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
GetAutomationRuleResponse.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.
-
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
Sets the value of the Schedule property for this object.- Parameters:
schedule- The new value for the Schedule property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedule
Sets the value of the Schedule property for this object. 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:
-
tags
The tags associated with the automation rule.
- Parameters:
tags- The tags associated with the automation rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags associated with the automation rule.
- Parameters:
tags- The tags associated with the automation rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags associated with the automation rule.
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.
-
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.
-