AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
StartImportRequest.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrailRequest.h>
8#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
9#include <aws/cloudtrail/model/ImportSource.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CloudTrail {
18namespace Model {
19
23 public:
24 AWS_CLOUDTRAIL_API StartImportRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "StartImport"; }
31
32 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
33
35
37
41 inline const Aws::Vector<Aws::String>& GetDestinations() const { return m_destinations; }
42 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
43 template <typename DestinationsT = Aws::Vector<Aws::String>>
44 void SetDestinations(DestinationsT&& value) {
45 m_destinationsHasBeenSet = true;
46 m_destinations = std::forward<DestinationsT>(value);
47 }
48 template <typename DestinationsT = Aws::Vector<Aws::String>>
49 StartImportRequest& WithDestinations(DestinationsT&& value) {
50 SetDestinations(std::forward<DestinationsT>(value));
51 return *this;
52 }
53 template <typename DestinationsT = Aws::String>
54 StartImportRequest& AddDestinations(DestinationsT&& value) {
55 m_destinationsHasBeenSet = true;
56 m_destinations.emplace_back(std::forward<DestinationsT>(value));
57 return *this;
58 }
60
62
66 inline const ImportSource& GetImportSource() const { return m_importSource; }
67 inline bool ImportSourceHasBeenSet() const { return m_importSourceHasBeenSet; }
68 template <typename ImportSourceT = ImportSource>
69 void SetImportSource(ImportSourceT&& value) {
70 m_importSourceHasBeenSet = true;
71 m_importSource = std::forward<ImportSourceT>(value);
72 }
73 template <typename ImportSourceT = ImportSource>
74 StartImportRequest& WithImportSource(ImportSourceT&& value) {
75 SetImportSource(std::forward<ImportSourceT>(value));
76 return *this;
77 }
79
81
89 inline const Aws::Utils::DateTime& GetStartEventTime() const { return m_startEventTime; }
90 inline bool StartEventTimeHasBeenSet() const { return m_startEventTimeHasBeenSet; }
91 template <typename StartEventTimeT = Aws::Utils::DateTime>
92 void SetStartEventTime(StartEventTimeT&& value) {
93 m_startEventTimeHasBeenSet = true;
94 m_startEventTime = std::forward<StartEventTimeT>(value);
95 }
96 template <typename StartEventTimeT = Aws::Utils::DateTime>
97 StartImportRequest& WithStartEventTime(StartEventTimeT&& value) {
98 SetStartEventTime(std::forward<StartEventTimeT>(value));
99 return *this;
100 }
102
104
112 inline const Aws::Utils::DateTime& GetEndEventTime() const { return m_endEventTime; }
113 inline bool EndEventTimeHasBeenSet() const { return m_endEventTimeHasBeenSet; }
114 template <typename EndEventTimeT = Aws::Utils::DateTime>
115 void SetEndEventTime(EndEventTimeT&& value) {
116 m_endEventTimeHasBeenSet = true;
117 m_endEventTime = std::forward<EndEventTimeT>(value);
118 }
119 template <typename EndEventTimeT = Aws::Utils::DateTime>
120 StartImportRequest& WithEndEventTime(EndEventTimeT&& value) {
121 SetEndEventTime(std::forward<EndEventTimeT>(value));
122 return *this;
123 }
125
127
131 inline const Aws::String& GetImportId() const { return m_importId; }
132 inline bool ImportIdHasBeenSet() const { return m_importIdHasBeenSet; }
133 template <typename ImportIdT = Aws::String>
134 void SetImportId(ImportIdT&& value) {
135 m_importIdHasBeenSet = true;
136 m_importId = std::forward<ImportIdT>(value);
137 }
138 template <typename ImportIdT = Aws::String>
139 StartImportRequest& WithImportId(ImportIdT&& value) {
140 SetImportId(std::forward<ImportIdT>(value));
141 return *this;
142 }
144 private:
145 Aws::Vector<Aws::String> m_destinations;
146
147 ImportSource m_importSource;
148
149 Aws::Utils::DateTime m_startEventTime{};
150
151 Aws::Utils::DateTime m_endEventTime{};
152
153 Aws::String m_importId;
154 bool m_destinationsHasBeenSet = false;
155 bool m_importSourceHasBeenSet = false;
156 bool m_startEventTimeHasBeenSet = false;
157 bool m_endEventTimeHasBeenSet = false;
158 bool m_importIdHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace CloudTrail
163} // namespace Aws
void SetStartEventTime(StartEventTimeT &&value)
virtual const char * GetServiceRequestName() const override
StartImportRequest & WithImportSource(ImportSourceT &&value)
const Aws::Utils::DateTime & GetEndEventTime() const
StartImportRequest & AddDestinations(DestinationsT &&value)
const ImportSource & GetImportSource() const
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartImportRequest & WithEndEventTime(EndEventTimeT &&value)
const Aws::Utils::DateTime & GetStartEventTime() const
AWS_CLOUDTRAIL_API StartImportRequest()=default
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetDestinations() const
StartImportRequest & WithStartEventTime(StartEventTimeT &&value)
StartImportRequest & WithImportId(ImportIdT &&value)
StartImportRequest & WithDestinations(DestinationsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector