AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
OpsItemEventSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10#include <aws/ssm/model/OpsItemIdentity.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SSM {
22namespace Model {
23
31 public:
32 AWS_SSM_API OpsItemEventSummary() = default;
36
38
41 inline const Aws::String& GetOpsItemId() const { return m_opsItemId; }
42 inline bool OpsItemIdHasBeenSet() const { return m_opsItemIdHasBeenSet; }
43 template <typename OpsItemIdT = Aws::String>
44 void SetOpsItemId(OpsItemIdT&& value) {
45 m_opsItemIdHasBeenSet = true;
46 m_opsItemId = std::forward<OpsItemIdT>(value);
47 }
48 template <typename OpsItemIdT = Aws::String>
49 OpsItemEventSummary& WithOpsItemId(OpsItemIdT&& value) {
50 SetOpsItemId(std::forward<OpsItemIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetEventId() const { return m_eventId; }
60 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
61 template <typename EventIdT = Aws::String>
62 void SetEventId(EventIdT&& value) {
63 m_eventIdHasBeenSet = true;
64 m_eventId = std::forward<EventIdT>(value);
65 }
66 template <typename EventIdT = Aws::String>
67 OpsItemEventSummary& WithEventId(EventIdT&& value) {
68 SetEventId(std::forward<EventIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetSource() const { return m_source; }
78 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
79 template <typename SourceT = Aws::String>
80 void SetSource(SourceT&& value) {
81 m_sourceHasBeenSet = true;
82 m_source = std::forward<SourceT>(value);
83 }
84 template <typename SourceT = Aws::String>
85 OpsItemEventSummary& WithSource(SourceT&& value) {
86 SetSource(std::forward<SourceT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetDetailType() const { return m_detailType; }
96 inline bool DetailTypeHasBeenSet() const { return m_detailTypeHasBeenSet; }
97 template <typename DetailTypeT = Aws::String>
98 void SetDetailType(DetailTypeT&& value) {
99 m_detailTypeHasBeenSet = true;
100 m_detailType = std::forward<DetailTypeT>(value);
101 }
102 template <typename DetailTypeT = Aws::String>
103 OpsItemEventSummary& WithDetailType(DetailTypeT&& value) {
104 SetDetailType(std::forward<DetailTypeT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetDetail() const { return m_detail; }
114 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
115 template <typename DetailT = Aws::String>
116 void SetDetail(DetailT&& value) {
117 m_detailHasBeenSet = true;
118 m_detail = std::forward<DetailT>(value);
119 }
120 template <typename DetailT = Aws::String>
121 OpsItemEventSummary& WithDetail(DetailT&& value) {
122 SetDetail(std::forward<DetailT>(value));
123 return *this;
124 }
126
128
131 inline const OpsItemIdentity& GetCreatedBy() const { return m_createdBy; }
132 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
133 template <typename CreatedByT = OpsItemIdentity>
134 void SetCreatedBy(CreatedByT&& value) {
135 m_createdByHasBeenSet = true;
136 m_createdBy = std::forward<CreatedByT>(value);
137 }
138 template <typename CreatedByT = OpsItemIdentity>
139 OpsItemEventSummary& WithCreatedBy(CreatedByT&& value) {
140 SetCreatedBy(std::forward<CreatedByT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
150 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
151 template <typename CreatedTimeT = Aws::Utils::DateTime>
152 void SetCreatedTime(CreatedTimeT&& value) {
153 m_createdTimeHasBeenSet = true;
154 m_createdTime = std::forward<CreatedTimeT>(value);
155 }
156 template <typename CreatedTimeT = Aws::Utils::DateTime>
157 OpsItemEventSummary& WithCreatedTime(CreatedTimeT&& value) {
158 SetCreatedTime(std::forward<CreatedTimeT>(value));
159 return *this;
160 }
162 private:
163 Aws::String m_opsItemId;
164
165 Aws::String m_eventId;
166
167 Aws::String m_source;
168
169 Aws::String m_detailType;
170
171 Aws::String m_detail;
172
173 OpsItemIdentity m_createdBy;
174
175 Aws::Utils::DateTime m_createdTime{};
176 bool m_opsItemIdHasBeenSet = false;
177 bool m_eventIdHasBeenSet = false;
178 bool m_sourceHasBeenSet = false;
179 bool m_detailTypeHasBeenSet = false;
180 bool m_detailHasBeenSet = false;
181 bool m_createdByHasBeenSet = false;
182 bool m_createdTimeHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace SSM
187} // namespace Aws
const Aws::String & GetDetail() const
OpsItemEventSummary & WithCreatedBy(CreatedByT &&value)
OpsItemEventSummary & WithEventId(EventIdT &&value)
const Aws::String & GetSource() const
OpsItemEventSummary & WithSource(SourceT &&value)
AWS_SSM_API OpsItemEventSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedTime() const
const Aws::String & GetDetailType() const
OpsItemEventSummary & WithOpsItemId(OpsItemIdT &&value)
void SetDetailType(DetailTypeT &&value)
const OpsItemIdentity & GetCreatedBy() const
AWS_SSM_API OpsItemEventSummary()=default
OpsItemEventSummary & WithDetail(DetailT &&value)
void SetCreatedTime(CreatedTimeT &&value)
const Aws::String & GetEventId() const
OpsItemEventSummary & WithDetailType(DetailTypeT &&value)
OpsItemEventSummary & WithCreatedTime(CreatedTimeT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetOpsItemId() const
AWS_SSM_API OpsItemEventSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue