AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetImportResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/cloudtrail/model/ImportSource.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/cloudtrail/model/ImportStatus.h>
13#include <aws/cloudtrail/model/ImportStatistics.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace CloudTrail
29{
30namespace Model
31{
33 {
34 public:
35 AWS_CLOUDTRAIL_API GetImportResult();
38
39
41
44 inline const Aws::String& GetImportId() const{ return m_importId; }
45 inline void SetImportId(const Aws::String& value) { m_importId = value; }
46 inline void SetImportId(Aws::String&& value) { m_importId = std::move(value); }
47 inline void SetImportId(const char* value) { m_importId.assign(value); }
48 inline GetImportResult& WithImportId(const Aws::String& value) { SetImportId(value); return *this;}
49 inline GetImportResult& WithImportId(Aws::String&& value) { SetImportId(std::move(value)); return *this;}
50 inline GetImportResult& WithImportId(const char* value) { SetImportId(value); return *this;}
52
54
57 inline const Aws::Vector<Aws::String>& GetDestinations() const{ return m_destinations; }
58 inline void SetDestinations(const Aws::Vector<Aws::String>& value) { m_destinations = value; }
59 inline void SetDestinations(Aws::Vector<Aws::String>&& value) { m_destinations = std::move(value); }
60 inline GetImportResult& WithDestinations(const Aws::Vector<Aws::String>& value) { SetDestinations(value); return *this;}
61 inline GetImportResult& WithDestinations(Aws::Vector<Aws::String>&& value) { SetDestinations(std::move(value)); return *this;}
62 inline GetImportResult& AddDestinations(const Aws::String& value) { m_destinations.push_back(value); return *this; }
63 inline GetImportResult& AddDestinations(Aws::String&& value) { m_destinations.push_back(std::move(value)); return *this; }
64 inline GetImportResult& AddDestinations(const char* value) { m_destinations.push_back(value); return *this; }
66
68
71 inline const ImportSource& GetImportSource() const{ return m_importSource; }
72 inline void SetImportSource(const ImportSource& value) { m_importSource = value; }
73 inline void SetImportSource(ImportSource&& value) { m_importSource = std::move(value); }
74 inline GetImportResult& WithImportSource(const ImportSource& value) { SetImportSource(value); return *this;}
75 inline GetImportResult& WithImportSource(ImportSource&& value) { SetImportSource(std::move(value)); return *this;}
77
79
84 inline const Aws::Utils::DateTime& GetStartEventTime() const{ return m_startEventTime; }
85 inline void SetStartEventTime(const Aws::Utils::DateTime& value) { m_startEventTime = value; }
86 inline void SetStartEventTime(Aws::Utils::DateTime&& value) { m_startEventTime = std::move(value); }
87 inline GetImportResult& WithStartEventTime(const Aws::Utils::DateTime& value) { SetStartEventTime(value); return *this;}
88 inline GetImportResult& WithStartEventTime(Aws::Utils::DateTime&& value) { SetStartEventTime(std::move(value)); return *this;}
90
92
97 inline const Aws::Utils::DateTime& GetEndEventTime() const{ return m_endEventTime; }
98 inline void SetEndEventTime(const Aws::Utils::DateTime& value) { m_endEventTime = value; }
99 inline void SetEndEventTime(Aws::Utils::DateTime&& value) { m_endEventTime = std::move(value); }
100 inline GetImportResult& WithEndEventTime(const Aws::Utils::DateTime& value) { SetEndEventTime(value); return *this;}
101 inline GetImportResult& WithEndEventTime(Aws::Utils::DateTime&& value) { SetEndEventTime(std::move(value)); return *this;}
103
105
108 inline const ImportStatus& GetImportStatus() const{ return m_importStatus; }
109 inline void SetImportStatus(const ImportStatus& value) { m_importStatus = value; }
110 inline void SetImportStatus(ImportStatus&& value) { m_importStatus = std::move(value); }
111 inline GetImportResult& WithImportStatus(const ImportStatus& value) { SetImportStatus(value); return *this;}
112 inline GetImportResult& WithImportStatus(ImportStatus&& value) { SetImportStatus(std::move(value)); return *this;}
114
116
119 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
120 inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; }
121 inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); }
123 inline GetImportResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
125
127
130 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const{ return m_updatedTimestamp; }
131 inline void SetUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_updatedTimestamp = value; }
132 inline void SetUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_updatedTimestamp = std::move(value); }
134 inline GetImportResult& WithUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetUpdatedTimestamp(std::move(value)); return *this;}
136
138
144 inline const ImportStatistics& GetImportStatistics() const{ return m_importStatistics; }
145 inline void SetImportStatistics(const ImportStatistics& value) { m_importStatistics = value; }
146 inline void SetImportStatistics(ImportStatistics&& value) { m_importStatistics = std::move(value); }
147 inline GetImportResult& WithImportStatistics(const ImportStatistics& value) { SetImportStatistics(value); return *this;}
148 inline GetImportResult& WithImportStatistics(ImportStatistics&& value) { SetImportStatistics(std::move(value)); return *this;}
150
152
153 inline const Aws::String& GetRequestId() const{ return m_requestId; }
154 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
155 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
156 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
157 inline GetImportResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
158 inline GetImportResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
159 inline GetImportResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
161 private:
162
163 Aws::String m_importId;
164
165 Aws::Vector<Aws::String> m_destinations;
166
167 ImportSource m_importSource;
168
169 Aws::Utils::DateTime m_startEventTime;
170
171 Aws::Utils::DateTime m_endEventTime;
172
173 ImportStatus m_importStatus;
174
175 Aws::Utils::DateTime m_createdTimestamp;
176
177 Aws::Utils::DateTime m_updatedTimestamp;
178
179 ImportStatistics m_importStatistics;
180
181 Aws::String m_requestId;
182 };
183
184} // namespace Model
185} // namespace CloudTrail
186} // namespace Aws
void SetDestinations(const Aws::Vector< Aws::String > &value)
GetImportResult & WithUpdatedTimestamp(Aws::Utils::DateTime &&value)
GetImportResult & WithImportSource(ImportSource &&value)
GetImportResult & WithImportStatus(ImportStatus &&value)
void SetUpdatedTimestamp(Aws::Utils::DateTime &&value)
void SetRequestId(const Aws::String &value)
void SetDestinations(Aws::Vector< Aws::String > &&value)
const Aws::String & GetRequestId() const
const ImportStatistics & GetImportStatistics() const
GetImportResult & WithRequestId(const Aws::String &value)
AWS_CLOUDTRAIL_API GetImportResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetImportSource(ImportSource &&value)
void SetImportStatistics(const ImportStatistics &value)
GetImportResult & WithStartEventTime(const Aws::Utils::DateTime &value)
GetImportResult & WithImportStatus(const ImportStatus &value)
void SetStartEventTime(const Aws::Utils::DateTime &value)
GetImportResult & WithImportId(Aws::String &&value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
void SetEndEventTime(Aws::Utils::DateTime &&value)
GetImportResult & WithDestinations(const Aws::Vector< Aws::String > &value)
GetImportResult & WithImportStatistics(ImportStatistics &&value)
void SetImportSource(const ImportSource &value)
GetImportResult & WithRequestId(const char *value)
const Aws::Utils::DateTime & GetStartEventTime() const
GetImportResult & WithImportStatistics(const ImportStatistics &value)
GetImportResult & WithImportId(const Aws::String &value)
GetImportResult & WithRequestId(Aws::String &&value)
AWS_CLOUDTRAIL_API GetImportResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetImportStatus(ImportStatus &&value)
void SetCreatedTimestamp(const Aws::Utils::DateTime &value)
void SetEndEventTime(const Aws::Utils::DateTime &value)
GetImportResult & WithStartEventTime(Aws::Utils::DateTime &&value)
void SetImportStatistics(ImportStatistics &&value)
const Aws::Utils::DateTime & GetUpdatedTimestamp() const
GetImportResult & WithImportSource(const ImportSource &value)
void SetCreatedTimestamp(Aws::Utils::DateTime &&value)
const Aws::Vector< Aws::String > & GetDestinations() const
const ImportStatus & GetImportStatus() const
GetImportResult & AddDestinations(const char *value)
void SetImportStatus(const ImportStatus &value)
GetImportResult & WithEndEventTime(const Aws::Utils::DateTime &value)
GetImportResult & AddDestinations(const Aws::String &value)
GetImportResult & WithImportId(const char *value)
const Aws::Utils::DateTime & GetEndEventTime() const
GetImportResult & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
GetImportResult & WithEndEventTime(Aws::Utils::DateTime &&value)
GetImportResult & WithDestinations(Aws::Vector< Aws::String > &&value)
void SetUpdatedTimestamp(const Aws::Utils::DateTime &value)
GetImportResult & WithUpdatedTimestamp(const Aws::Utils::DateTime &value)
const ImportSource & GetImportSource() const
void SetStartEventTime(Aws::Utils::DateTime &&value)
GetImportResult & AddDestinations(Aws::String &&value)
const Aws::String & GetImportId() const
void SetImportId(const Aws::String &value)
void SetImportId(Aws::String &&value)
GetImportResult & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue