AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
DataLakeException.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securitylake/SecurityLake_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityLake {
21namespace Model {
22
30 public:
31 AWS_SECURITYLAKE_API DataLakeException() = default;
32 AWS_SECURITYLAKE_API DataLakeException(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYLAKE_API DataLakeException& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetException() const { return m_exception; }
41 inline bool ExceptionHasBeenSet() const { return m_exceptionHasBeenSet; }
42 template <typename ExceptionT = Aws::String>
43 void SetException(ExceptionT&& value) {
44 m_exceptionHasBeenSet = true;
45 m_exception = std::forward<ExceptionT>(value);
46 }
47 template <typename ExceptionT = Aws::String>
48 DataLakeException& WithException(ExceptionT&& value) {
49 SetException(std::forward<ExceptionT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetRegion() const { return m_region; }
59 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
60 template <typename RegionT = Aws::String>
61 void SetRegion(RegionT&& value) {
62 m_regionHasBeenSet = true;
63 m_region = std::forward<RegionT>(value);
64 }
65 template <typename RegionT = Aws::String>
66 DataLakeException& WithRegion(RegionT&& value) {
67 SetRegion(std::forward<RegionT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetRemediation() const { return m_remediation; }
77 inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; }
78 template <typename RemediationT = Aws::String>
79 void SetRemediation(RemediationT&& value) {
80 m_remediationHasBeenSet = true;
81 m_remediation = std::forward<RemediationT>(value);
82 }
83 template <typename RemediationT = Aws::String>
84 DataLakeException& WithRemediation(RemediationT&& value) {
85 SetRemediation(std::forward<RemediationT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
96 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
97 template <typename TimestampT = Aws::Utils::DateTime>
98 void SetTimestamp(TimestampT&& value) {
99 m_timestampHasBeenSet = true;
100 m_timestamp = std::forward<TimestampT>(value);
101 }
102 template <typename TimestampT = Aws::Utils::DateTime>
103 DataLakeException& WithTimestamp(TimestampT&& value) {
104 SetTimestamp(std::forward<TimestampT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_exception;
110
111 Aws::String m_region;
112
113 Aws::String m_remediation;
114
115 Aws::Utils::DateTime m_timestamp{};
116 bool m_exceptionHasBeenSet = false;
117 bool m_regionHasBeenSet = false;
118 bool m_remediationHasBeenSet = false;
119 bool m_timestampHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace SecurityLake
124} // namespace Aws
DataLakeException & WithRegion(RegionT &&value)
AWS_SECURITYLAKE_API DataLakeException(Aws::Utils::Json::JsonView jsonValue)
DataLakeException & WithTimestamp(TimestampT &&value)
DataLakeException & WithRemediation(RemediationT &&value)
DataLakeException & WithException(ExceptionT &&value)
const Aws::Utils::DateTime & GetTimestamp() const
AWS_SECURITYLAKE_API DataLakeException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYLAKE_API DataLakeException()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue