AWS SDK for C++

AWS SDK for C++ Version 1.11.807

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
13#include <utility>
14
15namespace Aws {
16namespace DataZone {
17namespace Model {
18
22 public:
23 AWS_DATAZONE_API CreateNotebookRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateNotebook"; }
30
31 AWS_DATAZONE_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
39 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
40 template <typename DomainIdentifierT = Aws::String>
41 void SetDomainIdentifier(DomainIdentifierT&& value) {
42 m_domainIdentifierHasBeenSet = true;
43 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
44 }
45 template <typename DomainIdentifierT = Aws::String>
46 CreateNotebookRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
47 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetOwningProjectIdentifier() const { return m_owningProjectIdentifier; }
57 inline bool OwningProjectIdentifierHasBeenSet() const { return m_owningProjectIdentifierHasBeenSet; }
58 template <typename OwningProjectIdentifierT = Aws::String>
59 void SetOwningProjectIdentifier(OwningProjectIdentifierT&& value) {
60 m_owningProjectIdentifierHasBeenSet = true;
61 m_owningProjectIdentifier = std::forward<OwningProjectIdentifierT>(value);
62 }
63 template <typename OwningProjectIdentifierT = Aws::String>
64 CreateNotebookRequest& WithOwningProjectIdentifier(OwningProjectIdentifierT&& value) {
65 SetOwningProjectIdentifier(std::forward<OwningProjectIdentifierT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetName() const { return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
76 template <typename NameT = Aws::String>
77 void SetName(NameT&& value) {
78 m_nameHasBeenSet = true;
79 m_name = std::forward<NameT>(value);
80 }
81 template <typename NameT = Aws::String>
83 SetName(std::forward<NameT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetDescription() const { return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 template <typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) {
96 m_descriptionHasBeenSet = true;
97 m_description = std::forward<DescriptionT>(value);
98 }
99 template <typename DescriptionT = Aws::String>
100 CreateNotebookRequest& WithDescription(DescriptionT&& value) {
101 SetDescription(std::forward<DescriptionT>(value));
102 return *this;
103 }
105
107
112 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
113 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
114 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
115 void SetMetadata(MetadataT&& value) {
116 m_metadataHasBeenSet = true;
117 m_metadata = std::forward<MetadataT>(value);
118 }
119 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
121 SetMetadata(std::forward<MetadataT>(value));
122 return *this;
123 }
124 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
125 CreateNotebookRequest& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
126 m_metadataHasBeenSet = true;
127 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
128 return *this;
129 }
131
133
138 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
139 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
140 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
141 void SetParameters(ParametersT&& value) {
142 m_parametersHasBeenSet = true;
143 m_parameters = std::forward<ParametersT>(value);
144 }
145 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
146 CreateNotebookRequest& WithParameters(ParametersT&& value) {
147 SetParameters(std::forward<ParametersT>(value));
148 return *this;
149 }
150 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
151 CreateNotebookRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
152 m_parametersHasBeenSet = true;
153 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
154 return *this;
155 }
157
159
163 inline const Aws::String& GetClientToken() const { return m_clientToken; }
164 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
165 template <typename ClientTokenT = Aws::String>
166 void SetClientToken(ClientTokenT&& value) {
167 m_clientTokenHasBeenSet = true;
168 m_clientToken = std::forward<ClientTokenT>(value);
169 }
170 template <typename ClientTokenT = Aws::String>
171 CreateNotebookRequest& WithClientToken(ClientTokenT&& value) {
172 SetClientToken(std::forward<ClientTokenT>(value));
173 return *this;
174 }
176 private:
177 Aws::String m_domainIdentifier;
178
179 Aws::String m_owningProjectIdentifier;
180
181 Aws::String m_name;
182
183 Aws::String m_description;
184
186
188
190 bool m_domainIdentifierHasBeenSet = false;
191 bool m_owningProjectIdentifierHasBeenSet = false;
192 bool m_nameHasBeenSet = false;
193 bool m_descriptionHasBeenSet = false;
194 bool m_metadataHasBeenSet = false;
195 bool m_parametersHasBeenSet = false;
196 bool m_clientTokenHasBeenSet = true;
197};
198
199} // namespace Model
200} // namespace DataZone
201} // 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 & 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