AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
IngestionStatus.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_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 CloudTrail {
21namespace Model {
22
30 public:
31 AWS_CLOUDTRAIL_API IngestionStatus() = default;
32 AWS_CLOUDTRAIL_API IngestionStatus(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Utils::DateTime& GetLatestIngestionSuccessTime() const { return m_latestIngestionSuccessTime; }
42 inline bool LatestIngestionSuccessTimeHasBeenSet() const { return m_latestIngestionSuccessTimeHasBeenSet; }
43 template <typename LatestIngestionSuccessTimeT = Aws::Utils::DateTime>
44 void SetLatestIngestionSuccessTime(LatestIngestionSuccessTimeT&& value) {
45 m_latestIngestionSuccessTimeHasBeenSet = true;
46 m_latestIngestionSuccessTime = std::forward<LatestIngestionSuccessTimeT>(value);
47 }
48 template <typename LatestIngestionSuccessTimeT = Aws::Utils::DateTime>
49 IngestionStatus& WithLatestIngestionSuccessTime(LatestIngestionSuccessTimeT&& value) {
50 SetLatestIngestionSuccessTime(std::forward<LatestIngestionSuccessTimeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetLatestIngestionSuccessEventID() const { return m_latestIngestionSuccessEventID; }
60 inline bool LatestIngestionSuccessEventIDHasBeenSet() const { return m_latestIngestionSuccessEventIDHasBeenSet; }
61 template <typename LatestIngestionSuccessEventIDT = Aws::String>
62 void SetLatestIngestionSuccessEventID(LatestIngestionSuccessEventIDT&& value) {
63 m_latestIngestionSuccessEventIDHasBeenSet = true;
64 m_latestIngestionSuccessEventID = std::forward<LatestIngestionSuccessEventIDT>(value);
65 }
66 template <typename LatestIngestionSuccessEventIDT = Aws::String>
67 IngestionStatus& WithLatestIngestionSuccessEventID(LatestIngestionSuccessEventIDT&& value) {
68 SetLatestIngestionSuccessEventID(std::forward<LatestIngestionSuccessEventIDT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetLatestIngestionErrorCode() const { return m_latestIngestionErrorCode; }
78 inline bool LatestIngestionErrorCodeHasBeenSet() const { return m_latestIngestionErrorCodeHasBeenSet; }
79 template <typename LatestIngestionErrorCodeT = Aws::String>
80 void SetLatestIngestionErrorCode(LatestIngestionErrorCodeT&& value) {
81 m_latestIngestionErrorCodeHasBeenSet = true;
82 m_latestIngestionErrorCode = std::forward<LatestIngestionErrorCodeT>(value);
83 }
84 template <typename LatestIngestionErrorCodeT = Aws::String>
85 IngestionStatus& WithLatestIngestionErrorCode(LatestIngestionErrorCodeT&& value) {
86 SetLatestIngestionErrorCode(std::forward<LatestIngestionErrorCodeT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::Utils::DateTime& GetLatestIngestionAttemptTime() const { return m_latestIngestionAttemptTime; }
97 inline bool LatestIngestionAttemptTimeHasBeenSet() const { return m_latestIngestionAttemptTimeHasBeenSet; }
98 template <typename LatestIngestionAttemptTimeT = Aws::Utils::DateTime>
99 void SetLatestIngestionAttemptTime(LatestIngestionAttemptTimeT&& value) {
100 m_latestIngestionAttemptTimeHasBeenSet = true;
101 m_latestIngestionAttemptTime = std::forward<LatestIngestionAttemptTimeT>(value);
102 }
103 template <typename LatestIngestionAttemptTimeT = Aws::Utils::DateTime>
104 IngestionStatus& WithLatestIngestionAttemptTime(LatestIngestionAttemptTimeT&& value) {
105 SetLatestIngestionAttemptTime(std::forward<LatestIngestionAttemptTimeT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetLatestIngestionAttemptEventID() const { return m_latestIngestionAttemptEventID; }
115 inline bool LatestIngestionAttemptEventIDHasBeenSet() const { return m_latestIngestionAttemptEventIDHasBeenSet; }
116 template <typename LatestIngestionAttemptEventIDT = Aws::String>
117 void SetLatestIngestionAttemptEventID(LatestIngestionAttemptEventIDT&& value) {
118 m_latestIngestionAttemptEventIDHasBeenSet = true;
119 m_latestIngestionAttemptEventID = std::forward<LatestIngestionAttemptEventIDT>(value);
120 }
121 template <typename LatestIngestionAttemptEventIDT = Aws::String>
122 IngestionStatus& WithLatestIngestionAttemptEventID(LatestIngestionAttemptEventIDT&& value) {
123 SetLatestIngestionAttemptEventID(std::forward<LatestIngestionAttemptEventIDT>(value));
124 return *this;
125 }
127 private:
128 Aws::Utils::DateTime m_latestIngestionSuccessTime{};
129
130 Aws::String m_latestIngestionSuccessEventID;
131
132 Aws::String m_latestIngestionErrorCode;
133
134 Aws::Utils::DateTime m_latestIngestionAttemptTime{};
135
136 Aws::String m_latestIngestionAttemptEventID;
137 bool m_latestIngestionSuccessTimeHasBeenSet = false;
138 bool m_latestIngestionSuccessEventIDHasBeenSet = false;
139 bool m_latestIngestionErrorCodeHasBeenSet = false;
140 bool m_latestIngestionAttemptTimeHasBeenSet = false;
141 bool m_latestIngestionAttemptEventIDHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace CloudTrail
146} // namespace Aws
IngestionStatus & WithLatestIngestionAttemptEventID(LatestIngestionAttemptEventIDT &&value)
void SetLatestIngestionSuccessTime(LatestIngestionSuccessTimeT &&value)
void SetLatestIngestionSuccessEventID(LatestIngestionSuccessEventIDT &&value)
void SetLatestIngestionAttemptTime(LatestIngestionAttemptTimeT &&value)
IngestionStatus & WithLatestIngestionAttemptTime(LatestIngestionAttemptTimeT &&value)
void SetLatestIngestionAttemptEventID(LatestIngestionAttemptEventIDT &&value)
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetLatestIngestionSuccessEventID() const
AWS_CLOUDTRAIL_API IngestionStatus()=default
void SetLatestIngestionErrorCode(LatestIngestionErrorCodeT &&value)
const Aws::String & GetLatestIngestionErrorCode() const
AWS_CLOUDTRAIL_API IngestionStatus(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLatestIngestionSuccessTime() const
AWS_CLOUDTRAIL_API IngestionStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
IngestionStatus & WithLatestIngestionSuccessTime(LatestIngestionSuccessTimeT &&value)
IngestionStatus & WithLatestIngestionErrorCode(LatestIngestionErrorCodeT &&value)
IngestionStatus & WithLatestIngestionSuccessEventID(LatestIngestionSuccessEventIDT &&value)
const Aws::String & GetLatestIngestionAttemptEventID() const
const Aws::Utils::DateTime & GetLatestIngestionAttemptTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue