@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RecommendationTemplate extends Object implements Serializable, Cloneable, StructuredPojo
Defines a recommendation template created with the CreateRecommendationTemplate action.
Constructor and Description |
---|
RecommendationTemplate() |
Modifier and Type | Method and Description |
---|---|
RecommendationTemplate |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
RecommendationTemplate |
clearTagsEntries()
Removes all the entries added into Tags.
|
RecommendationTemplate |
clone() |
boolean |
equals(Object obj) |
String |
getAppArn()
The Amazon Resource Name (ARN) of the AWS Resilience Hub application.
|
String |
getAssessmentArn()
The Amazon Resource Name (ARN) of the assessment.
|
Date |
getEndTime()
The end time for the action.
|
String |
getFormat()
The format of the recommendation template.
|
String |
getMessage()
The message for the recommendation template.
|
String |
getName()
The name for the recommendation template.
|
Boolean |
getNeedsReplacements()
Indicates if replacements are needed.
|
List<String> |
getRecommendationIds()
Identifiers for the recommendations used in the recommendation template.
|
String |
getRecommendationTemplateArn()
The Amazon Resource Name (ARN) for the recommendation template.
|
List<String> |
getRecommendationTypes()
An array of strings that specify the recommendation template type or types.
|
Date |
getStartTime()
The start time for the action.
|
String |
getStatus()
The status of the action.
|
Map<String,String> |
getTags()
The tags assigned to the resource.
|
S3Location |
getTemplatesLocation()
The file location of the template.
|
int |
hashCode() |
Boolean |
isNeedsReplacements()
Indicates if replacements are needed.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAppArn(String appArn)
The Amazon Resource Name (ARN) of the AWS Resilience Hub application.
|
void |
setAssessmentArn(String assessmentArn)
The Amazon Resource Name (ARN) of the assessment.
|
void |
setEndTime(Date endTime)
The end time for the action.
|
void |
setFormat(String format)
The format of the recommendation template.
|
void |
setMessage(String message)
The message for the recommendation template.
|
void |
setName(String name)
The name for the recommendation template.
|
void |
setNeedsReplacements(Boolean needsReplacements)
Indicates if replacements are needed.
|
void |
setRecommendationIds(Collection<String> recommendationIds)
Identifiers for the recommendations used in the recommendation template.
|
void |
setRecommendationTemplateArn(String recommendationTemplateArn)
The Amazon Resource Name (ARN) for the recommendation template.
|
void |
setRecommendationTypes(Collection<String> recommendationTypes)
An array of strings that specify the recommendation template type or types.
|
void |
setStartTime(Date startTime)
The start time for the action.
|
void |
setStatus(String status)
The status of the action.
|
void |
setTags(Map<String,String> tags)
The tags assigned to the resource.
|
void |
setTemplatesLocation(S3Location templatesLocation)
The file location of the template.
|
String |
toString()
Returns a string representation of this object.
|
RecommendationTemplate |
withAppArn(String appArn)
The Amazon Resource Name (ARN) of the AWS Resilience Hub application.
|
RecommendationTemplate |
withAssessmentArn(String assessmentArn)
The Amazon Resource Name (ARN) of the assessment.
|
RecommendationTemplate |
withEndTime(Date endTime)
The end time for the action.
|
RecommendationTemplate |
withFormat(String format)
The format of the recommendation template.
|
RecommendationTemplate |
withFormat(TemplateFormat format)
The format of the recommendation template.
|
RecommendationTemplate |
withMessage(String message)
The message for the recommendation template.
|
RecommendationTemplate |
withName(String name)
The name for the recommendation template.
|
RecommendationTemplate |
withNeedsReplacements(Boolean needsReplacements)
Indicates if replacements are needed.
|
RecommendationTemplate |
withRecommendationIds(Collection<String> recommendationIds)
Identifiers for the recommendations used in the recommendation template.
|
RecommendationTemplate |
withRecommendationIds(String... recommendationIds)
Identifiers for the recommendations used in the recommendation template.
|
RecommendationTemplate |
withRecommendationTemplateArn(String recommendationTemplateArn)
The Amazon Resource Name (ARN) for the recommendation template.
|
RecommendationTemplate |
withRecommendationTypes(Collection<String> recommendationTypes)
An array of strings that specify the recommendation template type or types.
|
RecommendationTemplate |
withRecommendationTypes(RenderRecommendationType... recommendationTypes)
An array of strings that specify the recommendation template type or types.
|
RecommendationTemplate |
withRecommendationTypes(String... recommendationTypes)
An array of strings that specify the recommendation template type or types.
|
RecommendationTemplate |
withStartTime(Date startTime)
The start time for the action.
|
RecommendationTemplate |
withStatus(RecommendationTemplateStatus status)
The status of the action.
|
RecommendationTemplate |
withStatus(String status)
The status of the action.
|
RecommendationTemplate |
withTags(Map<String,String> tags)
The tags assigned to the resource.
|
RecommendationTemplate |
withTemplatesLocation(S3Location templatesLocation)
The file location of the template.
|
public void setAppArn(String appArn)
The Amazon Resource Name (ARN) of the AWS 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 AWS General Reference guide.
appArn
- The Amazon Resource Name (ARN) of the AWS 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 AWS General Reference guide.public String getAppArn()
The Amazon Resource Name (ARN) of the AWS 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 AWS General Reference guide.
partition
:resiliencehub:region
:account
:app/app-id
.
For more information about ARNs, see Amazon Resource Names
(ARNs) in the AWS General Reference guide.public RecommendationTemplate withAppArn(String appArn)
The Amazon Resource Name (ARN) of the AWS 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 AWS General Reference guide.
appArn
- The Amazon Resource Name (ARN) of the AWS 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 AWS General Reference guide.public void setAssessmentArn(String assessmentArn)
The 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 AWS General Reference guide.
assessmentArn
- The 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 AWS General Reference guide.public String getAssessmentArn()
The 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 AWS General Reference guide.
partition
:resiliencehub:region
:account
:app-assessment/app-id
. For more
information about ARNs, see Amazon Resource Names
(ARNs) in the AWS General Reference guide.public RecommendationTemplate withAssessmentArn(String assessmentArn)
The 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 AWS General Reference guide.
assessmentArn
- The 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 AWS General Reference guide.public void setEndTime(Date endTime)
The end time for the action.
endTime
- The end time for the action.public Date getEndTime()
The end time for the action.
public RecommendationTemplate withEndTime(Date endTime)
The end time for the action.
endTime
- The end time for the action.public void setFormat(String format)
The format of the recommendation template.
The template is CloudFormation JSON.
The template is CloudFormation YAML.
format
- The format of the recommendation template.
The template is CloudFormation JSON.
The template is CloudFormation YAML.
TemplateFormat
public String getFormat()
The format of the recommendation template.
The template is CloudFormation JSON.
The template is CloudFormation YAML.
The template is CloudFormation JSON.
The template is CloudFormation YAML.
TemplateFormat
public RecommendationTemplate withFormat(String format)
The format of the recommendation template.
The template is CloudFormation JSON.
The template is CloudFormation YAML.
format
- The format of the recommendation template.
The template is CloudFormation JSON.
The template is CloudFormation YAML.
TemplateFormat
public RecommendationTemplate withFormat(TemplateFormat format)
The format of the recommendation template.
The template is CloudFormation JSON.
The template is CloudFormation YAML.
format
- The format of the recommendation template.
The template is CloudFormation JSON.
The template is CloudFormation YAML.
TemplateFormat
public void setMessage(String message)
The message for the recommendation template.
message
- The message for the recommendation template.public String getMessage()
The message for the recommendation template.
public RecommendationTemplate withMessage(String message)
The message for the recommendation template.
message
- The message for the recommendation template.public void setName(String name)
The name for the recommendation template.
name
- The name for the recommendation template.public String getName()
The name for the recommendation template.
public RecommendationTemplate withName(String name)
The name for the recommendation template.
name
- The name for the recommendation template.public void setNeedsReplacements(Boolean needsReplacements)
Indicates if replacements are needed.
needsReplacements
- Indicates if replacements are needed.public Boolean getNeedsReplacements()
Indicates if replacements are needed.
public RecommendationTemplate withNeedsReplacements(Boolean needsReplacements)
Indicates if replacements are needed.
needsReplacements
- Indicates if replacements are needed.public Boolean isNeedsReplacements()
Indicates if replacements are needed.
public List<String> getRecommendationIds()
Identifiers for the recommendations used in the recommendation template.
public void setRecommendationIds(Collection<String> recommendationIds)
Identifiers for the recommendations used in the recommendation template.
recommendationIds
- Identifiers for the recommendations used in the recommendation template.public RecommendationTemplate withRecommendationIds(String... recommendationIds)
Identifiers for the recommendations used in the recommendation template.
NOTE: This method appends the values to the existing list (if any). Use
setRecommendationIds(java.util.Collection)
or withRecommendationIds(java.util.Collection)
if
you want to override the existing values.
recommendationIds
- Identifiers for the recommendations used in the recommendation template.public RecommendationTemplate withRecommendationIds(Collection<String> recommendationIds)
Identifiers for the recommendations used in the recommendation template.
recommendationIds
- Identifiers for the recommendations used in the recommendation template.public void setRecommendationTemplateArn(String recommendationTemplateArn)
The Amazon Resource Name (ARN) for the recommendation template.
recommendationTemplateArn
- The Amazon Resource Name (ARN) for the recommendation template.public String getRecommendationTemplateArn()
The Amazon Resource Name (ARN) for the recommendation template.
public RecommendationTemplate withRecommendationTemplateArn(String recommendationTemplateArn)
The Amazon Resource Name (ARN) for the recommendation template.
recommendationTemplateArn
- The Amazon Resource Name (ARN) for the recommendation template.public List<String> getRecommendationTypes()
An array of strings that specify the recommendation template type or types.
The template is an AlarmRecommendation template.
The template is a SopRecommendation template.
The template is a TestRecommendation template.
The template is an AlarmRecommendation template.
The template is a SopRecommendation template.
The template is a TestRecommendation template.
RenderRecommendationType
public void setRecommendationTypes(Collection<String> recommendationTypes)
An array of strings that specify the recommendation template type or types.
The template is an AlarmRecommendation template.
The template is a SopRecommendation template.
The template is a TestRecommendation template.
recommendationTypes
- An array of strings that specify the recommendation template type or types.
The template is an AlarmRecommendation template.
The template is a SopRecommendation template.
The template is a TestRecommendation template.
RenderRecommendationType
public RecommendationTemplate withRecommendationTypes(String... recommendationTypes)
An array of strings that specify the recommendation template type or types.
The template is an AlarmRecommendation template.
The template is a SopRecommendation template.
The template is a TestRecommendation template.
NOTE: This method appends the values to the existing list (if any). Use
setRecommendationTypes(java.util.Collection)
or withRecommendationTypes(java.util.Collection)
if you want to override the existing values.
recommendationTypes
- An array of strings that specify the recommendation template type or types.
The template is an AlarmRecommendation template.
The template is a SopRecommendation template.
The template is a TestRecommendation template.
RenderRecommendationType
public RecommendationTemplate withRecommendationTypes(Collection<String> recommendationTypes)
An array of strings that specify the recommendation template type or types.
The template is an AlarmRecommendation template.
The template is a SopRecommendation template.
The template is a TestRecommendation template.
recommendationTypes
- An array of strings that specify the recommendation template type or types.
The template is an AlarmRecommendation template.
The template is a SopRecommendation template.
The template is a TestRecommendation template.
RenderRecommendationType
public RecommendationTemplate withRecommendationTypes(RenderRecommendationType... recommendationTypes)
An array of strings that specify the recommendation template type or types.
The template is an AlarmRecommendation template.
The template is a SopRecommendation template.
The template is a TestRecommendation template.
recommendationTypes
- An array of strings that specify the recommendation template type or types.
The template is an AlarmRecommendation template.
The template is a SopRecommendation template.
The template is a TestRecommendation template.
RenderRecommendationType
public void setStartTime(Date startTime)
The start time for the action.
startTime
- The start time for the action.public Date getStartTime()
The start time for the action.
public RecommendationTemplate withStartTime(Date startTime)
The start time for the action.
startTime
- The start time for the action.public void setStatus(String status)
The status of the action.
status
- The status of the action.RecommendationTemplateStatus
public String getStatus()
The status of the action.
RecommendationTemplateStatus
public RecommendationTemplate withStatus(String status)
The status of the action.
status
- The status of the action.RecommendationTemplateStatus
public RecommendationTemplate withStatus(RecommendationTemplateStatus status)
The status of the action.
status
- The status of the action.RecommendationTemplateStatus
public Map<String,String> getTags()
The 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.
public void setTags(Map<String,String> tags)
The 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.
tags
- The 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.public RecommendationTemplate withTags(Map<String,String> tags)
The 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.
tags
- The 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.public RecommendationTemplate addTagsEntry(String key, String value)
public RecommendationTemplate clearTagsEntries()
public void setTemplatesLocation(S3Location templatesLocation)
The file location of the template.
templatesLocation
- The file location of the template.public S3Location getTemplatesLocation()
The file location of the template.
public RecommendationTemplate withTemplatesLocation(S3Location templatesLocation)
The file location of the template.
templatesLocation
- The file location of the template.public String toString()
toString
in class Object
Object.toString()
public RecommendationTemplate clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.