/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SSMIncidents { namespace Model { /** *

Basic details used in creating a response plan. The response plan is then * used to create an incident record.

See Also:

AWS * API Reference

*/ class IncidentTemplate { public: AWS_SSMINCIDENTS_API IncidentTemplate(); AWS_SSMINCIDENTS_API IncidentTemplate(Aws::Utils::Json::JsonView jsonValue); AWS_SSMINCIDENTS_API IncidentTemplate& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Used to stop Incident Manager from creating multiple incident records for the * same incident.

*/ inline const Aws::String& GetDedupeString() const{ return m_dedupeString; } /** *

Used to stop Incident Manager from creating multiple incident records for the * same incident.

*/ inline bool DedupeStringHasBeenSet() const { return m_dedupeStringHasBeenSet; } /** *

Used to stop Incident Manager from creating multiple incident records for the * same incident.

*/ inline void SetDedupeString(const Aws::String& value) { m_dedupeStringHasBeenSet = true; m_dedupeString = value; } /** *

Used to stop Incident Manager from creating multiple incident records for the * same incident.

*/ inline void SetDedupeString(Aws::String&& value) { m_dedupeStringHasBeenSet = true; m_dedupeString = std::move(value); } /** *

Used to stop Incident Manager from creating multiple incident records for the * same incident.

*/ inline void SetDedupeString(const char* value) { m_dedupeStringHasBeenSet = true; m_dedupeString.assign(value); } /** *

Used to stop Incident Manager from creating multiple incident records for the * same incident.

*/ inline IncidentTemplate& WithDedupeString(const Aws::String& value) { SetDedupeString(value); return *this;} /** *

Used to stop Incident Manager from creating multiple incident records for the * same incident.

*/ inline IncidentTemplate& WithDedupeString(Aws::String&& value) { SetDedupeString(std::move(value)); return *this;} /** *

Used to stop Incident Manager from creating multiple incident records for the * same incident.

*/ inline IncidentTemplate& WithDedupeString(const char* value) { SetDedupeString(value); return *this;} /** *

The impact of the incident on your customers and applications.

*/ inline int GetImpact() const{ return m_impact; } /** *

The impact of the incident on your customers and applications.

*/ inline bool ImpactHasBeenSet() const { return m_impactHasBeenSet; } /** *

The impact of the incident on your customers and applications.

*/ inline void SetImpact(int value) { m_impactHasBeenSet = true; m_impact = value; } /** *

The impact of the incident on your customers and applications.

*/ inline IncidentTemplate& WithImpact(int value) { SetImpact(value); return *this;} /** *

Tags to assign to the template. When the StartIncident API * action is called, Incident Manager assigns the tags specified in the template to * the incident.

*/ inline const Aws::Map& GetIncidentTags() const{ return m_incidentTags; } /** *

Tags to assign to the template. When the StartIncident API * action is called, Incident Manager assigns the tags specified in the template to * the incident.

*/ inline bool IncidentTagsHasBeenSet() const { return m_incidentTagsHasBeenSet; } /** *

Tags to assign to the template. When the StartIncident API * action is called, Incident Manager assigns the tags specified in the template to * the incident.

*/ inline void SetIncidentTags(const Aws::Map& value) { m_incidentTagsHasBeenSet = true; m_incidentTags = value; } /** *

Tags to assign to the template. When the StartIncident API * action is called, Incident Manager assigns the tags specified in the template to * the incident.

*/ inline void SetIncidentTags(Aws::Map&& value) { m_incidentTagsHasBeenSet = true; m_incidentTags = std::move(value); } /** *

Tags to assign to the template. When the StartIncident API * action is called, Incident Manager assigns the tags specified in the template to * the incident.

*/ inline IncidentTemplate& WithIncidentTags(const Aws::Map& value) { SetIncidentTags(value); return *this;} /** *

Tags to assign to the template. When the StartIncident API * action is called, Incident Manager assigns the tags specified in the template to * the incident.

*/ inline IncidentTemplate& WithIncidentTags(Aws::Map&& value) { SetIncidentTags(std::move(value)); return *this;} /** *

Tags to assign to the template. When the StartIncident API * action is called, Incident Manager assigns the tags specified in the template to * the incident.

*/ inline IncidentTemplate& AddIncidentTags(const Aws::String& key, const Aws::String& value) { m_incidentTagsHasBeenSet = true; m_incidentTags.emplace(key, value); return *this; } /** *

Tags to assign to the template. When the StartIncident API * action is called, Incident Manager assigns the tags specified in the template to * the incident.

*/ inline IncidentTemplate& AddIncidentTags(Aws::String&& key, const Aws::String& value) { m_incidentTagsHasBeenSet = true; m_incidentTags.emplace(std::move(key), value); return *this; } /** *

Tags to assign to the template. When the StartIncident API * action is called, Incident Manager assigns the tags specified in the template to * the incident.

*/ inline IncidentTemplate& AddIncidentTags(const Aws::String& key, Aws::String&& value) { m_incidentTagsHasBeenSet = true; m_incidentTags.emplace(key, std::move(value)); return *this; } /** *

Tags to assign to the template. When the StartIncident API * action is called, Incident Manager assigns the tags specified in the template to * the incident.

*/ inline IncidentTemplate& AddIncidentTags(Aws::String&& key, Aws::String&& value) { m_incidentTagsHasBeenSet = true; m_incidentTags.emplace(std::move(key), std::move(value)); return *this; } /** *

Tags to assign to the template. When the StartIncident API * action is called, Incident Manager assigns the tags specified in the template to * the incident.

*/ inline IncidentTemplate& AddIncidentTags(const char* key, Aws::String&& value) { m_incidentTagsHasBeenSet = true; m_incidentTags.emplace(key, std::move(value)); return *this; } /** *

Tags to assign to the template. When the StartIncident API * action is called, Incident Manager assigns the tags specified in the template to * the incident.

*/ inline IncidentTemplate& AddIncidentTags(Aws::String&& key, const char* value) { m_incidentTagsHasBeenSet = true; m_incidentTags.emplace(std::move(key), value); return *this; } /** *

Tags to assign to the template. When the StartIncident API * action is called, Incident Manager assigns the tags specified in the template to * the incident.

*/ inline IncidentTemplate& AddIncidentTags(const char* key, const char* value) { m_incidentTagsHasBeenSet = true; m_incidentTags.emplace(key, value); return *this; } /** *

The Amazon SNS targets that are notified when updates are made to an * incident.

*/ inline const Aws::Vector& GetNotificationTargets() const{ return m_notificationTargets; } /** *

The Amazon SNS targets that are notified when updates are made to an * incident.

*/ inline bool NotificationTargetsHasBeenSet() const { return m_notificationTargetsHasBeenSet; } /** *

The Amazon SNS targets that are notified when updates are made to an * incident.

*/ inline void SetNotificationTargets(const Aws::Vector& value) { m_notificationTargetsHasBeenSet = true; m_notificationTargets = value; } /** *

The Amazon SNS targets that are notified when updates are made to an * incident.

*/ inline void SetNotificationTargets(Aws::Vector&& value) { m_notificationTargetsHasBeenSet = true; m_notificationTargets = std::move(value); } /** *

The Amazon SNS targets that are notified when updates are made to an * incident.

*/ inline IncidentTemplate& WithNotificationTargets(const Aws::Vector& value) { SetNotificationTargets(value); return *this;} /** *

The Amazon SNS targets that are notified when updates are made to an * incident.

*/ inline IncidentTemplate& WithNotificationTargets(Aws::Vector&& value) { SetNotificationTargets(std::move(value)); return *this;} /** *

The Amazon SNS targets that are notified when updates are made to an * incident.

*/ inline IncidentTemplate& AddNotificationTargets(const NotificationTargetItem& value) { m_notificationTargetsHasBeenSet = true; m_notificationTargets.push_back(value); return *this; } /** *

The Amazon SNS targets that are notified when updates are made to an * incident.

*/ inline IncidentTemplate& AddNotificationTargets(NotificationTargetItem&& value) { m_notificationTargetsHasBeenSet = true; m_notificationTargets.push_back(std::move(value)); return *this; } /** *

The summary of the incident. The summary is a brief synopsis of what * occurred, what's currently happening, and context.

*/ inline const Aws::String& GetSummary() const{ return m_summary; } /** *

The summary of the incident. The summary is a brief synopsis of what * occurred, what's currently happening, and context.

*/ inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; } /** *

The summary of the incident. The summary is a brief synopsis of what * occurred, what's currently happening, and context.

*/ inline void SetSummary(const Aws::String& value) { m_summaryHasBeenSet = true; m_summary = value; } /** *

The summary of the incident. The summary is a brief synopsis of what * occurred, what's currently happening, and context.

*/ inline void SetSummary(Aws::String&& value) { m_summaryHasBeenSet = true; m_summary = std::move(value); } /** *

The summary of the incident. The summary is a brief synopsis of what * occurred, what's currently happening, and context.

*/ inline void SetSummary(const char* value) { m_summaryHasBeenSet = true; m_summary.assign(value); } /** *

The summary of the incident. The summary is a brief synopsis of what * occurred, what's currently happening, and context.

*/ inline IncidentTemplate& WithSummary(const Aws::String& value) { SetSummary(value); return *this;} /** *

The summary of the incident. The summary is a brief synopsis of what * occurred, what's currently happening, and context.

*/ inline IncidentTemplate& WithSummary(Aws::String&& value) { SetSummary(std::move(value)); return *this;} /** *

The summary of the incident. The summary is a brief synopsis of what * occurred, what's currently happening, and context.

*/ inline IncidentTemplate& WithSummary(const char* value) { SetSummary(value); return *this;} /** *

The title of the incident.

*/ inline const Aws::String& GetTitle() const{ return m_title; } /** *

The title of the incident.

*/ inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } /** *

The title of the incident.

*/ inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } /** *

The title of the incident.

*/ inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } /** *

The title of the incident.

*/ inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } /** *

The title of the incident.

*/ inline IncidentTemplate& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} /** *

The title of the incident.

*/ inline IncidentTemplate& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} /** *

The title of the incident.

*/ inline IncidentTemplate& WithTitle(const char* value) { SetTitle(value); return *this;} private: Aws::String m_dedupeString; bool m_dedupeStringHasBeenSet = false; int m_impact; bool m_impactHasBeenSet = false; Aws::Map m_incidentTags; bool m_incidentTagsHasBeenSet = false; Aws::Vector m_notificationTargets; bool m_notificationTargetsHasBeenSet = false; Aws::String m_summary; bool m_summaryHasBeenSet = false; Aws::String m_title; bool m_titleHasBeenSet = false; }; } // namespace Model } // namespace SSMIncidents } // namespace Aws