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>
17template<
typename RESULT_TYPE>
18class AmazonWebServiceResult;
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>
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>>
59 template<
typename DestinationsT = Aws::String>
60 StartImportResult&
AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet =
true; m_destinations.emplace_back(std::forward<DestinationsT>(value));
return *
this; }
68 template<
typename ImportSourceT = ImportSource>
69 void SetImportSource(ImportSourceT&& value) { m_importSourceHasBeenSet =
true; m_importSource = std::forward<ImportSourceT>(value); }
70 template<
typename ImportSourceT = ImportSource>
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>
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>
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>
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>
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>
144 bool m_importIdHasBeenSet =
false;
147 bool m_destinationsHasBeenSet =
false;
150 bool m_importSourceHasBeenSet =
false;
153 bool m_startEventTimeHasBeenSet =
false;
156 bool m_endEventTimeHasBeenSet =
false;
159 bool m_importStatusHasBeenSet =
false;
162 bool m_createdTimestampHasBeenSet =
false;
165 bool m_updatedTimestampHasBeenSet =
false;
168 bool m_requestIdHasBeenSet =
false;
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)
const Aws::String & GetImportId() const
ImportStatus GetImportStatus() const
void SetRequestId(RequestIdT &&value)
StartImportResult & AddDestinations(DestinationsT &&value)
AWS_CLOUDTRAIL_API StartImportResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
StartImportResult & WithImportId(ImportIdT &&value)
void SetImportStatus(ImportStatus value)
const Aws::String & GetRequestId() const
void SetStartEventTime(StartEventTimeT &&value)
void SetDestinations(DestinationsT &&value)
void SetCreatedTimestamp(CreatedTimestampT &&value)
void SetImportId(ImportIdT &&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