Interface RecommendationTemplate.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RecommendationTemplate.Builder,RecommendationTemplate>,SdkBuilder<RecommendationTemplate.Builder,RecommendationTemplate>,SdkPojo
- Enclosing class:
- RecommendationTemplate
public static interface RecommendationTemplate.Builder extends SdkPojo, CopyableBuilder<RecommendationTemplate.Builder,RecommendationTemplate>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RecommendationTemplate.BuilderappArn(String appArn)Amazon Resource Name (ARN) of the Resilience Hub application.RecommendationTemplate.BuilderassessmentArn(String assessmentArn)Amazon Resource Name (ARN) of the assessment.RecommendationTemplate.BuilderendTime(Instant endTime)The end time for the action.RecommendationTemplate.Builderformat(String format)Format of the recommendation template.RecommendationTemplate.Builderformat(TemplateFormat format)Format of the recommendation template.RecommendationTemplate.Buildermessage(String message)Message for the recommendation template.RecommendationTemplate.Buildername(String name)Name for the recommendation template.RecommendationTemplate.BuilderneedsReplacements(Boolean needsReplacements)Indicates if replacements are needed.RecommendationTemplate.BuilderrecommendationIds(String... recommendationIds)Identifiers for the recommendations used in the recommendation template.RecommendationTemplate.BuilderrecommendationIds(Collection<String> recommendationIds)Identifiers for the recommendations used in the recommendation template.RecommendationTemplate.BuilderrecommendationTemplateArn(String recommendationTemplateArn)Amazon Resource Name (ARN) for the recommendation template.RecommendationTemplate.BuilderrecommendationTypes(Collection<RenderRecommendationType> recommendationTypes)An array of strings that specify the recommendation template type or types.RecommendationTemplate.BuilderrecommendationTypes(RenderRecommendationType... recommendationTypes)An array of strings that specify the recommendation template type or types.RecommendationTemplate.BuilderrecommendationTypesWithStrings(String... recommendationTypes)An array of strings that specify the recommendation template type or types.RecommendationTemplate.BuilderrecommendationTypesWithStrings(Collection<String> recommendationTypes)An array of strings that specify the recommendation template type or types.RecommendationTemplate.BuilderstartTime(Instant startTime)The start time for the action.RecommendationTemplate.Builderstatus(String status)Status of the action.RecommendationTemplate.Builderstatus(RecommendationTemplateStatus status)Status of the action.RecommendationTemplate.Buildertags(Map<String,String> tags)Tags assigned to the resource.default RecommendationTemplate.BuildertemplatesLocation(Consumer<S3Location.Builder> templatesLocation)The file location of the template.RecommendationTemplate.BuildertemplatesLocation(S3Location templatesLocation)The file location of the template.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
appArn
RecommendationTemplate.Builder appArn(String appArn)
Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.- Parameters:
appArn- Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assessmentArn
RecommendationTemplate.Builder assessmentArn(String assessmentArn)
Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:
partition:resiliencehub:region:account:app-assessment/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.- Parameters:
assessmentArn- Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:partition:resiliencehub:region:account:app-assessment/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTime
RecommendationTemplate.Builder endTime(Instant endTime)
The end time for the action.
- Parameters:
endTime- The end time for the action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
format
RecommendationTemplate.Builder format(String format)
Format of the recommendation template.
- CfnJson
-
The template is CloudFormation JSON.
- CfnYaml
-
The template is CloudFormation YAML.
- Parameters:
format- Format of the recommendation template.- CfnJson
-
The template is CloudFormation JSON.
- CfnYaml
-
The template is CloudFormation YAML.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TemplateFormat,TemplateFormat
-
format
RecommendationTemplate.Builder format(TemplateFormat format)
Format of the recommendation template.
- CfnJson
-
The template is CloudFormation JSON.
- CfnYaml
-
The template is CloudFormation YAML.
- Parameters:
format- Format of the recommendation template.- CfnJson
-
The template is CloudFormation JSON.
- CfnYaml
-
The template is CloudFormation YAML.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TemplateFormat,TemplateFormat
-
message
RecommendationTemplate.Builder message(String message)
Message for the recommendation template.
- Parameters:
message- Message for the recommendation template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
RecommendationTemplate.Builder name(String name)
Name for the recommendation template.
- Parameters:
name- Name for the recommendation template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
needsReplacements
RecommendationTemplate.Builder needsReplacements(Boolean needsReplacements)
Indicates if replacements are needed.
- Parameters:
needsReplacements- Indicates if replacements are needed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationIds
RecommendationTemplate.Builder recommendationIds(Collection<String> recommendationIds)
Identifiers for the recommendations used in the recommendation template.
- Parameters:
recommendationIds- Identifiers for the recommendations used in the recommendation template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationIds
RecommendationTemplate.Builder recommendationIds(String... recommendationIds)
Identifiers for the recommendations used in the recommendation template.
- Parameters:
recommendationIds- Identifiers for the recommendations used in the recommendation template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationTemplateArn
RecommendationTemplate.Builder recommendationTemplateArn(String recommendationTemplateArn)
Amazon Resource Name (ARN) for the recommendation template.
- Parameters:
recommendationTemplateArn- Amazon Resource Name (ARN) for the recommendation template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationTypesWithStrings
RecommendationTemplate.Builder recommendationTypesWithStrings(Collection<String> recommendationTypes)
An array of strings that specify the recommendation template type or types.
- Alarm
-
The template is an AlarmRecommendation template.
- Sop
-
The template is a SopRecommendation template.
- Test
-
The template is a TestRecommendation template.
- Parameters:
recommendationTypes- An array of strings that specify the recommendation template type or types.- Alarm
-
The template is an AlarmRecommendation template.
- Sop
-
The template is a SopRecommendation template.
- Test
-
The template is a TestRecommendation template.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationTypesWithStrings
RecommendationTemplate.Builder recommendationTypesWithStrings(String... recommendationTypes)
An array of strings that specify the recommendation template type or types.
- Alarm
-
The template is an AlarmRecommendation template.
- Sop
-
The template is a SopRecommendation template.
- Test
-
The template is a TestRecommendation template.
- Parameters:
recommendationTypes- An array of strings that specify the recommendation template type or types.- Alarm
-
The template is an AlarmRecommendation template.
- Sop
-
The template is a SopRecommendation template.
- Test
-
The template is a TestRecommendation template.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationTypes
RecommendationTemplate.Builder recommendationTypes(Collection<RenderRecommendationType> recommendationTypes)
An array of strings that specify the recommendation template type or types.
- Alarm
-
The template is an AlarmRecommendation template.
- Sop
-
The template is a SopRecommendation template.
- Test
-
The template is a TestRecommendation template.
- Parameters:
recommendationTypes- An array of strings that specify the recommendation template type or types.- Alarm
-
The template is an AlarmRecommendation template.
- Sop
-
The template is a SopRecommendation template.
- Test
-
The template is a TestRecommendation template.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationTypes
RecommendationTemplate.Builder recommendationTypes(RenderRecommendationType... recommendationTypes)
An array of strings that specify the recommendation template type or types.
- Alarm
-
The template is an AlarmRecommendation template.
- Sop
-
The template is a SopRecommendation template.
- Test
-
The template is a TestRecommendation template.
- Parameters:
recommendationTypes- An array of strings that specify the recommendation template type or types.- Alarm
-
The template is an AlarmRecommendation template.
- Sop
-
The template is a SopRecommendation template.
- Test
-
The template is a TestRecommendation template.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTime
RecommendationTemplate.Builder startTime(Instant startTime)
The start time for the action.
- Parameters:
startTime- The start time for the action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
RecommendationTemplate.Builder status(String status)
Status of the action.
- Parameters:
status- Status of the action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RecommendationTemplateStatus,RecommendationTemplateStatus
-
status
RecommendationTemplate.Builder status(RecommendationTemplateStatus status)
Status of the action.
- Parameters:
status- Status of the action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RecommendationTemplateStatus,RecommendationTemplateStatus
-
tags
RecommendationTemplate.Builder tags(Map<String,String> tags)
Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.
- Parameters:
tags- Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templatesLocation
RecommendationTemplate.Builder templatesLocation(S3Location templatesLocation)
The file location of the template.
- Parameters:
templatesLocation- The file location of the template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templatesLocation
default RecommendationTemplate.Builder templatesLocation(Consumer<S3Location.Builder> templatesLocation)
The file location of the template.
This is a convenience method that creates an instance of theS3Location.Builderavoiding the need to create one manually viaS3Location.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totemplatesLocation(S3Location).- Parameters:
templatesLocation- a consumer that will call methods onS3Location.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
templatesLocation(S3Location)
-
-