AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
AlertManagerDefinitionDescription.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/model/AlertManagerDefinitionStatus.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/DateTime.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace PrometheusService {
22namespace Model {
23
32 public:
33 AWS_PROMETHEUSSERVICE_API AlertManagerDefinitionDescription() = default;
36 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const AlertManagerDefinitionStatus& GetStatus() const { return m_status; }
44 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
45 template <typename StatusT = AlertManagerDefinitionStatus>
46 void SetStatus(StatusT&& value) {
47 m_statusHasBeenSet = true;
48 m_status = std::forward<StatusT>(value);
49 }
50 template <typename StatusT = AlertManagerDefinitionStatus>
52 SetStatus(std::forward<StatusT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::Utils::ByteBuffer& GetData() const { return m_data; }
64 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
65 template <typename DataT = Aws::Utils::ByteBuffer>
66 void SetData(DataT&& value) {
67 m_dataHasBeenSet = true;
68 m_data = std::forward<DataT>(value);
69 }
70 template <typename DataT = Aws::Utils::ByteBuffer>
72 SetData(std::forward<DataT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
82 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
83 template <typename CreatedAtT = Aws::Utils::DateTime>
84 void SetCreatedAt(CreatedAtT&& value) {
85 m_createdAtHasBeenSet = true;
86 m_createdAt = std::forward<CreatedAtT>(value);
87 }
88 template <typename CreatedAtT = Aws::Utils::DateTime>
90 SetCreatedAt(std::forward<CreatedAtT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
101 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
102 template <typename ModifiedAtT = Aws::Utils::DateTime>
103 void SetModifiedAt(ModifiedAtT&& value) {
104 m_modifiedAtHasBeenSet = true;
105 m_modifiedAt = std::forward<ModifiedAtT>(value);
106 }
107 template <typename ModifiedAtT = Aws::Utils::DateTime>
109 SetModifiedAt(std::forward<ModifiedAtT>(value));
110 return *this;
111 }
113 private:
115
116 Aws::Utils::ByteBuffer m_data{};
117
118 Aws::Utils::DateTime m_createdAt{};
119
120 Aws::Utils::DateTime m_modifiedAt{};
121 bool m_statusHasBeenSet = false;
122 bool m_dataHasBeenSet = false;
123 bool m_createdAtHasBeenSet = false;
124 bool m_modifiedAtHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace PrometheusService
129} // namespace Aws
AlertManagerDefinitionDescription & WithCreatedAt(CreatedAtT &&value)
AWS_PROMETHEUSSERVICE_API AlertManagerDefinitionDescription()=default
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PROMETHEUSSERVICE_API AlertManagerDefinitionDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
AlertManagerDefinitionDescription & WithModifiedAt(ModifiedAtT &&value)
AWS_PROMETHEUSSERVICE_API AlertManagerDefinitionDescription(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue