AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
IncidentTemplate.h
1
6#pragma once
7#include <aws/ssm-incidents/SSMIncidents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ssm-incidents/model/NotificationTargetItem.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SSMIncidents
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_SSMINCIDENTS_API IncidentTemplate() = default;
39 AWS_SSMINCIDENTS_API IncidentTemplate(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SSMINCIDENTS_API IncidentTemplate& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
58 inline const Aws::String& GetDedupeString() const { return m_dedupeString; }
59 inline bool DedupeStringHasBeenSet() const { return m_dedupeStringHasBeenSet; }
60 template<typename DedupeStringT = Aws::String>
61 void SetDedupeString(DedupeStringT&& value) { m_dedupeStringHasBeenSet = true; m_dedupeString = std::forward<DedupeStringT>(value); }
62 template<typename DedupeStringT = Aws::String>
63 IncidentTemplate& WithDedupeString(DedupeStringT&& value) { SetDedupeString(std::forward<DedupeStringT>(value)); return *this;}
65
67
74 inline int GetImpact() const { return m_impact; }
75 inline bool ImpactHasBeenSet() const { return m_impactHasBeenSet; }
76 inline void SetImpact(int value) { m_impactHasBeenSet = true; m_impact = value; }
77 inline IncidentTemplate& WithImpact(int value) { SetImpact(value); return *this;}
79
81
86 inline const Aws::Map<Aws::String, Aws::String>& GetIncidentTags() const { return m_incidentTags; }
87 inline bool IncidentTagsHasBeenSet() const { return m_incidentTagsHasBeenSet; }
88 template<typename IncidentTagsT = Aws::Map<Aws::String, Aws::String>>
89 void SetIncidentTags(IncidentTagsT&& value) { m_incidentTagsHasBeenSet = true; m_incidentTags = std::forward<IncidentTagsT>(value); }
90 template<typename IncidentTagsT = Aws::Map<Aws::String, Aws::String>>
91 IncidentTemplate& WithIncidentTags(IncidentTagsT&& value) { SetIncidentTags(std::forward<IncidentTagsT>(value)); return *this;}
92 template<typename IncidentTagsKeyT = Aws::String, typename IncidentTagsValueT = Aws::String>
93 IncidentTemplate& AddIncidentTags(IncidentTagsKeyT&& key, IncidentTagsValueT&& value) {
94 m_incidentTagsHasBeenSet = true; m_incidentTags.emplace(std::forward<IncidentTagsKeyT>(key), std::forward<IncidentTagsValueT>(value)); return *this;
95 }
97
99
103 inline const Aws::Vector<NotificationTargetItem>& GetNotificationTargets() const { return m_notificationTargets; }
104 inline bool NotificationTargetsHasBeenSet() const { return m_notificationTargetsHasBeenSet; }
105 template<typename NotificationTargetsT = Aws::Vector<NotificationTargetItem>>
106 void SetNotificationTargets(NotificationTargetsT&& value) { m_notificationTargetsHasBeenSet = true; m_notificationTargets = std::forward<NotificationTargetsT>(value); }
107 template<typename NotificationTargetsT = Aws::Vector<NotificationTargetItem>>
108 IncidentTemplate& WithNotificationTargets(NotificationTargetsT&& value) { SetNotificationTargets(std::forward<NotificationTargetsT>(value)); return *this;}
109 template<typename NotificationTargetsT = NotificationTargetItem>
110 IncidentTemplate& AddNotificationTargets(NotificationTargetsT&& value) { m_notificationTargetsHasBeenSet = true; m_notificationTargets.emplace_back(std::forward<NotificationTargetsT>(value)); return *this; }
112
114
118 inline const Aws::String& GetSummary() const { return m_summary; }
119 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
120 template<typename SummaryT = Aws::String>
121 void SetSummary(SummaryT&& value) { m_summaryHasBeenSet = true; m_summary = std::forward<SummaryT>(value); }
122 template<typename SummaryT = Aws::String>
123 IncidentTemplate& WithSummary(SummaryT&& value) { SetSummary(std::forward<SummaryT>(value)); return *this;}
125
127
130 inline const Aws::String& GetTitle() const { return m_title; }
131 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
132 template<typename TitleT = Aws::String>
133 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
134 template<typename TitleT = Aws::String>
135 IncidentTemplate& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
137 private:
138
139 Aws::String m_dedupeString;
140 bool m_dedupeStringHasBeenSet = false;
141
142 int m_impact{0};
143 bool m_impactHasBeenSet = false;
144
146 bool m_incidentTagsHasBeenSet = false;
147
148 Aws::Vector<NotificationTargetItem> m_notificationTargets;
149 bool m_notificationTargetsHasBeenSet = false;
150
151 Aws::String m_summary;
152 bool m_summaryHasBeenSet = false;
153
154 Aws::String m_title;
155 bool m_titleHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace SSMIncidents
160} // namespace Aws
AWS_SSMINCIDENTS_API IncidentTemplate(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< NotificationTargetItem > & GetNotificationTargets() const
const Aws::String & GetDedupeString() const
IncidentTemplate & WithNotificationTargets(NotificationTargetsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetIncidentTags() const
IncidentTemplate & WithTitle(TitleT &&value)
AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const
IncidentTemplate & WithSummary(SummaryT &&value)
AWS_SSMINCIDENTS_API IncidentTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIncidentTags(IncidentTagsT &&value)
IncidentTemplate & AddIncidentTags(IncidentTagsKeyT &&key, IncidentTagsValueT &&value)
IncidentTemplate & AddNotificationTargets(NotificationTargetsT &&value)
IncidentTemplate & WithDedupeString(DedupeStringT &&value)
IncidentTemplate & WithIncidentTags(IncidentTagsT &&value)
void SetNotificationTargets(NotificationTargetsT &&value)
IncidentTemplate & WithImpact(int value)
AWS_SSMINCIDENTS_API IncidentTemplate()=default
void SetDedupeString(DedupeStringT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue