AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
StartImportRequest.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/CloudTrailRequest.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/core/utils/memory/stl/AWSString.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CloudTrail
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDTRAIL_API StartImportRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "StartImport"; }
34
35 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::Vector<Aws::String>& GetDestinations() const { return m_destinations; }
46 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
47 template<typename DestinationsT = Aws::Vector<Aws::String>>
48 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
49 template<typename DestinationsT = Aws::Vector<Aws::String>>
50 StartImportRequest& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
51 template<typename DestinationsT = Aws::String>
52 StartImportRequest& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
54
56
60 inline const ImportSource& GetImportSource() const { return m_importSource; }
61 inline bool ImportSourceHasBeenSet() const { return m_importSourceHasBeenSet; }
62 template<typename ImportSourceT = ImportSource>
63 void SetImportSource(ImportSourceT&& value) { m_importSourceHasBeenSet = true; m_importSource = std::forward<ImportSourceT>(value); }
64 template<typename ImportSourceT = ImportSource>
65 StartImportRequest& WithImportSource(ImportSourceT&& value) { SetImportSource(std::forward<ImportSourceT>(value)); return *this;}
67
69
77 inline const Aws::Utils::DateTime& GetStartEventTime() const { return m_startEventTime; }
78 inline bool StartEventTimeHasBeenSet() const { return m_startEventTimeHasBeenSet; }
79 template<typename StartEventTimeT = Aws::Utils::DateTime>
80 void SetStartEventTime(StartEventTimeT&& value) { m_startEventTimeHasBeenSet = true; m_startEventTime = std::forward<StartEventTimeT>(value); }
81 template<typename StartEventTimeT = Aws::Utils::DateTime>
82 StartImportRequest& WithStartEventTime(StartEventTimeT&& value) { SetStartEventTime(std::forward<StartEventTimeT>(value)); return *this;}
84
86
94 inline const Aws::Utils::DateTime& GetEndEventTime() const { return m_endEventTime; }
95 inline bool EndEventTimeHasBeenSet() const { return m_endEventTimeHasBeenSet; }
96 template<typename EndEventTimeT = Aws::Utils::DateTime>
97 void SetEndEventTime(EndEventTimeT&& value) { m_endEventTimeHasBeenSet = true; m_endEventTime = std::forward<EndEventTimeT>(value); }
98 template<typename EndEventTimeT = Aws::Utils::DateTime>
99 StartImportRequest& WithEndEventTime(EndEventTimeT&& value) { SetEndEventTime(std::forward<EndEventTimeT>(value)); return *this;}
101
103
107 inline const Aws::String& GetImportId() const { return m_importId; }
108 inline bool ImportIdHasBeenSet() const { return m_importIdHasBeenSet; }
109 template<typename ImportIdT = Aws::String>
110 void SetImportId(ImportIdT&& value) { m_importIdHasBeenSet = true; m_importId = std::forward<ImportIdT>(value); }
111 template<typename ImportIdT = Aws::String>
112 StartImportRequest& WithImportId(ImportIdT&& value) { SetImportId(std::forward<ImportIdT>(value)); return *this;}
114 private:
115
116 Aws::Vector<Aws::String> m_destinations;
117 bool m_destinationsHasBeenSet = false;
118
119 ImportSource m_importSource;
120 bool m_importSourceHasBeenSet = false;
121
122 Aws::Utils::DateTime m_startEventTime{};
123 bool m_startEventTimeHasBeenSet = false;
124
125 Aws::Utils::DateTime m_endEventTime{};
126 bool m_endEventTimeHasBeenSet = false;
127
128 Aws::String m_importId;
129 bool m_importIdHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace CloudTrail
134} // 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