AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StartImportResult.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 <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace CloudTrail
28{
29namespace Model
30{
32 {
33 public:
34 AWS_CLOUDTRAIL_API StartImportResult() = default;
37
38
40
43 inline const Aws::String& GetImportId() const { return m_importId; }
44 template<typename ImportIdT = Aws::String>
45 void SetImportId(ImportIdT&& value) { m_importIdHasBeenSet = true; m_importId = std::forward<ImportIdT>(value); }
46 template<typename ImportIdT = Aws::String>
47 StartImportResult& WithImportId(ImportIdT&& value) { SetImportId(std::forward<ImportIdT>(value)); return *this;}
49
51
54 inline const Aws::Vector<Aws::String>& GetDestinations() const { return m_destinations; }
55 template<typename DestinationsT = Aws::Vector<Aws::String>>
56 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
57 template<typename DestinationsT = Aws::Vector<Aws::String>>
58 StartImportResult& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
59 template<typename DestinationsT = Aws::String>
60 StartImportResult& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
62
64
67 inline const ImportSource& GetImportSource() const { return m_importSource; }
68 template<typename ImportSourceT = ImportSource>
69 void SetImportSource(ImportSourceT&& value) { m_importSourceHasBeenSet = true; m_importSource = std::forward<ImportSourceT>(value); }
70 template<typename ImportSourceT = ImportSource>
71 StartImportResult& WithImportSource(ImportSourceT&& value) { SetImportSource(std::forward<ImportSourceT>(value)); return *this;}
73
75
80 inline const Aws::Utils::DateTime& GetStartEventTime() const { return m_startEventTime; }
81 template<typename StartEventTimeT = Aws::Utils::DateTime>
82 void SetStartEventTime(StartEventTimeT&& value) { m_startEventTimeHasBeenSet = true; m_startEventTime = std::forward<StartEventTimeT>(value); }
83 template<typename StartEventTimeT = Aws::Utils::DateTime>
84 StartImportResult& WithStartEventTime(StartEventTimeT&& value) { SetStartEventTime(std::forward<StartEventTimeT>(value)); return *this;}
86
88
93 inline const Aws::Utils::DateTime& GetEndEventTime() const { return m_endEventTime; }
94 template<typename EndEventTimeT = Aws::Utils::DateTime>
95 void SetEndEventTime(EndEventTimeT&& value) { m_endEventTimeHasBeenSet = true; m_endEventTime = std::forward<EndEventTimeT>(value); }
96 template<typename EndEventTimeT = Aws::Utils::DateTime>
97 StartImportResult& WithEndEventTime(EndEventTimeT&& value) { SetEndEventTime(std::forward<EndEventTimeT>(value)); return *this;}
99
101
106 inline ImportStatus GetImportStatus() const { return m_importStatus; }
107 inline void SetImportStatus(ImportStatus value) { m_importStatusHasBeenSet = true; m_importStatus = value; }
108 inline StartImportResult& WithImportStatus(ImportStatus value) { SetImportStatus(value); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
116 template<typename CreatedTimestampT = Aws::Utils::DateTime>
117 void SetCreatedTimestamp(CreatedTimestampT&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::forward<CreatedTimestampT>(value); }
118 template<typename CreatedTimestampT = Aws::Utils::DateTime>
119 StartImportResult& WithCreatedTimestamp(CreatedTimestampT&& value) { SetCreatedTimestamp(std::forward<CreatedTimestampT>(value)); return *this;}
121
123
126 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const { return m_updatedTimestamp; }
127 template<typename UpdatedTimestampT = Aws::Utils::DateTime>
128 void SetUpdatedTimestamp(UpdatedTimestampT&& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = std::forward<UpdatedTimestampT>(value); }
129 template<typename UpdatedTimestampT = Aws::Utils::DateTime>
130 StartImportResult& WithUpdatedTimestamp(UpdatedTimestampT&& value) { SetUpdatedTimestamp(std::forward<UpdatedTimestampT>(value)); return *this;}
132
134
135 inline const Aws::String& GetRequestId() const { return m_requestId; }
136 template<typename RequestIdT = Aws::String>
137 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
138 template<typename RequestIdT = Aws::String>
139 StartImportResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
141 private:
142
143 Aws::String m_importId;
144 bool m_importIdHasBeenSet = false;
145
146 Aws::Vector<Aws::String> m_destinations;
147 bool m_destinationsHasBeenSet = false;
148
149 ImportSource m_importSource;
150 bool m_importSourceHasBeenSet = false;
151
152 Aws::Utils::DateTime m_startEventTime{};
153 bool m_startEventTimeHasBeenSet = false;
154
155 Aws::Utils::DateTime m_endEventTime{};
156 bool m_endEventTimeHasBeenSet = false;
157
158 ImportStatus m_importStatus{ImportStatus::NOT_SET};
159 bool m_importStatusHasBeenSet = false;
160
161 Aws::Utils::DateTime m_createdTimestamp{};
162 bool m_createdTimestampHasBeenSet = false;
163
164 Aws::Utils::DateTime m_updatedTimestamp{};
165 bool m_updatedTimestampHasBeenSet = false;
166
167 Aws::String m_requestId;
168 bool m_requestIdHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace CloudTrail
173} // namespace Aws
const Aws::Utils::DateTime & GetUpdatedTimestamp() const
const Aws::Vector< Aws::String > & GetDestinations() const
StartImportResult & WithDestinations(DestinationsT &&value)
StartImportResult & WithRequestId(RequestIdT &&value)
AWS_CLOUDTRAIL_API StartImportResult()=default
StartImportResult & WithImportStatus(ImportStatus value)
StartImportResult & WithImportSource(ImportSourceT &&value)
StartImportResult & WithUpdatedTimestamp(UpdatedTimestampT &&value)
StartImportResult & WithCreatedTimestamp(CreatedTimestampT &&value)
StartImportResult & WithEndEventTime(EndEventTimeT &&value)
const Aws::Utils::DateTime & GetEndEventTime() const
void SetImportSource(ImportSourceT &&value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
void SetUpdatedTimestamp(UpdatedTimestampT &&value)
StartImportResult & AddDestinations(DestinationsT &&value)
AWS_CLOUDTRAIL_API StartImportResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
StartImportResult & WithImportId(ImportIdT &&value)
void SetStartEventTime(StartEventTimeT &&value)
void SetDestinations(DestinationsT &&value)
void SetCreatedTimestamp(CreatedTimestampT &&value)
const ImportSource & GetImportSource() const
StartImportResult & WithStartEventTime(StartEventTimeT &&value)
const Aws::Utils::DateTime & GetStartEventTime() const
AWS_CLOUDTRAIL_API StartImportResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetEndEventTime(EndEventTimeT &&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