AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ImportsListItem.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/cloudtrail/model/ImportStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CloudTrail
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_CLOUDTRAIL_API ImportsListItem() = default;
39 AWS_CLOUDTRAIL_API ImportsListItem(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetImportId() const { return m_importId; }
49 inline bool ImportIdHasBeenSet() const { return m_importIdHasBeenSet; }
50 template<typename ImportIdT = Aws::String>
51 void SetImportId(ImportIdT&& value) { m_importIdHasBeenSet = true; m_importId = std::forward<ImportIdT>(value); }
52 template<typename ImportIdT = Aws::String>
53 ImportsListItem& WithImportId(ImportIdT&& value) { SetImportId(std::forward<ImportIdT>(value)); return *this;}
55
57
60 inline ImportStatus GetImportStatus() const { return m_importStatus; }
61 inline bool ImportStatusHasBeenSet() const { return m_importStatusHasBeenSet; }
62 inline void SetImportStatus(ImportStatus value) { m_importStatusHasBeenSet = true; m_importStatus = value; }
63 inline ImportsListItem& WithImportStatus(ImportStatus value) { SetImportStatus(value); return *this;}
65
67
70 inline const Aws::Vector<Aws::String>& GetDestinations() const { return m_destinations; }
71 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
72 template<typename DestinationsT = Aws::Vector<Aws::String>>
73 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
74 template<typename DestinationsT = Aws::Vector<Aws::String>>
75 ImportsListItem& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
76 template<typename DestinationsT = Aws::String>
77 ImportsListItem& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
79
81
84 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
85 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
86 template<typename CreatedTimestampT = Aws::Utils::DateTime>
87 void SetCreatedTimestamp(CreatedTimestampT&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::forward<CreatedTimestampT>(value); }
88 template<typename CreatedTimestampT = Aws::Utils::DateTime>
89 ImportsListItem& WithCreatedTimestamp(CreatedTimestampT&& value) { SetCreatedTimestamp(std::forward<CreatedTimestampT>(value)); return *this;}
91
93
96 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const { return m_updatedTimestamp; }
97 inline bool UpdatedTimestampHasBeenSet() const { return m_updatedTimestampHasBeenSet; }
98 template<typename UpdatedTimestampT = Aws::Utils::DateTime>
99 void SetUpdatedTimestamp(UpdatedTimestampT&& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = std::forward<UpdatedTimestampT>(value); }
100 template<typename UpdatedTimestampT = Aws::Utils::DateTime>
101 ImportsListItem& WithUpdatedTimestamp(UpdatedTimestampT&& value) { SetUpdatedTimestamp(std::forward<UpdatedTimestampT>(value)); return *this;}
103 private:
104
105 Aws::String m_importId;
106 bool m_importIdHasBeenSet = false;
107
108 ImportStatus m_importStatus{ImportStatus::NOT_SET};
109 bool m_importStatusHasBeenSet = false;
110
111 Aws::Vector<Aws::String> m_destinations;
112 bool m_destinationsHasBeenSet = false;
113
114 Aws::Utils::DateTime m_createdTimestamp{};
115 bool m_createdTimestampHasBeenSet = false;
116
117 Aws::Utils::DateTime m_updatedTimestamp{};
118 bool m_updatedTimestampHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace CloudTrail
123} // namespace Aws
void SetImportStatus(ImportStatus value)
void SetUpdatedTimestamp(UpdatedTimestampT &&value)
void SetCreatedTimestamp(CreatedTimestampT &&value)
void SetDestinations(DestinationsT &&value)
const Aws::Vector< Aws::String > & GetDestinations() const
const Aws::Utils::DateTime & GetCreatedTimestamp() const
const Aws::Utils::DateTime & GetUpdatedTimestamp() const
ImportsListItem & WithCreatedTimestamp(CreatedTimestampT &&value)
AWS_CLOUDTRAIL_API ImportsListItem(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
ImportsListItem & WithUpdatedTimestamp(UpdatedTimestampT &&value)
ImportsListItem & WithDestinations(DestinationsT &&value)
ImportsListItem & AddDestinations(DestinationsT &&value)
ImportsListItem & WithImportStatus(ImportStatus value)
const Aws::String & GetImportId() const
ImportsListItem & WithImportId(ImportIdT &&value)
AWS_CLOUDTRAIL_API ImportsListItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDTRAIL_API ImportsListItem()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue