AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OperationEvent.h
1
6#pragma once
7#include <aws/ssm-sap/SsmSap_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm-sap/model/Resource.h>
10#include <aws/ssm-sap/model/OperationEventStatus.h>
11#include <aws/core/utils/DateTime.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 SsmSap
25{
26namespace Model
27{
28
41 {
42 public:
43 AWS_SSMSAP_API OperationEvent();
44 AWS_SSMSAP_API OperationEvent(Aws::Utils::Json::JsonView jsonValue);
46 AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
54 inline const Aws::String& GetDescription() const{ return m_description; }
55 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
56 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
57 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
58 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
59 inline OperationEvent& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
60 inline OperationEvent& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
61 inline OperationEvent& WithDescription(const char* value) { SetDescription(value); return *this;}
63
65
69 inline const Resource& GetResource() const{ return m_resource; }
70 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
71 inline void SetResource(const Resource& value) { m_resourceHasBeenSet = true; m_resource = value; }
72 inline void SetResource(Resource&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
73 inline OperationEvent& WithResource(const Resource& value) { SetResource(value); return *this;}
74 inline OperationEvent& WithResource(Resource&& value) { SetResource(std::move(value)); return *this;}
76
78
82 inline const OperationEventStatus& GetStatus() const{ return m_status; }
83 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
84 inline void SetStatus(const OperationEventStatus& value) { m_statusHasBeenSet = true; m_status = value; }
85 inline void SetStatus(OperationEventStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
86 inline OperationEvent& WithStatus(const OperationEventStatus& value) { SetStatus(value); return *this;}
87 inline OperationEvent& WithStatus(OperationEventStatus&& value) { SetStatus(std::move(value)); return *this;}
89
91
94 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
95 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
96 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
97 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
98 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
99 inline OperationEvent& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
100 inline OperationEvent& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
101 inline OperationEvent& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
103
105
108 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
109 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
110 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
111 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
112 inline OperationEvent& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
113 inline OperationEvent& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
115 private:
116
117 Aws::String m_description;
118 bool m_descriptionHasBeenSet = false;
119
120 Resource m_resource;
121 bool m_resourceHasBeenSet = false;
122
123 OperationEventStatus m_status;
124 bool m_statusHasBeenSet = false;
125
126 Aws::String m_statusMessage;
127 bool m_statusMessageHasBeenSet = false;
128
129 Aws::Utils::DateTime m_timestamp;
130 bool m_timestampHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace SsmSap
135} // namespace Aws
AWS_SSMSAP_API OperationEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
AWS_SSMSAP_API OperationEvent(Aws::Utils::Json::JsonView jsonValue)
OperationEvent & WithStatus(OperationEventStatus &&value)
void SetResource(Resource &&value)
OperationEvent & WithDescription(Aws::String &&value)
OperationEvent & WithDescription(const char *value)
AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTimestamp(Aws::Utils::DateTime &&value)
void SetStatusMessage(Aws::String &&value)
void SetStatusMessage(const char *value)
void SetDescription(Aws::String &&value)
void SetTimestamp(const Aws::Utils::DateTime &value)
const Resource & GetResource() const
void SetStatusMessage(const Aws::String &value)
void SetDescription(const Aws::String &value)
void SetResource(const Resource &value)
OperationEvent & WithStatus(const OperationEventStatus &value)
OperationEvent & WithStatusMessage(const Aws::String &value)
const Aws::String & GetStatusMessage() const
void SetStatus(OperationEventStatus &&value)
void SetStatus(const OperationEventStatus &value)
OperationEvent & WithTimestamp(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetTimestamp() const
OperationEvent & WithDescription(const Aws::String &value)
const OperationEventStatus & GetStatus() const
OperationEvent & WithTimestamp(Aws::Utils::DateTime &&value)
void SetDescription(const char *value)
OperationEvent & WithResource(Resource &&value)
OperationEvent & WithStatusMessage(const char *value)
OperationEvent & WithStatusMessage(Aws::String &&value)
OperationEvent & WithResource(const Resource &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue