AWS SDK for C++

AWS SDK for C++ Version 1.11.903

Loading...
Searching...
No Matches
CreateNotebookRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datazone/DataZoneRequest.h>
11#include <aws/datazone/DataZone_EXPORTS.h>
12#include <aws/datazone/model/NotebookType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace DataZone {
18namespace Model {
19
23 public:
24 AWS_DATAZONE_API CreateNotebookRequest() = 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 "CreateNotebook"; }
31
32 AWS_DATAZONE_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
40 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
41 template <typename DomainIdentifierT = Aws::String>
42 void SetDomainIdentifier(DomainIdentifierT&& value) {
43 m_domainIdentifierHasBeenSet = true;
44 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
45 }
46 template <typename DomainIdentifierT = Aws::String>
47 CreateNotebookRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
48 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetOwningProjectIdentifier() const { return m_owningProjectIdentifier; }
58 inline bool OwningProjectIdentifierHasBeenSet() const { return m_owningProjectIdentifierHasBeenSet; }
59 template <typename OwningProjectIdentifierT = Aws::String>
60 void SetOwningProjectIdentifier(OwningProjectIdentifierT&& value) {
61 m_owningProjectIdentifierHasBeenSet = true;
62 m_owningProjectIdentifier = std::forward<OwningProjectIdentifierT>(value);
63 }
64 template <typename OwningProjectIdentifierT = Aws::String>
65 CreateNotebookRequest& WithOwningProjectIdentifier(OwningProjectIdentifierT&& value) {
66 SetOwningProjectIdentifier(std::forward<OwningProjectIdentifierT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetName() const { return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 template <typename NameT = Aws::String>
78 void SetName(NameT&& value) {
79 m_nameHasBeenSet = true;
80 m_name = std::forward<NameT>(value);
81 }
82 template <typename NameT = Aws::String>
84 SetName(std::forward<NameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDescription() const { return m_description; }
94 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 template <typename DescriptionT = Aws::String>
96 void SetDescription(DescriptionT&& value) {
97 m_descriptionHasBeenSet = true;
98 m_description = std::forward<DescriptionT>(value);
99 }
100 template <typename DescriptionT = Aws::String>
101 CreateNotebookRequest& WithDescription(DescriptionT&& value) {
102 SetDescription(std::forward<DescriptionT>(value));
103 return *this;
104 }
106
108
111 inline NotebookType GetType() const { return m_type; }
112 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
113 inline void SetType(NotebookType value) {
114 m_typeHasBeenSet = true;
115 m_type = value;
116 }
118 SetType(value);
119 return *this;
120 }
122
124
129 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
130 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
131 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
132 void SetMetadata(MetadataT&& value) {
133 m_metadataHasBeenSet = true;
134 m_metadata = std::forward<MetadataT>(value);
135 }
136 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
138 SetMetadata(std::forward<MetadataT>(value));
139 return *this;
140 }
141 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
142 CreateNotebookRequest& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
143 m_metadataHasBeenSet = true;
144 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
145 return *this;
146 }
148
150
155 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
156 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
157 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
158 void SetParameters(ParametersT&& value) {
159 m_parametersHasBeenSet = true;
160 m_parameters = std::forward<ParametersT>(value);
161 }
162 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
163 CreateNotebookRequest& WithParameters(ParametersT&& value) {
164 SetParameters(std::forward<ParametersT>(value));
165 return *this;
166 }
167 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
168 CreateNotebookRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
169 m_parametersHasBeenSet = true;
170 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
171 return *this;
172 }
174
176
180 inline const Aws::String& GetClientToken() const { return m_clientToken; }
181 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
182 template <typename ClientTokenT = Aws::String>
183 void SetClientToken(ClientTokenT&& value) {
184 m_clientTokenHasBeenSet = true;
185 m_clientToken = std::forward<ClientTokenT>(value);
186 }
187 template <typename ClientTokenT = Aws::String>
188 CreateNotebookRequest& WithClientToken(ClientTokenT&& value) {
189 SetClientToken(std::forward<ClientTokenT>(value));
190 return *this;
191 }
193 private:
194 Aws::String m_domainIdentifier;
195
196 Aws::String m_owningProjectIdentifier;
197
198 Aws::String m_name;
199
200 Aws::String m_description;
201
203
205
207
209 bool m_domainIdentifierHasBeenSet = false;
210 bool m_owningProjectIdentifierHasBeenSet = false;
211 bool m_nameHasBeenSet = false;
212 bool m_descriptionHasBeenSet = false;
213 bool m_typeHasBeenSet = false;
214 bool m_metadataHasBeenSet = false;
215 bool m_parametersHasBeenSet = false;
216 bool m_clientTokenHasBeenSet = true;
217};
218
219} // namespace Model
220} // namespace DataZone
221} // namespace Aws
CreateNotebookRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
CreateNotebookRequest & WithOwningProjectIdentifier(OwningProjectIdentifierT &&value)
CreateNotebookRequest & WithParameters(ParametersT &&value)
CreateNotebookRequest & WithDomainIdentifier(DomainIdentifierT &&value)
CreateNotebookRequest & WithDescription(DescriptionT &&value)
CreateNotebookRequest & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
CreateNotebookRequest & WithName(NameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
void SetDomainIdentifier(DomainIdentifierT &&value)
CreateNotebookRequest & WithClientToken(ClientTokenT &&value)
const Aws::String & GetOwningProjectIdentifier() const
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
AWS_DATAZONE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateNotebookRequest & WithType(NotebookType value)
CreateNotebookRequest & WithMetadata(MetadataT &&value)
void SetOwningProjectIdentifier(OwningProjectIdentifierT &&value)
AWS_DATAZONE_API CreateNotebookRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
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