AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SendApiAssetRequest.h
1
6#pragma once
7#include <aws/dataexchange/DataExchange_EXPORTS.h>
8#include <aws/dataexchange/DataExchangeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace DataExchange
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_DATAEXCHANGE_API SendApiAssetRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "SendApiAsset"; }
36
37 AWS_DATAEXCHANGE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
38
39 AWS_DATAEXCHANGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
47 inline const Aws::Map<Aws::String, Aws::String>& GetQueryStringParameters() const{ return m_queryStringParameters; }
48 inline bool QueryStringParametersHasBeenSet() const { return m_queryStringParametersHasBeenSet; }
49 inline void SetQueryStringParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters = value; }
50 inline void SetQueryStringParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters = std::move(value); }
53 inline SendApiAssetRequest& AddQueryStringParameters(const Aws::String& key, const Aws::String& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(key, value); return *this; }
54 inline SendApiAssetRequest& AddQueryStringParameters(Aws::String&& key, const Aws::String& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(std::move(key), value); return *this; }
55 inline SendApiAssetRequest& AddQueryStringParameters(const Aws::String& key, Aws::String&& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(key, std::move(value)); return *this; }
56 inline SendApiAssetRequest& AddQueryStringParameters(Aws::String&& key, Aws::String&& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(std::move(key), std::move(value)); return *this; }
57 inline SendApiAssetRequest& AddQueryStringParameters(const char* key, Aws::String&& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(key, std::move(value)); return *this; }
58 inline SendApiAssetRequest& AddQueryStringParameters(Aws::String&& key, const char* value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(std::move(key), value); return *this; }
59 inline SendApiAssetRequest& AddQueryStringParameters(const char* key, const char* value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(key, value); return *this; }
61
63
66 inline const Aws::String& GetAssetId() const{ return m_assetId; }
67 inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
68 inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; }
69 inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); }
70 inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); }
71 inline SendApiAssetRequest& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
72 inline SendApiAssetRequest& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
73 inline SendApiAssetRequest& WithAssetId(const char* value) { SetAssetId(value); return *this;}
75
77
80 inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
81 inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
82 inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
83 inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
84 inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
85 inline SendApiAssetRequest& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
86 inline SendApiAssetRequest& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
87 inline SendApiAssetRequest& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
89
91
97 inline const Aws::Map<Aws::String, Aws::String>& GetRequestHeaders() const{ return m_requestHeaders; }
98 inline bool RequestHeadersHasBeenSet() const { return m_requestHeadersHasBeenSet; }
99 inline void SetRequestHeaders(const Aws::Map<Aws::String, Aws::String>& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders = value; }
100 inline void SetRequestHeaders(Aws::Map<Aws::String, Aws::String>&& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders = std::move(value); }
103 inline SendApiAssetRequest& AddRequestHeaders(const Aws::String& key, const Aws::String& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(key, value); return *this; }
104 inline SendApiAssetRequest& AddRequestHeaders(Aws::String&& key, const Aws::String& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(std::move(key), value); return *this; }
105 inline SendApiAssetRequest& AddRequestHeaders(const Aws::String& key, Aws::String&& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(key, std::move(value)); return *this; }
106 inline SendApiAssetRequest& AddRequestHeaders(Aws::String&& key, Aws::String&& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(std::move(key), std::move(value)); return *this; }
107 inline SendApiAssetRequest& AddRequestHeaders(const char* key, Aws::String&& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(key, std::move(value)); return *this; }
108 inline SendApiAssetRequest& AddRequestHeaders(Aws::String&& key, const char* value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(std::move(key), value); return *this; }
109 inline SendApiAssetRequest& AddRequestHeaders(const char* key, const char* value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(key, value); return *this; }
111
113
117 inline const Aws::String& GetMethod() const{ return m_method; }
118 inline bool MethodHasBeenSet() const { return m_methodHasBeenSet; }
119 inline void SetMethod(const Aws::String& value) { m_methodHasBeenSet = true; m_method = value; }
120 inline void SetMethod(Aws::String&& value) { m_methodHasBeenSet = true; m_method = std::move(value); }
121 inline void SetMethod(const char* value) { m_methodHasBeenSet = true; m_method.assign(value); }
122 inline SendApiAssetRequest& WithMethod(const Aws::String& value) { SetMethod(value); return *this;}
123 inline SendApiAssetRequest& WithMethod(Aws::String&& value) { SetMethod(std::move(value)); return *this;}
124 inline SendApiAssetRequest& WithMethod(const char* value) { SetMethod(value); return *this;}
126
128
132 inline const Aws::String& GetPath() const{ return m_path; }
133 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
134 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
135 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
136 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
137 inline SendApiAssetRequest& WithPath(const Aws::String& value) { SetPath(value); return *this;}
138 inline SendApiAssetRequest& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
139 inline SendApiAssetRequest& WithPath(const char* value) { SetPath(value); return *this;}
141
143
146 inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
147 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
148 inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
149 inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
150 inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
151 inline SendApiAssetRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
152 inline SendApiAssetRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
153 inline SendApiAssetRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
155 private:
156
157
158 Aws::Map<Aws::String, Aws::String> m_queryStringParameters;
159 bool m_queryStringParametersHasBeenSet = false;
160
161 Aws::String m_assetId;
162 bool m_assetIdHasBeenSet = false;
163
164 Aws::String m_dataSetId;
165 bool m_dataSetIdHasBeenSet = false;
166
167 Aws::Map<Aws::String, Aws::String> m_requestHeaders;
168 bool m_requestHeadersHasBeenSet = false;
169
170 Aws::String m_method;
171 bool m_methodHasBeenSet = false;
172
173 Aws::String m_path;
174 bool m_pathHasBeenSet = false;
175
176 Aws::String m_revisionId;
177 bool m_revisionIdHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace DataExchange
182} // namespace Aws
SendApiAssetRequest & AddQueryStringParameters(Aws::String &&key, const char *value)
virtual const char * GetServiceRequestName() const override
void SetQueryStringParameters(const Aws::Map< Aws::String, Aws::String > &value)
SendApiAssetRequest & WithRequestHeaders(Aws::Map< Aws::String, Aws::String > &&value)
SendApiAssetRequest & WithRevisionId(const Aws::String &value)
SendApiAssetRequest & WithDataSetId(Aws::String &&value)
SendApiAssetRequest & AddRequestHeaders(const char *key, const char *value)
SendApiAssetRequest & AddQueryStringParameters(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetQueryStringParameters() const
AWS_DATAEXCHANGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SendApiAssetRequest & WithAssetId(const char *value)
SendApiAssetRequest & WithAssetId(const Aws::String &value)
void SetRequestHeaders(const Aws::Map< Aws::String, Aws::String > &value)
SendApiAssetRequest & WithPath(const Aws::String &value)
AWS_DATAEXCHANGE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
SendApiAssetRequest & WithMethod(const Aws::String &value)
SendApiAssetRequest & AddRequestHeaders(const Aws::String &key, const Aws::String &value)
SendApiAssetRequest & AddQueryStringParameters(const Aws::String &key, Aws::String &&value)
SendApiAssetRequest & AddQueryStringParameters(Aws::String &&key, const Aws::String &value)
SendApiAssetRequest & AddRequestHeaders(Aws::String &&key, const Aws::String &value)
void SetRequestHeaders(Aws::Map< Aws::String, Aws::String > &&value)
SendApiAssetRequest & WithDataSetId(const Aws::String &value)
SendApiAssetRequest & AddQueryStringParameters(const char *key, Aws::String &&value)
void SetQueryStringParameters(Aws::Map< Aws::String, Aws::String > &&value)
SendApiAssetRequest & AddRequestHeaders(const Aws::String &key, Aws::String &&value)
SendApiAssetRequest & WithAssetId(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetRequestHeaders() const
SendApiAssetRequest & WithRevisionId(Aws::String &&value)
SendApiAssetRequest & WithQueryStringParameters(Aws::Map< Aws::String, Aws::String > &&value)
SendApiAssetRequest & WithPath(const char *value)
SendApiAssetRequest & WithMethod(Aws::String &&value)
SendApiAssetRequest & AddRequestHeaders(Aws::String &&key, const char *value)
SendApiAssetRequest & WithQueryStringParameters(const Aws::Map< Aws::String, Aws::String > &value)
SendApiAssetRequest & WithPath(Aws::String &&value)
SendApiAssetRequest & WithRevisionId(const char *value)
SendApiAssetRequest & WithDataSetId(const char *value)
SendApiAssetRequest & AddQueryStringParameters(Aws::String &&key, Aws::String &&value)
SendApiAssetRequest & WithMethod(const char *value)
SendApiAssetRequest & AddQueryStringParameters(const char *key, const char *value)
SendApiAssetRequest & AddRequestHeaders(const char *key, Aws::String &&value)
SendApiAssetRequest & WithRequestHeaders(const Aws::Map< Aws::String, Aws::String > &value)
SendApiAssetRequest & AddRequestHeaders(Aws::String &&key, Aws::String &&value)
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