AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ControlMetadata.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AuditManager
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_AUDITMANAGER_API ControlMetadata() = default;
37 AWS_AUDITMANAGER_API ControlMetadata(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AUDITMANAGER_API ControlMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetArn() const { return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 template<typename ArnT = Aws::String>
49 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
50 template<typename ArnT = Aws::String>
51 ControlMetadata& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
62 template<typename IdT = Aws::String>
63 ControlMetadata& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
65
67
70 inline const Aws::String& GetName() const { return m_name; }
71 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
72 template<typename NameT = Aws::String>
73 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
74 template<typename NameT = Aws::String>
75 ControlMetadata& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
77
79
83 inline const Aws::String& GetControlSources() const { return m_controlSources; }
84 inline bool ControlSourcesHasBeenSet() const { return m_controlSourcesHasBeenSet; }
85 template<typename ControlSourcesT = Aws::String>
86 void SetControlSources(ControlSourcesT&& value) { m_controlSourcesHasBeenSet = true; m_controlSources = std::forward<ControlSourcesT>(value); }
87 template<typename ControlSourcesT = Aws::String>
88 ControlMetadata& WithControlSources(ControlSourcesT&& value) { SetControlSources(std::forward<ControlSourcesT>(value)); return *this;}
90
92
95 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
96 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
97 template<typename CreatedAtT = Aws::Utils::DateTime>
98 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
99 template<typename CreatedAtT = Aws::Utils::DateTime>
100 ControlMetadata& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
102
104
107 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
108 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
109 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
110 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
111 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
112 ControlMetadata& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
114 private:
115
116 Aws::String m_arn;
117 bool m_arnHasBeenSet = false;
118
119 Aws::String m_id;
120 bool m_idHasBeenSet = false;
121
122 Aws::String m_name;
123 bool m_nameHasBeenSet = false;
124
125 Aws::String m_controlSources;
126 bool m_controlSourcesHasBeenSet = false;
127
128 Aws::Utils::DateTime m_createdAt{};
129 bool m_createdAtHasBeenSet = false;
130
131 Aws::Utils::DateTime m_lastUpdatedAt{};
132 bool m_lastUpdatedAtHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace AuditManager
137} // 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