AWS SDK for C++

AWS SDK for C++ Version 1.11.838

Loading...
Searching...
No Matches
PutAssetRequest.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/glue/GlueRequest.h>
11#include <aws/glue/Glue_EXPORTS.h>
12#include <aws/glue/model/AssetFormEntry.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Glue {
18namespace Model {
19
23 public:
24 AWS_GLUE_API PutAssetRequest() = 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 "PutAsset"; }
31
32 AWS_GLUE_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetAssetTypeId() const { return m_assetTypeId; }
41 inline bool AssetTypeIdHasBeenSet() const { return m_assetTypeIdHasBeenSet; }
42 template <typename AssetTypeIdT = Aws::String>
43 void SetAssetTypeId(AssetTypeIdT&& value) {
44 m_assetTypeIdHasBeenSet = true;
45 m_assetTypeId = std::forward<AssetTypeIdT>(value);
46 }
47 template <typename AssetTypeIdT = Aws::String>
48 PutAssetRequest& WithAssetTypeId(AssetTypeIdT&& value) {
49 SetAssetTypeId(std::forward<AssetTypeIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetIdentifier() const { return m_identifier; }
60 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
61 template <typename IdentifierT = Aws::String>
62 void SetIdentifier(IdentifierT&& value) {
63 m_identifierHasBeenSet = true;
64 m_identifier = std::forward<IdentifierT>(value);
65 }
66 template <typename IdentifierT = Aws::String>
67 PutAssetRequest& WithIdentifier(IdentifierT&& value) {
68 SetIdentifier(std::forward<IdentifierT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
85 PutAssetRequest& WithName(NameT&& value) {
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetDescription() const { return m_description; }
96 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
97 template <typename DescriptionT = Aws::String>
98 void SetDescription(DescriptionT&& value) {
99 m_descriptionHasBeenSet = true;
100 m_description = std::forward<DescriptionT>(value);
101 }
102 template <typename DescriptionT = Aws::String>
103 PutAssetRequest& WithDescription(DescriptionT&& value) {
104 SetDescription(std::forward<DescriptionT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::Map<Aws::String, AssetFormEntry>& GetForms() const { return m_forms; }
115 inline bool FormsHasBeenSet() const { return m_formsHasBeenSet; }
116 template <typename FormsT = Aws::Map<Aws::String, AssetFormEntry>>
117 void SetForms(FormsT&& value) {
118 m_formsHasBeenSet = true;
119 m_forms = std::forward<FormsT>(value);
120 }
121 template <typename FormsT = Aws::Map<Aws::String, AssetFormEntry>>
122 PutAssetRequest& WithForms(FormsT&& value) {
123 SetForms(std::forward<FormsT>(value));
124 return *this;
125 }
126 template <typename FormsKeyT = Aws::String, typename FormsValueT = AssetFormEntry>
127 PutAssetRequest& AddForms(FormsKeyT&& key, FormsValueT&& value) {
128 m_formsHasBeenSet = true;
129 m_forms.emplace(std::forward<FormsKeyT>(key), std::forward<FormsValueT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::String& GetClientToken() const { return m_clientToken; }
140 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
141 template <typename ClientTokenT = Aws::String>
142 void SetClientToken(ClientTokenT&& value) {
143 m_clientTokenHasBeenSet = true;
144 m_clientToken = std::forward<ClientTokenT>(value);
145 }
146 template <typename ClientTokenT = Aws::String>
147 PutAssetRequest& WithClientToken(ClientTokenT&& value) {
148 SetClientToken(std::forward<ClientTokenT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_assetTypeId;
154
155 Aws::String m_identifier;
156
157 Aws::String m_name;
158
159 Aws::String m_description;
160
162
164 bool m_assetTypeIdHasBeenSet = false;
165 bool m_identifierHasBeenSet = false;
166 bool m_nameHasBeenSet = false;
167 bool m_descriptionHasBeenSet = false;
168 bool m_formsHasBeenSet = false;
169 bool m_clientTokenHasBeenSet = true;
170};
171
172} // namespace Model
173} // namespace Glue
174} // namespace Aws
const Aws::String & GetIdentifier() const
void SetDescription(DescriptionT &&value)
PutAssetRequest & WithClientToken(ClientTokenT &&value)
const Aws::String & GetClientToken() const
void SetAssetTypeId(AssetTypeIdT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetName() const
PutAssetRequest & WithName(NameT &&value)
PutAssetRequest & WithAssetTypeId(AssetTypeIdT &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_GLUE_API PutAssetRequest()=default
const Aws::Map< Aws::String, AssetFormEntry > & GetForms() const
PutAssetRequest & WithDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
void SetIdentifier(IdentifierT &&value)
PutAssetRequest & AddForms(FormsKeyT &&key, FormsValueT &&value)
PutAssetRequest & WithIdentifier(IdentifierT &&value)
const Aws::String & GetAssetTypeId() const
void SetClientToken(ClientTokenT &&value)
PutAssetRequest & WithForms(FormsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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