AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDestinations(const Aws::Vector<Aws::String>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
48 inline void SetDestinations(Aws::Vector<Aws::String>&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); }
49 inline StartImportRequest& WithDestinations(const Aws::Vector<Aws::String>& value) { SetDestinations(value); return *this;}
50 inline StartImportRequest& WithDestinations(Aws::Vector<Aws::String>&& value) { SetDestinations(std::move(value)); return *this;}
51 inline StartImportRequest& AddDestinations(const Aws::String& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
52 inline StartImportRequest& AddDestinations(Aws::String&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; }
53 inline StartImportRequest& AddDestinations(const char* value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
55
57
61 inline const ImportSource& GetImportSource() const{ return m_importSource; }
62 inline bool ImportSourceHasBeenSet() const { return m_importSourceHasBeenSet; }
63 inline void SetImportSource(const ImportSource& value) { m_importSourceHasBeenSet = true; m_importSource = value; }
64 inline void SetImportSource(ImportSource&& value) { m_importSourceHasBeenSet = true; m_importSource = std::move(value); }
65 inline StartImportRequest& WithImportSource(const ImportSource& value) { SetImportSource(value); return *this;}
66 inline StartImportRequest& WithImportSource(ImportSource&& value) { SetImportSource(std::move(value)); return *this;}
68
70
78 inline const Aws::Utils::DateTime& GetStartEventTime() const{ return m_startEventTime; }
79 inline bool StartEventTimeHasBeenSet() const { return m_startEventTimeHasBeenSet; }
80 inline void SetStartEventTime(const Aws::Utils::DateTime& value) { m_startEventTimeHasBeenSet = true; m_startEventTime = value; }
81 inline void SetStartEventTime(Aws::Utils::DateTime&& value) { m_startEventTimeHasBeenSet = true; m_startEventTime = std::move(value); }
82 inline StartImportRequest& WithStartEventTime(const Aws::Utils::DateTime& value) { SetStartEventTime(value); return *this;}
83 inline StartImportRequest& WithStartEventTime(Aws::Utils::DateTime&& value) { SetStartEventTime(std::move(value)); return *this;}
85
87
95 inline const Aws::Utils::DateTime& GetEndEventTime() const{ return m_endEventTime; }
96 inline bool EndEventTimeHasBeenSet() const { return m_endEventTimeHasBeenSet; }
97 inline void SetEndEventTime(const Aws::Utils::DateTime& value) { m_endEventTimeHasBeenSet = true; m_endEventTime = value; }
98 inline void SetEndEventTime(Aws::Utils::DateTime&& value) { m_endEventTimeHasBeenSet = true; m_endEventTime = std::move(value); }
99 inline StartImportRequest& WithEndEventTime(const Aws::Utils::DateTime& value) { SetEndEventTime(value); return *this;}
100 inline StartImportRequest& WithEndEventTime(Aws::Utils::DateTime&& value) { SetEndEventTime(std::move(value)); return *this;}
102
104
108 inline const Aws::String& GetImportId() const{ return m_importId; }
109 inline bool ImportIdHasBeenSet() const { return m_importIdHasBeenSet; }
110 inline void SetImportId(const Aws::String& value) { m_importIdHasBeenSet = true; m_importId = value; }
111 inline void SetImportId(Aws::String&& value) { m_importIdHasBeenSet = true; m_importId = std::move(value); }
112 inline void SetImportId(const char* value) { m_importIdHasBeenSet = true; m_importId.assign(value); }
113 inline StartImportRequest& WithImportId(const Aws::String& value) { SetImportId(value); return *this;}
114 inline StartImportRequest& WithImportId(Aws::String&& value) { SetImportId(std::move(value)); return *this;}
115 inline StartImportRequest& WithImportId(const char* value) { SetImportId(value); return *this;}
117 private:
118
119 Aws::Vector<Aws::String> m_destinations;
120 bool m_destinationsHasBeenSet = false;
121
122 ImportSource m_importSource;
123 bool m_importSourceHasBeenSet = false;
124
125 Aws::Utils::DateTime m_startEventTime;
126 bool m_startEventTimeHasBeenSet = false;
127
128 Aws::Utils::DateTime m_endEventTime;
129 bool m_endEventTimeHasBeenSet = false;
130
131 Aws::String m_importId;
132 bool m_importIdHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace CloudTrail
137} // namespace Aws
StartImportRequest & WithStartEventTime(const Aws::Utils::DateTime &value)
StartImportRequest & WithImportSource(ImportSource &&value)
virtual const char * GetServiceRequestName() const override
StartImportRequest & WithStartEventTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetEndEventTime() const
const ImportSource & GetImportSource() const
void SetDestinations(Aws::Vector< Aws::String > &&value)
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartImportRequest & AddDestinations(Aws::String &&value)
StartImportRequest & WithImportId(const Aws::String &value)
void SetImportId(const Aws::String &value)
const Aws::Utils::DateTime & GetStartEventTime() const
StartImportRequest & WithImportId(Aws::String &&value)
void SetStartEventTime(const Aws::Utils::DateTime &value)
void SetEndEventTime(const Aws::Utils::DateTime &value)
void SetStartEventTime(Aws::Utils::DateTime &&value)
StartImportRequest & WithEndEventTime(Aws::Utils::DateTime &&value)
StartImportRequest & WithImportId(const char *value)
StartImportRequest & WithEndEventTime(const Aws::Utils::DateTime &value)
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
void SetImportSource(const ImportSource &value)
const Aws::Vector< Aws::String > & GetDestinations() const
void SetEndEventTime(Aws::Utils::DateTime &&value)
StartImportRequest & WithDestinations(const Aws::Vector< Aws::String > &value)
StartImportRequest & WithDestinations(Aws::Vector< Aws::String > &&value)
void SetDestinations(const Aws::Vector< Aws::String > &value)
StartImportRequest & AddDestinations(const char *value)
StartImportRequest & AddDestinations(const Aws::String &value)
StartImportRequest & WithImportSource(const ImportSource &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