AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
49 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
50 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
51 inline ControlMetadata& WithArn(const Aws::String& value) { SetArn(value); return *this;}
52 inline ControlMetadata& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
53 inline ControlMetadata& WithArn(const char* value) { SetArn(value); return *this;}
55
57
60 inline const Aws::String& GetId() const{ return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
63 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
64 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
65 inline ControlMetadata& WithId(const Aws::String& value) { SetId(value); return *this;}
66 inline ControlMetadata& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
67 inline ControlMetadata& WithId(const char* value) { SetId(value); return *this;}
69
71
74 inline const Aws::String& GetName() const{ return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
76 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
77 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
78 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
79 inline ControlMetadata& WithName(const Aws::String& value) { SetName(value); return *this;}
80 inline ControlMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
81 inline ControlMetadata& WithName(const char* value) { SetName(value); return *this;}
83
85
89 inline const Aws::String& GetControlSources() const{ return m_controlSources; }
90 inline bool ControlSourcesHasBeenSet() const { return m_controlSourcesHasBeenSet; }
91 inline void SetControlSources(const Aws::String& value) { m_controlSourcesHasBeenSet = true; m_controlSources = value; }
92 inline void SetControlSources(Aws::String&& value) { m_controlSourcesHasBeenSet = true; m_controlSources = std::move(value); }
93 inline void SetControlSources(const char* value) { m_controlSourcesHasBeenSet = true; m_controlSources.assign(value); }
94 inline ControlMetadata& WithControlSources(const Aws::String& value) { SetControlSources(value); return *this;}
95 inline ControlMetadata& WithControlSources(Aws::String&& value) { SetControlSources(std::move(value)); return *this;}
96 inline ControlMetadata& WithControlSources(const char* value) { SetControlSources(value); return *this;}
98
100
103 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
104 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
105 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
106 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
107 inline ControlMetadata& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
108 inline ControlMetadata& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
116 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
117 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
118 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
119 inline ControlMetadata& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
120 inline ControlMetadata& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
122 private:
123
124 Aws::String m_arn;
125 bool m_arnHasBeenSet = false;
126
127 Aws::String m_id;
128 bool m_idHasBeenSet = false;
129
130 Aws::String m_name;
131 bool m_nameHasBeenSet = false;
132
133 Aws::String m_controlSources;
134 bool m_controlSourcesHasBeenSet = false;
135
136 Aws::Utils::DateTime m_createdAt;
137 bool m_createdAtHasBeenSet = false;
138
139 Aws::Utils::DateTime m_lastUpdatedAt;
140 bool m_lastUpdatedAtHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace AuditManager
145} // namespace Aws
void SetCreatedAt(const Aws::Utils::DateTime &value)
ControlMetadata & WithArn(const char *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 & WithControlSources(Aws::String &&value)
ControlMetadata & WithId(Aws::String &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
void SetControlSources(Aws::String &&value)
ControlMetadata & WithId(const Aws::String &value)
ControlMetadata & WithControlSources(const char *value)
ControlMetadata & WithArn(const Aws::String &value)
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
void SetArn(const Aws::String &value)
ControlMetadata & WithArn(Aws::String &&value)
void SetName(const Aws::String &value)
ControlMetadata & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
void SetControlSources(const Aws::String &value)
ControlMetadata & WithControlSources(const Aws::String &value)
ControlMetadata & WithId(const char *value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
ControlMetadata & WithCreatedAt(const Aws::Utils::DateTime &value)
ControlMetadata & WithCreatedAt(Aws::Utils::DateTime &&value)
ControlMetadata & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
ControlMetadata & WithName(const char *value)
void SetId(const Aws::String &value)
ControlMetadata & WithName(const Aws::String &value)
ControlMetadata & WithName(Aws::String &&value)
const Aws::String & GetControlSources() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue