AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDedupeString(const Aws::String& value) { m_dedupeStringHasBeenSet = true; m_dedupeString = value; }
61 inline void SetDedupeString(Aws::String&& value) { m_dedupeStringHasBeenSet = true; m_dedupeString = std::move(value); }
62 inline void SetDedupeString(const char* value) { m_dedupeStringHasBeenSet = true; m_dedupeString.assign(value); }
63 inline IncidentTemplate& WithDedupeString(const Aws::String& value) { SetDedupeString(value); return *this;}
64 inline IncidentTemplate& WithDedupeString(Aws::String&& value) { SetDedupeString(std::move(value)); return *this;}
65 inline IncidentTemplate& WithDedupeString(const char* value) { SetDedupeString(value); return *this;}
67
69
76 inline int GetImpact() const{ return m_impact; }
77 inline bool ImpactHasBeenSet() const { return m_impactHasBeenSet; }
78 inline void SetImpact(int value) { m_impactHasBeenSet = true; m_impact = value; }
79 inline IncidentTemplate& WithImpact(int value) { SetImpact(value); return *this;}
81
83
88 inline const Aws::Map<Aws::String, Aws::String>& GetIncidentTags() const{ return m_incidentTags; }
89 inline bool IncidentTagsHasBeenSet() const { return m_incidentTagsHasBeenSet; }
90 inline void SetIncidentTags(const Aws::Map<Aws::String, Aws::String>& value) { m_incidentTagsHasBeenSet = true; m_incidentTags = value; }
91 inline void SetIncidentTags(Aws::Map<Aws::String, Aws::String>&& value) { m_incidentTagsHasBeenSet = true; m_incidentTags = std::move(value); }
93 inline IncidentTemplate& WithIncidentTags(Aws::Map<Aws::String, Aws::String>&& value) { SetIncidentTags(std::move(value)); return *this;}
94 inline IncidentTemplate& AddIncidentTags(const Aws::String& key, const Aws::String& value) { m_incidentTagsHasBeenSet = true; m_incidentTags.emplace(key, value); return *this; }
95 inline IncidentTemplate& AddIncidentTags(Aws::String&& key, const Aws::String& value) { m_incidentTagsHasBeenSet = true; m_incidentTags.emplace(std::move(key), value); return *this; }
96 inline IncidentTemplate& AddIncidentTags(const Aws::String& key, Aws::String&& value) { m_incidentTagsHasBeenSet = true; m_incidentTags.emplace(key, std::move(value)); return *this; }
97 inline IncidentTemplate& AddIncidentTags(Aws::String&& key, Aws::String&& value) { m_incidentTagsHasBeenSet = true; m_incidentTags.emplace(std::move(key), std::move(value)); return *this; }
98 inline IncidentTemplate& AddIncidentTags(const char* key, Aws::String&& value) { m_incidentTagsHasBeenSet = true; m_incidentTags.emplace(key, std::move(value)); return *this; }
99 inline IncidentTemplate& AddIncidentTags(Aws::String&& key, const char* value) { m_incidentTagsHasBeenSet = true; m_incidentTags.emplace(std::move(key), value); return *this; }
100 inline IncidentTemplate& AddIncidentTags(const char* key, const char* value) { m_incidentTagsHasBeenSet = true; m_incidentTags.emplace(key, value); return *this; }
102
104
108 inline const Aws::Vector<NotificationTargetItem>& GetNotificationTargets() const{ return m_notificationTargets; }
109 inline bool NotificationTargetsHasBeenSet() const { return m_notificationTargetsHasBeenSet; }
110 inline void SetNotificationTargets(const Aws::Vector<NotificationTargetItem>& value) { m_notificationTargetsHasBeenSet = true; m_notificationTargets = value; }
111 inline void SetNotificationTargets(Aws::Vector<NotificationTargetItem>&& value) { m_notificationTargetsHasBeenSet = true; m_notificationTargets = std::move(value); }
114 inline IncidentTemplate& AddNotificationTargets(const NotificationTargetItem& value) { m_notificationTargetsHasBeenSet = true; m_notificationTargets.push_back(value); return *this; }
115 inline IncidentTemplate& AddNotificationTargets(NotificationTargetItem&& value) { m_notificationTargetsHasBeenSet = true; m_notificationTargets.push_back(std::move(value)); return *this; }
117
119
123 inline const Aws::String& GetSummary() const{ return m_summary; }
124 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
125 inline void SetSummary(const Aws::String& value) { m_summaryHasBeenSet = true; m_summary = value; }
126 inline void SetSummary(Aws::String&& value) { m_summaryHasBeenSet = true; m_summary = std::move(value); }
127 inline void SetSummary(const char* value) { m_summaryHasBeenSet = true; m_summary.assign(value); }
128 inline IncidentTemplate& WithSummary(const Aws::String& value) { SetSummary(value); return *this;}
129 inline IncidentTemplate& WithSummary(Aws::String&& value) { SetSummary(std::move(value)); return *this;}
130 inline IncidentTemplate& WithSummary(const char* value) { SetSummary(value); return *this;}
132
134
137 inline const Aws::String& GetTitle() const{ return m_title; }
138 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
139 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
140 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
141 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
142 inline IncidentTemplate& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
143 inline IncidentTemplate& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
144 inline IncidentTemplate& WithTitle(const char* value) { SetTitle(value); return *this;}
146 private:
147
148 Aws::String m_dedupeString;
149 bool m_dedupeStringHasBeenSet = false;
150
151 int m_impact;
152 bool m_impactHasBeenSet = false;
153
155 bool m_incidentTagsHasBeenSet = false;
156
157 Aws::Vector<NotificationTargetItem> m_notificationTargets;
158 bool m_notificationTargetsHasBeenSet = false;
159
160 Aws::String m_summary;
161 bool m_summaryHasBeenSet = false;
162
163 Aws::String m_title;
164 bool m_titleHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace SSMIncidents
169} // namespace Aws
IncidentTemplate & WithNotificationTargets(const Aws::Vector< NotificationTargetItem > &value)
IncidentTemplate & AddNotificationTargets(NotificationTargetItem &&value)
IncidentTemplate & AddIncidentTags(Aws::String &&key, const char *value)
IncidentTemplate & WithDedupeString(const char *value)
void SetNotificationTargets(const Aws::Vector< NotificationTargetItem > &value)
void SetIncidentTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_SSMINCIDENTS_API IncidentTemplate(Aws::Utils::Json::JsonView jsonValue)
void SetIncidentTags(const Aws::Map< Aws::String, Aws::String > &value)
IncidentTemplate & AddIncidentTags(Aws::String &&key, const Aws::String &value)
const Aws::Vector< NotificationTargetItem > & GetNotificationTargets() const
void SetSummary(const Aws::String &value)
const Aws::String & GetDedupeString() const
const Aws::Map< Aws::String, Aws::String > & GetIncidentTags() const
IncidentTemplate & WithSummary(Aws::String &&value)
AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const
IncidentTemplate & WithIncidentTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_SSMINCIDENTS_API IncidentTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
IncidentTemplate & WithSummary(const char *value)
IncidentTemplate & WithTitle(const Aws::String &value)
IncidentTemplate & WithNotificationTargets(Aws::Vector< NotificationTargetItem > &&value)
IncidentTemplate & AddNotificationTargets(const NotificationTargetItem &value)
IncidentTemplate & WithTitle(Aws::String &&value)
IncidentTemplate & AddIncidentTags(const char *key, Aws::String &&value)
IncidentTemplate & AddIncidentTags(Aws::String &&key, Aws::String &&value)
IncidentTemplate & WithIncidentTags(const Aws::Map< Aws::String, Aws::String > &value)
IncidentTemplate & WithDedupeString(const Aws::String &value)
IncidentTemplate & AddIncidentTags(const char *key, const char *value)
void SetNotificationTargets(Aws::Vector< NotificationTargetItem > &&value)
IncidentTemplate & WithSummary(const Aws::String &value)
IncidentTemplate & WithImpact(int value)
IncidentTemplate & AddIncidentTags(const Aws::String &key, Aws::String &&value)
IncidentTemplate & WithTitle(const char *value)
IncidentTemplate & AddIncidentTags(const Aws::String &key, const Aws::String &value)
void SetTitle(const Aws::String &value)
void SetDedupeString(const Aws::String &value)
IncidentTemplate & WithDedupeString(Aws::String &&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