AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IncidentRecordSummary.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/DateTime.h>
10#include <aws/ssm-incidents/model/IncidentRecordSource.h>
11#include <aws/ssm-incidents/model/IncidentRecordStatus.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
35 {
36 public:
37 AWS_SSMINCIDENTS_API IncidentRecordSummary();
38 AWS_SSMINCIDENTS_API IncidentRecordSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetArn() const{ return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
50 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
51 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
52 inline IncidentRecordSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
53 inline IncidentRecordSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
54 inline IncidentRecordSummary& WithArn(const char* value) { SetArn(value); return *this;}
56
58
61 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
62 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
63 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
64 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
65 inline IncidentRecordSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
66 inline IncidentRecordSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
68
70
73 inline int GetImpact() const{ return m_impact; }
74 inline bool ImpactHasBeenSet() const { return m_impactHasBeenSet; }
75 inline void SetImpact(int value) { m_impactHasBeenSet = true; m_impact = value; }
76 inline IncidentRecordSummary& WithImpact(int value) { SetImpact(value); return *this;}
78
80
83 inline const IncidentRecordSource& GetIncidentRecordSource() const{ return m_incidentRecordSource; }
84 inline bool IncidentRecordSourceHasBeenSet() const { return m_incidentRecordSourceHasBeenSet; }
85 inline void SetIncidentRecordSource(const IncidentRecordSource& value) { m_incidentRecordSourceHasBeenSet = true; m_incidentRecordSource = value; }
86 inline void SetIncidentRecordSource(IncidentRecordSource&& value) { m_incidentRecordSourceHasBeenSet = true; m_incidentRecordSource = std::move(value); }
90
92
95 inline const Aws::Utils::DateTime& GetResolvedTime() const{ return m_resolvedTime; }
96 inline bool ResolvedTimeHasBeenSet() const { return m_resolvedTimeHasBeenSet; }
97 inline void SetResolvedTime(const Aws::Utils::DateTime& value) { m_resolvedTimeHasBeenSet = true; m_resolvedTime = value; }
98 inline void SetResolvedTime(Aws::Utils::DateTime&& value) { m_resolvedTimeHasBeenSet = true; m_resolvedTime = std::move(value); }
99 inline IncidentRecordSummary& WithResolvedTime(const Aws::Utils::DateTime& value) { SetResolvedTime(value); return *this;}
100 inline IncidentRecordSummary& WithResolvedTime(Aws::Utils::DateTime&& value) { SetResolvedTime(std::move(value)); return *this;}
102
104
107 inline const IncidentRecordStatus& GetStatus() const{ return m_status; }
108 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
109 inline void SetStatus(const IncidentRecordStatus& value) { m_statusHasBeenSet = true; m_status = value; }
110 inline void SetStatus(IncidentRecordStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
111 inline IncidentRecordSummary& WithStatus(const IncidentRecordStatus& value) { SetStatus(value); return *this;}
112 inline IncidentRecordSummary& WithStatus(IncidentRecordStatus&& value) { SetStatus(std::move(value)); return *this;}
114
116
120 inline const Aws::String& GetTitle() const{ return m_title; }
121 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
122 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
123 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
124 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
125 inline IncidentRecordSummary& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
126 inline IncidentRecordSummary& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
127 inline IncidentRecordSummary& WithTitle(const char* value) { SetTitle(value); return *this;}
129 private:
130
131 Aws::String m_arn;
132 bool m_arnHasBeenSet = false;
133
134 Aws::Utils::DateTime m_creationTime;
135 bool m_creationTimeHasBeenSet = false;
136
137 int m_impact;
138 bool m_impactHasBeenSet = false;
139
140 IncidentRecordSource m_incidentRecordSource;
141 bool m_incidentRecordSourceHasBeenSet = false;
142
143 Aws::Utils::DateTime m_resolvedTime;
144 bool m_resolvedTimeHasBeenSet = false;
145
146 IncidentRecordStatus m_status;
147 bool m_statusHasBeenSet = false;
148
149 Aws::String m_title;
150 bool m_titleHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace SSMIncidents
155} // namespace Aws
const Aws::Utils::DateTime & GetCreationTime() const
const IncidentRecordSource & GetIncidentRecordSource() const
void SetIncidentRecordSource(const IncidentRecordSource &value)
IncidentRecordSummary & WithArn(Aws::String &&value)
AWS_SSMINCIDENTS_API IncidentRecordSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
IncidentRecordSummary & WithResolvedTime(Aws::Utils::DateTime &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
IncidentRecordSummary & WithStatus(IncidentRecordStatus &&value)
IncidentRecordSummary & WithTitle(Aws::String &&value)
IncidentRecordSummary & WithIncidentRecordSource(const IncidentRecordSource &value)
IncidentRecordSummary & WithCreationTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetResolvedTime() const
AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const
IncidentRecordSummary & WithTitle(const Aws::String &value)
void SetCreationTime(Aws::Utils::DateTime &&value)
AWS_SSMINCIDENTS_API IncidentRecordSummary(Aws::Utils::Json::JsonView jsonValue)
void SetIncidentRecordSource(IncidentRecordSource &&value)
IncidentRecordSummary & WithResolvedTime(const Aws::Utils::DateTime &value)
void SetResolvedTime(Aws::Utils::DateTime &&value)
IncidentRecordSummary & WithArn(const char *value)
const IncidentRecordStatus & GetStatus() const
IncidentRecordSummary & WithTitle(const char *value)
void SetStatus(const IncidentRecordStatus &value)
void SetResolvedTime(const Aws::Utils::DateTime &value)
IncidentRecordSummary & WithStatus(const IncidentRecordStatus &value)
IncidentRecordSummary & WithCreationTime(const Aws::Utils::DateTime &value)
IncidentRecordSummary & WithIncidentRecordSource(IncidentRecordSource &&value)
IncidentRecordSummary & WithArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue