AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Engagement.h
1
6#pragma once
7#include <aws/ssm-contacts/SSMContacts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SSMContacts
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SSMCONTACTS_API Engagement();
37 AWS_SSMCONTACTS_API Engagement(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SSMCONTACTS_API Engagement& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetEngagementArn() const{ return m_engagementArn; }
47 inline bool EngagementArnHasBeenSet() const { return m_engagementArnHasBeenSet; }
48 inline void SetEngagementArn(const Aws::String& value) { m_engagementArnHasBeenSet = true; m_engagementArn = value; }
49 inline void SetEngagementArn(Aws::String&& value) { m_engagementArnHasBeenSet = true; m_engagementArn = std::move(value); }
50 inline void SetEngagementArn(const char* value) { m_engagementArnHasBeenSet = true; m_engagementArn.assign(value); }
51 inline Engagement& WithEngagementArn(const Aws::String& value) { SetEngagementArn(value); return *this;}
52 inline Engagement& WithEngagementArn(Aws::String&& value) { SetEngagementArn(std::move(value)); return *this;}
53 inline Engagement& WithEngagementArn(const char* value) { SetEngagementArn(value); return *this;}
55
57
61 inline const Aws::String& GetContactArn() const{ return m_contactArn; }
62 inline bool ContactArnHasBeenSet() const { return m_contactArnHasBeenSet; }
63 inline void SetContactArn(const Aws::String& value) { m_contactArnHasBeenSet = true; m_contactArn = value; }
64 inline void SetContactArn(Aws::String&& value) { m_contactArnHasBeenSet = true; m_contactArn = std::move(value); }
65 inline void SetContactArn(const char* value) { m_contactArnHasBeenSet = true; m_contactArn.assign(value); }
66 inline Engagement& WithContactArn(const Aws::String& value) { SetContactArn(value); return *this;}
67 inline Engagement& WithContactArn(Aws::String&& value) { SetContactArn(std::move(value)); return *this;}
68 inline Engagement& WithContactArn(const char* value) { SetContactArn(value); return *this;}
70
72
75 inline const Aws::String& GetSender() const{ return m_sender; }
76 inline bool SenderHasBeenSet() const { return m_senderHasBeenSet; }
77 inline void SetSender(const Aws::String& value) { m_senderHasBeenSet = true; m_sender = value; }
78 inline void SetSender(Aws::String&& value) { m_senderHasBeenSet = true; m_sender = std::move(value); }
79 inline void SetSender(const char* value) { m_senderHasBeenSet = true; m_sender.assign(value); }
80 inline Engagement& WithSender(const Aws::String& value) { SetSender(value); return *this;}
81 inline Engagement& WithSender(Aws::String&& value) { SetSender(std::move(value)); return *this;}
82 inline Engagement& WithSender(const char* value) { SetSender(value); return *this;}
84
86
89 inline const Aws::String& GetIncidentId() const{ return m_incidentId; }
90 inline bool IncidentIdHasBeenSet() const { return m_incidentIdHasBeenSet; }
91 inline void SetIncidentId(const Aws::String& value) { m_incidentIdHasBeenSet = true; m_incidentId = value; }
92 inline void SetIncidentId(Aws::String&& value) { m_incidentIdHasBeenSet = true; m_incidentId = std::move(value); }
93 inline void SetIncidentId(const char* value) { m_incidentIdHasBeenSet = true; m_incidentId.assign(value); }
94 inline Engagement& WithIncidentId(const Aws::String& value) { SetIncidentId(value); return *this;}
95 inline Engagement& WithIncidentId(Aws::String&& value) { SetIncidentId(std::move(value)); return *this;}
96 inline Engagement& WithIncidentId(const char* value) { SetIncidentId(value); return *this;}
98
100
103 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
104 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
105 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
106 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
107 inline Engagement& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
108 inline Engagement& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetStopTime() const{ return m_stopTime; }
116 inline bool StopTimeHasBeenSet() const { return m_stopTimeHasBeenSet; }
117 inline void SetStopTime(const Aws::Utils::DateTime& value) { m_stopTimeHasBeenSet = true; m_stopTime = value; }
118 inline void SetStopTime(Aws::Utils::DateTime&& value) { m_stopTimeHasBeenSet = true; m_stopTime = std::move(value); }
119 inline Engagement& WithStopTime(const Aws::Utils::DateTime& value) { SetStopTime(value); return *this;}
120 inline Engagement& WithStopTime(Aws::Utils::DateTime&& value) { SetStopTime(std::move(value)); return *this;}
122 private:
123
124 Aws::String m_engagementArn;
125 bool m_engagementArnHasBeenSet = false;
126
127 Aws::String m_contactArn;
128 bool m_contactArnHasBeenSet = false;
129
130 Aws::String m_sender;
131 bool m_senderHasBeenSet = false;
132
133 Aws::String m_incidentId;
134 bool m_incidentIdHasBeenSet = false;
135
136 Aws::Utils::DateTime m_startTime;
137 bool m_startTimeHasBeenSet = false;
138
139 Aws::Utils::DateTime m_stopTime;
140 bool m_stopTimeHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace SSMContacts
145} // namespace Aws
Engagement & WithContactArn(const char *value)
Definition Engagement.h:68
void SetContactArn(const char *value)
Definition Engagement.h:65
Engagement & WithStopTime(Aws::Utils::DateTime &&value)
Definition Engagement.h:120
Engagement & WithEngagementArn(const Aws::String &value)
Definition Engagement.h:51
void SetIncidentId(const char *value)
Definition Engagement.h:93
Engagement & WithSender(Aws::String &&value)
Definition Engagement.h:81
void SetContactArn(Aws::String &&value)
Definition Engagement.h:64
void SetSender(const char *value)
Definition Engagement.h:79
void SetStopTime(Aws::Utils::DateTime &&value)
Definition Engagement.h:118
AWS_SSMCONTACTS_API Engagement & operator=(Aws::Utils::Json::JsonView jsonValue)
Engagement & WithStartTime(Aws::Utils::DateTime &&value)
Definition Engagement.h:108
void SetEngagementArn(Aws::String &&value)
Definition Engagement.h:49
const Aws::Utils::DateTime & GetStopTime() const
Definition Engagement.h:115
AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetEngagementArn() const
Definition Engagement.h:46
Engagement & WithStartTime(const Aws::Utils::DateTime &value)
Definition Engagement.h:107
Engagement & WithIncidentId(const Aws::String &value)
Definition Engagement.h:94
Engagement & WithContactArn(const Aws::String &value)
Definition Engagement.h:66
AWS_SSMCONTACTS_API Engagement()
void SetEngagementArn(const Aws::String &value)
Definition Engagement.h:48
Engagement & WithIncidentId(const char *value)
Definition Engagement.h:96
AWS_SSMCONTACTS_API Engagement(Aws::Utils::Json::JsonView jsonValue)
void SetEngagementArn(const char *value)
Definition Engagement.h:50
void SetStartTime(const Aws::Utils::DateTime &value)
Definition Engagement.h:105
Engagement & WithContactArn(Aws::String &&value)
Definition Engagement.h:67
void SetIncidentId(Aws::String &&value)
Definition Engagement.h:92
const Aws::String & GetIncidentId() const
Definition Engagement.h:89
const Aws::String & GetContactArn() const
Definition Engagement.h:61
void SetSender(const Aws::String &value)
Definition Engagement.h:77
Engagement & WithSender(const Aws::String &value)
Definition Engagement.h:80
Engagement & WithSender(const char *value)
Definition Engagement.h:82
void SetContactArn(const Aws::String &value)
Definition Engagement.h:63
Engagement & WithEngagementArn(Aws::String &&value)
Definition Engagement.h:52
Engagement & WithStopTime(const Aws::Utils::DateTime &value)
Definition Engagement.h:119
Engagement & WithIncidentId(Aws::String &&value)
Definition Engagement.h:95
void SetSender(Aws::String &&value)
Definition Engagement.h:78
Engagement & WithEngagementArn(const char *value)
Definition Engagement.h:53
const Aws::String & GetSender() const
Definition Engagement.h:75
void SetStopTime(const Aws::Utils::DateTime &value)
Definition Engagement.h:117
void SetIncidentId(const Aws::String &value)
Definition Engagement.h:91
const Aws::Utils::DateTime & GetStartTime() const
Definition Engagement.h:103
void SetStartTime(Aws::Utils::DateTime &&value)
Definition Engagement.h:106
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue