AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
SuccessCriteriaAlarmSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace resiliencehubv2 {
21namespace Model {
22
30 public:
31 AWS_RESILIENCEHUBV2_API SuccessCriteriaAlarmSummary() = default;
32 AWS_RESILIENCEHUBV2_API SuccessCriteriaAlarmSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAlarmArn() const { return m_alarmArn; }
41 inline bool AlarmArnHasBeenSet() const { return m_alarmArnHasBeenSet; }
42 template <typename AlarmArnT = Aws::String>
43 void SetAlarmArn(AlarmArnT&& value) {
44 m_alarmArnHasBeenSet = true;
45 m_alarmArn = std::forward<AlarmArnT>(value);
46 }
47 template <typename AlarmArnT = Aws::String>
49 SetAlarmArn(std::forward<AlarmArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetAlarmName() const { return m_alarmName; }
59 inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
60 template <typename AlarmNameT = Aws::String>
61 void SetAlarmName(AlarmNameT&& value) {
62 m_alarmNameHasBeenSet = true;
63 m_alarmName = std::forward<AlarmNameT>(value);
64 }
65 template <typename AlarmNameT = Aws::String>
67 SetAlarmName(std::forward<AlarmNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetRegion() const { return m_region; }
77 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
78 template <typename RegionT = Aws::String>
79 void SetRegion(RegionT&& value) {
80 m_regionHasBeenSet = true;
81 m_region = std::forward<RegionT>(value);
82 }
83 template <typename RegionT = Aws::String>
85 SetRegion(std::forward<RegionT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetAccountId() const { return m_accountId; }
95 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
96 template <typename AccountIdT = Aws::String>
97 void SetAccountId(AccountIdT&& value) {
98 m_accountIdHasBeenSet = true;
99 m_accountId = std::forward<AccountIdT>(value);
100 }
101 template <typename AccountIdT = Aws::String>
103 SetAccountId(std::forward<AccountIdT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
113 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
114 template <typename CreatedAtT = Aws::Utils::DateTime>
115 void SetCreatedAt(CreatedAtT&& value) {
116 m_createdAtHasBeenSet = true;
117 m_createdAt = std::forward<CreatedAtT>(value);
118 }
119 template <typename CreatedAtT = Aws::Utils::DateTime>
121 SetCreatedAt(std::forward<CreatedAtT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_alarmArn;
127
128 Aws::String m_alarmName;
129
130 Aws::String m_region;
131
132 Aws::String m_accountId;
133
134 Aws::Utils::DateTime m_createdAt{};
135 bool m_alarmArnHasBeenSet = false;
136 bool m_alarmNameHasBeenSet = false;
137 bool m_regionHasBeenSet = false;
138 bool m_accountIdHasBeenSet = false;
139 bool m_createdAtHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace resiliencehubv2
144} // namespace Aws
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
SuccessCriteriaAlarmSummary & WithCreatedAt(CreatedAtT &&value)
AWS_RESILIENCEHUBV2_API SuccessCriteriaAlarmSummary(Aws::Utils::Json::JsonView jsonValue)
SuccessCriteriaAlarmSummary & WithAccountId(AccountIdT &&value)
SuccessCriteriaAlarmSummary & WithAlarmArn(AlarmArnT &&value)
SuccessCriteriaAlarmSummary & WithAlarmName(AlarmNameT &&value)
AWS_RESILIENCEHUBV2_API SuccessCriteriaAlarmSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
SuccessCriteriaAlarmSummary & WithRegion(RegionT &&value)
AWS_RESILIENCEHUBV2_API SuccessCriteriaAlarmSummary()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue