AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ControlMetadata.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AuditManager {
21namespace Model {
22
30 public:
31 AWS_AUDITMANAGER_API ControlMetadata() = default;
32 AWS_AUDITMANAGER_API ControlMetadata(Aws::Utils::Json::JsonView jsonValue);
33 AWS_AUDITMANAGER_API ControlMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetArn() const { return m_arn; }
41 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
48 ControlMetadata& WithArn(ArnT&& value) {
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetId() const { return m_id; }
59 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
60 template <typename IdT = Aws::String>
61 void SetId(IdT&& value) {
62 m_idHasBeenSet = true;
63 m_id = std::forward<IdT>(value);
64 }
65 template <typename IdT = Aws::String>
66 ControlMetadata& WithId(IdT&& value) {
67 SetId(std::forward<IdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 template <typename NameT = Aws::String>
79 void SetName(NameT&& value) {
80 m_nameHasBeenSet = true;
81 m_name = std::forward<NameT>(value);
82 }
83 template <typename NameT = Aws::String>
84 ControlMetadata& WithName(NameT&& value) {
85 SetName(std::forward<NameT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetControlSources() const { return m_controlSources; }
96 inline bool ControlSourcesHasBeenSet() const { return m_controlSourcesHasBeenSet; }
97 template <typename ControlSourcesT = Aws::String>
98 void SetControlSources(ControlSourcesT&& value) {
99 m_controlSourcesHasBeenSet = true;
100 m_controlSources = std::forward<ControlSourcesT>(value);
101 }
102 template <typename ControlSourcesT = Aws::String>
103 ControlMetadata& WithControlSources(ControlSourcesT&& value) {
104 SetControlSources(std::forward<ControlSourcesT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
114 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
115 template <typename CreatedAtT = Aws::Utils::DateTime>
116 void SetCreatedAt(CreatedAtT&& value) {
117 m_createdAtHasBeenSet = true;
118 m_createdAt = std::forward<CreatedAtT>(value);
119 }
120 template <typename CreatedAtT = Aws::Utils::DateTime>
121 ControlMetadata& WithCreatedAt(CreatedAtT&& value) {
122 SetCreatedAt(std::forward<CreatedAtT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
132 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
133 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
134 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
135 m_lastUpdatedAtHasBeenSet = true;
136 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
137 }
138 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
139 ControlMetadata& WithLastUpdatedAt(LastUpdatedAtT&& value) {
140 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
141 return *this;
142 }
144 private:
145 Aws::String m_arn;
146
147 Aws::String m_id;
148
149 Aws::String m_name;
150
151 Aws::String m_controlSources;
152
153 Aws::Utils::DateTime m_createdAt{};
154
155 Aws::Utils::DateTime m_lastUpdatedAt{};
156 bool m_arnHasBeenSet = false;
157 bool m_idHasBeenSet = false;
158 bool m_nameHasBeenSet = false;
159 bool m_controlSourcesHasBeenSet = false;
160 bool m_createdAtHasBeenSet = false;
161 bool m_lastUpdatedAtHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace AuditManager
166} // namespace Aws
ControlMetadata & WithArn(ArnT &&value)
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AUDITMANAGER_API ControlMetadata(Aws::Utils::Json::JsonView jsonValue)
AWS_AUDITMANAGER_API ControlMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
ControlMetadata & WithId(IdT &&value)
ControlMetadata & WithControlSources(ControlSourcesT &&value)
AWS_AUDITMANAGER_API ControlMetadata()=default
const Aws::Utils::DateTime & GetLastUpdatedAt() const
ControlMetadata & WithName(NameT &&value)
ControlMetadata & WithCreatedAt(CreatedAtT &&value)
void SetLastUpdatedAt(LastUpdatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetControlSources(ControlSourcesT &&value)
ControlMetadata & WithLastUpdatedAt(LastUpdatedAtT &&value)
const Aws::String & GetControlSources() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue