AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StartExportTaskRequest.h
1
6#pragma once
7#include <aws/discovery/ApplicationDiscoveryService_EXPORTS.h>
8#include <aws/discovery/ApplicationDiscoveryServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/discovery/model/ExportPreferences.h>
12#include <aws/discovery/model/ExportDataFormat.h>
13#include <aws/discovery/model/ExportFilter.h>
14#include <utility>
15
16namespace Aws
17{
18namespace ApplicationDiscoveryService
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_APPLICATIONDISCOVERYSERVICE_API StartExportTaskRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "StartExportTask"; }
35
36 AWS_APPLICATIONDISCOVERYSERVICE_API Aws::String SerializePayload() const override;
37
38 AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
47 inline const Aws::Vector<ExportDataFormat>& GetExportDataFormat() const { return m_exportDataFormat; }
48 inline bool ExportDataFormatHasBeenSet() const { return m_exportDataFormatHasBeenSet; }
49 template<typename ExportDataFormatT = Aws::Vector<ExportDataFormat>>
50 void SetExportDataFormat(ExportDataFormatT&& value) { m_exportDataFormatHasBeenSet = true; m_exportDataFormat = std::forward<ExportDataFormatT>(value); }
51 template<typename ExportDataFormatT = Aws::Vector<ExportDataFormat>>
52 StartExportTaskRequest& WithExportDataFormat(ExportDataFormatT&& value) { SetExportDataFormat(std::forward<ExportDataFormatT>(value)); return *this;}
53 inline StartExportTaskRequest& AddExportDataFormat(ExportDataFormat value) { m_exportDataFormatHasBeenSet = true; m_exportDataFormat.push_back(value); return *this; }
55
57
66 inline const Aws::Vector<ExportFilter>& GetFilters() const { return m_filters; }
67 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
68 template<typename FiltersT = Aws::Vector<ExportFilter>>
69 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
70 template<typename FiltersT = Aws::Vector<ExportFilter>>
71 StartExportTaskRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
72 template<typename FiltersT = ExportFilter>
73 StartExportTaskRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
75
77
82 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
83 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
84 template<typename StartTimeT = Aws::Utils::DateTime>
85 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
86 template<typename StartTimeT = Aws::Utils::DateTime>
87 StartExportTaskRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
89
91
96 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
97 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
98 template<typename EndTimeT = Aws::Utils::DateTime>
99 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
100 template<typename EndTimeT = Aws::Utils::DateTime>
101 StartExportTaskRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
103
105
110 inline const ExportPreferences& GetPreferences() const { return m_preferences; }
111 inline bool PreferencesHasBeenSet() const { return m_preferencesHasBeenSet; }
112 template<typename PreferencesT = ExportPreferences>
113 void SetPreferences(PreferencesT&& value) { m_preferencesHasBeenSet = true; m_preferences = std::forward<PreferencesT>(value); }
114 template<typename PreferencesT = ExportPreferences>
115 StartExportTaskRequest& WithPreferences(PreferencesT&& value) { SetPreferences(std::forward<PreferencesT>(value)); return *this;}
117 private:
118
119 Aws::Vector<ExportDataFormat> m_exportDataFormat;
120 bool m_exportDataFormatHasBeenSet = false;
121
123 bool m_filtersHasBeenSet = false;
124
125 Aws::Utils::DateTime m_startTime{};
126 bool m_startTimeHasBeenSet = false;
127
128 Aws::Utils::DateTime m_endTime{};
129 bool m_endTimeHasBeenSet = false;
130
131 ExportPreferences m_preferences;
132 bool m_preferencesHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace ApplicationDiscoveryService
137} // namespace Aws
StartExportTaskRequest & WithPreferences(PreferencesT &&value)
const Aws::Vector< ExportDataFormat > & GetExportDataFormat() const
StartExportTaskRequest & WithExportDataFormat(ExportDataFormatT &&value)
AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_APPLICATIONDISCOVERYSERVICE_API StartExportTaskRequest()=default
AWS_APPLICATIONDISCOVERYSERVICE_API Aws::String SerializePayload() const override
StartExportTaskRequest & AddExportDataFormat(ExportDataFormat 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