AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateDatasetRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/databrew/GlueDataBrewRequest.h>
10#include <aws/databrew/GlueDataBrew_EXPORTS.h>
11#include <aws/databrew/model/FormatOptions.h>
12#include <aws/databrew/model/Input.h>
13#include <aws/databrew/model/InputFormat.h>
14#include <aws/databrew/model/PathOptions.h>
15
16#include <utility>
17
18namespace Aws {
19namespace GlueDataBrew {
20namespace Model {
21
25 public:
26 AWS_GLUEDATABREW_API CreateDatasetRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateDataset"; }
33
34 AWS_GLUEDATABREW_API Aws::String SerializePayload() const override;
35
37
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
60 inline InputFormat GetFormat() const { return m_format; }
61 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
62 inline void SetFormat(InputFormat value) {
63 m_formatHasBeenSet = true;
64 m_format = value;
65 }
67 SetFormat(value);
68 return *this;
69 }
71
73
74 inline const FormatOptions& GetFormatOptions() const { return m_formatOptions; }
75 inline bool FormatOptionsHasBeenSet() const { return m_formatOptionsHasBeenSet; }
76 template <typename FormatOptionsT = FormatOptions>
77 void SetFormatOptions(FormatOptionsT&& value) {
78 m_formatOptionsHasBeenSet = true;
79 m_formatOptions = std::forward<FormatOptionsT>(value);
80 }
81 template <typename FormatOptionsT = FormatOptions>
82 CreateDatasetRequest& WithFormatOptions(FormatOptionsT&& value) {
83 SetFormatOptions(std::forward<FormatOptionsT>(value));
84 return *this;
85 }
87
89
90 inline const Input& GetInput() const { return m_input; }
91 inline bool InputHasBeenSet() const { return m_inputHasBeenSet; }
92 template <typename InputT = Input>
93 void SetInput(InputT&& value) {
94 m_inputHasBeenSet = true;
95 m_input = std::forward<InputT>(value);
96 }
97 template <typename InputT = Input>
99 SetInput(std::forward<InputT>(value));
100 return *this;
101 }
103
105
109 inline const PathOptions& GetPathOptions() const { return m_pathOptions; }
110 inline bool PathOptionsHasBeenSet() const { return m_pathOptionsHasBeenSet; }
111 template <typename PathOptionsT = PathOptions>
112 void SetPathOptions(PathOptionsT&& value) {
113 m_pathOptionsHasBeenSet = true;
114 m_pathOptions = std::forward<PathOptionsT>(value);
115 }
116 template <typename PathOptionsT = PathOptions>
117 CreateDatasetRequest& WithPathOptions(PathOptionsT&& value) {
118 SetPathOptions(std::forward<PathOptionsT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
128 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
129 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
130 void SetTags(TagsT&& value) {
131 m_tagsHasBeenSet = true;
132 m_tags = std::forward<TagsT>(value);
133 }
134 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
136 SetTags(std::forward<TagsT>(value));
137 return *this;
138 }
139 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
140 CreateDatasetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
141 m_tagsHasBeenSet = true;
142 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
143 return *this;
144 }
146 private:
147 Aws::String m_name;
148
150
151 FormatOptions m_formatOptions;
152
153 Input m_input;
154
155 PathOptions m_pathOptions;
156
158 bool m_nameHasBeenSet = false;
159 bool m_formatHasBeenSet = false;
160 bool m_formatOptionsHasBeenSet = false;
161 bool m_inputHasBeenSet = false;
162 bool m_pathOptionsHasBeenSet = false;
163 bool m_tagsHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace GlueDataBrew
168} // namespace Aws
AWS_GLUEDATABREW_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateDatasetRequest & WithFormat(InputFormat value)
CreateDatasetRequest & WithFormatOptions(FormatOptionsT &&value)
CreateDatasetRequest & WithTags(TagsT &&value)
CreateDatasetRequest & WithName(NameT &&value)
CreateDatasetRequest & WithInput(InputT &&value)
CreateDatasetRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateDatasetRequest & WithPathOptions(PathOptionsT &&value)
AWS_GLUEDATABREW_API CreateDatasetRequest()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String