AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateManagedApiRequest.h
1
6#pragma once
7#include <aws/apiportal/APIPortalRequest.h>
8#include <aws/apiportal/APIPortal_EXPORTS.h>
9#include <aws/apiportal/model/ApiSignature.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace APIPortal {
17namespace Model {
18
22 public:
23 AWS_APIPORTAL_API CreateManagedApiRequest() = 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 "CreateManagedApi"; }
30
31 AWS_APIPORTAL_API Aws::String SerializePayload() const override;
32
34
37 inline const ApiSignature& GetApiSignature() const { return m_apiSignature; }
38 inline bool ApiSignatureHasBeenSet() const { return m_apiSignatureHasBeenSet; }
39 template <typename ApiSignatureT = ApiSignature>
40 void SetApiSignature(ApiSignatureT&& value) {
41 m_apiSignatureHasBeenSet = true;
42 m_apiSignature = std::forward<ApiSignatureT>(value);
43 }
44 template <typename ApiSignatureT = ApiSignature>
45 CreateManagedApiRequest& WithApiSignature(ApiSignatureT&& value) {
46 SetApiSignature(std::forward<ApiSignatureT>(value));
47 return *this;
48 }
50
52
53 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
54 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
55 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
56 void SetTags(TagsT&& value) {
57 m_tagsHasBeenSet = true;
58 m_tags = std::forward<TagsT>(value);
59 }
60 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
62 SetTags(std::forward<TagsT>(value));
63 return *this;
64 }
65 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
66 CreateManagedApiRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
67 m_tagsHasBeenSet = true;
68 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
69 return *this;
70 }
72 private:
73 ApiSignature m_apiSignature;
74
76 bool m_apiSignatureHasBeenSet = false;
77 bool m_tagsHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace APIPortal
82} // namespace Aws
AWS_APIPORTAL_API CreateManagedApiRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_APIPORTAL_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateManagedApiRequest & WithTags(TagsT &&value)
CreateManagedApiRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateManagedApiRequest & WithApiSignature(ApiSignatureT &&value)
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