AWS SDK for C++

AWS SDK for C++ Version 1.11.637

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#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace PrometheusService
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_PROMETHEUSSERVICE_API AlertManagerDefinitionDescription() = default;
41 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const AlertManagerDefinitionStatus& GetStatus() const { return m_status; }
50 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
51 template<typename StatusT = AlertManagerDefinitionStatus>
52 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
53 template<typename StatusT = AlertManagerDefinitionStatus>
54 AlertManagerDefinitionDescription& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
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) { m_dataHasBeenSet = true; m_data = std::forward<DataT>(value); }
67 template<typename DataT = Aws::Utils::ByteBuffer>
68 AlertManagerDefinitionDescription& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
76 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
77 template<typename CreatedAtT = Aws::Utils::DateTime>
78 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
79 template<typename CreatedAtT = Aws::Utils::DateTime>
80 AlertManagerDefinitionDescription& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
82
84
88 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
89 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
90 template<typename ModifiedAtT = Aws::Utils::DateTime>
91 void SetModifiedAt(ModifiedAtT&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::forward<ModifiedAtT>(value); }
92 template<typename ModifiedAtT = Aws::Utils::DateTime>
93 AlertManagerDefinitionDescription& WithModifiedAt(ModifiedAtT&& value) { SetModifiedAt(std::forward<ModifiedAtT>(value)); return *this;}
95 private:
96
98 bool m_statusHasBeenSet = false;
99
100 Aws::Utils::ByteBuffer m_data{};
101 bool m_dataHasBeenSet = false;
102
103 Aws::Utils::DateTime m_createdAt{};
104 bool m_createdAtHasBeenSet = false;
105
106 Aws::Utils::DateTime m_modifiedAt{};
107 bool m_modifiedAtHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace PrometheusService
112} // 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