AWS SDK for C++

AWS SDK for C++ Version 1.11.902

Loading...
Searching...
No Matches
DeploymentEventDataSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/launch-wizard/LaunchWizard_EXPORTS.h>
11#include <aws/launch-wizard/model/EventStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LaunchWizard {
23namespace Model {
24
31 public:
32 AWS_LAUNCHWIZARD_API DeploymentEventDataSummary() = default;
35 AWS_LAUNCHWIZARD_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
77 inline EventStatus GetStatus() const { return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
79 inline void SetStatus(EventStatus value) {
80 m_statusHasBeenSet = true;
81 m_status = value;
82 }
84 SetStatus(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
94 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
95 template <typename StatusReasonT = Aws::String>
96 void SetStatusReason(StatusReasonT&& value) {
97 m_statusReasonHasBeenSet = true;
98 m_statusReason = std::forward<StatusReasonT>(value);
99 }
100 template <typename StatusReasonT = Aws::String>
102 SetStatusReason(std::forward<StatusReasonT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
112 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
113 template <typename TimestampT = Aws::Utils::DateTime>
114 void SetTimestamp(TimestampT&& value) {
115 m_timestampHasBeenSet = true;
116 m_timestamp = std::forward<TimestampT>(value);
117 }
118 template <typename TimestampT = Aws::Utils::DateTime>
120 SetTimestamp(std::forward<TimestampT>(value));
121 return *this;
122 }
124
126
127 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
128 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
129 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
130 void SetMetadata(MetadataT&& value) {
131 m_metadataHasBeenSet = true;
132 m_metadata = std::forward<MetadataT>(value);
133 }
134 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
136 SetMetadata(std::forward<MetadataT>(value));
137 return *this;
138 }
139 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
140 DeploymentEventDataSummary& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
141 m_metadataHasBeenSet = true;
142 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
143 return *this;
144 }
146 private:
147 Aws::String m_name;
148
149 Aws::String m_description;
150
152
153 Aws::String m_statusReason;
154
155 Aws::Utils::DateTime m_timestamp{};
156
158 bool m_nameHasBeenSet = false;
159 bool m_descriptionHasBeenSet = false;
160 bool m_statusHasBeenSet = false;
161 bool m_statusReasonHasBeenSet = false;
162 bool m_timestampHasBeenSet = false;
163 bool m_metadataHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace LaunchWizard
168} // namespace Aws
DeploymentEventDataSummary & WithName(NameT &&value)
DeploymentEventDataSummary & WithTimestamp(TimestampT &&value)
DeploymentEventDataSummary & WithStatus(EventStatus value)
AWS_LAUNCHWIZARD_API DeploymentEventDataSummary(Aws::Utils::Json::JsonView jsonValue)
DeploymentEventDataSummary & WithStatusReason(StatusReasonT &&value)
DeploymentEventDataSummary & WithMetadata(MetadataT &&value)
AWS_LAUNCHWIZARD_API DeploymentEventDataSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
DeploymentEventDataSummary & WithDescription(DescriptionT &&value)
AWS_LAUNCHWIZARD_API DeploymentEventDataSummary()=default
AWS_LAUNCHWIZARD_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
DeploymentEventDataSummary & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue