AWS SDK for C++

AWS SDK for C++ Version 1.11.684

Loading...
Searching...
No Matches
InvestigationDetail.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/detective/Detective_EXPORTS.h>
10#include <aws/detective/model/EntityType.h>
11#include <aws/detective/model/Severity.h>
12#include <aws/detective/model/State.h>
13#include <aws/detective/model/Status.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Detective {
25namespace Model {
26
34 public:
35 AWS_DETECTIVE_API InvestigationDetail() = default;
36 AWS_DETECTIVE_API InvestigationDetail(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetInvestigationId() const { return m_investigationId; }
45 inline bool InvestigationIdHasBeenSet() const { return m_investigationIdHasBeenSet; }
46 template <typename InvestigationIdT = Aws::String>
47 void SetInvestigationId(InvestigationIdT&& value) {
48 m_investigationIdHasBeenSet = true;
49 m_investigationId = std::forward<InvestigationIdT>(value);
50 }
51 template <typename InvestigationIdT = Aws::String>
52 InvestigationDetail& WithInvestigationId(InvestigationIdT&& value) {
53 SetInvestigationId(std::forward<InvestigationIdT>(value));
54 return *this;
55 }
57
59
63 inline Severity GetSeverity() const { return m_severity; }
64 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
65 inline void SetSeverity(Severity value) {
66 m_severityHasBeenSet = true;
67 m_severity = value;
68 }
70 SetSeverity(value);
71 return *this;
72 }
74
76
79 inline Status GetStatus() const { return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 inline void SetStatus(Status value) {
82 m_statusHasBeenSet = true;
83 m_status = value;
84 }
86 SetStatus(value);
87 return *this;
88 }
90
92
96 inline State GetState() const { return m_state; }
97 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
98 inline void SetState(State value) {
99 m_stateHasBeenSet = true;
100 m_state = value;
101 }
103 SetState(value);
104 return *this;
105 }
107
109
114 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
115 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
116 template <typename CreatedTimeT = Aws::Utils::DateTime>
117 void SetCreatedTime(CreatedTimeT&& value) {
118 m_createdTimeHasBeenSet = true;
119 m_createdTime = std::forward<CreatedTimeT>(value);
120 }
121 template <typename CreatedTimeT = Aws::Utils::DateTime>
122 InvestigationDetail& WithCreatedTime(CreatedTimeT&& value) {
123 SetCreatedTime(std::forward<CreatedTimeT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetEntityArn() const { return m_entityArn; }
133 inline bool EntityArnHasBeenSet() const { return m_entityArnHasBeenSet; }
134 template <typename EntityArnT = Aws::String>
135 void SetEntityArn(EntityArnT&& value) {
136 m_entityArnHasBeenSet = true;
137 m_entityArn = std::forward<EntityArnT>(value);
138 }
139 template <typename EntityArnT = Aws::String>
140 InvestigationDetail& WithEntityArn(EntityArnT&& value) {
141 SetEntityArn(std::forward<EntityArnT>(value));
142 return *this;
143 }
145
147
151 inline EntityType GetEntityType() const { return m_entityType; }
152 inline bool EntityTypeHasBeenSet() const { return m_entityTypeHasBeenSet; }
153 inline void SetEntityType(EntityType value) {
154 m_entityTypeHasBeenSet = true;
155 m_entityType = value;
156 }
158 SetEntityType(value);
159 return *this;
160 }
162 private:
163 Aws::String m_investigationId;
164 bool m_investigationIdHasBeenSet = false;
165
166 Severity m_severity{Severity::NOT_SET};
167 bool m_severityHasBeenSet = false;
168
169 Status m_status{Status::NOT_SET};
170 bool m_statusHasBeenSet = false;
171
172 State m_state{State::NOT_SET};
173 bool m_stateHasBeenSet = false;
174
175 Aws::Utils::DateTime m_createdTime{};
176 bool m_createdTimeHasBeenSet = false;
177
178 Aws::String m_entityArn;
179 bool m_entityArnHasBeenSet = false;
180
181 EntityType m_entityType{EntityType::NOT_SET};
182 bool m_entityTypeHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace Detective
187} // namespace Aws
InvestigationDetail & WithCreatedTime(CreatedTimeT &&value)
InvestigationDetail & WithEntityArn(EntityArnT &&value)
InvestigationDetail & WithStatus(Status value)
InvestigationDetail & WithEntityType(EntityType value)
void SetInvestigationId(InvestigationIdT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const
InvestigationDetail & WithSeverity(Severity value)
AWS_DETECTIVE_API InvestigationDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DETECTIVE_API InvestigationDetail()=default
InvestigationDetail & WithState(State value)
InvestigationDetail & WithInvestigationId(InvestigationIdT &&value)
AWS_DETECTIVE_API InvestigationDetail(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue