AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateEngagementRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/partnercentral-selling/PartnerCentralSellingRequest.h>
11#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
12#include <aws/partnercentral-selling/model/EngagementContextDetails.h>
13
14#include <utility>
15
16namespace Aws {
17namespace PartnerCentralSelling {
18namespace Model {
19
23 public:
24 AWS_PARTNERCENTRALSELLING_API CreateEngagementRequest() = 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 "CreateEngagement"; }
31
32 AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override;
33
34 AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
43 inline const Aws::String& GetCatalog() const { return m_catalog; }
44 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
45 template <typename CatalogT = Aws::String>
46 void SetCatalog(CatalogT&& value) {
47 m_catalogHasBeenSet = true;
48 m_catalog = std::forward<CatalogT>(value);
49 }
50 template <typename CatalogT = Aws::String>
52 SetCatalog(std::forward<CatalogT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetClientToken() const { return m_clientToken; }
64 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
65 template <typename ClientTokenT = Aws::String>
66 void SetClientToken(ClientTokenT&& value) {
67 m_clientTokenHasBeenSet = true;
68 m_clientToken = std::forward<ClientTokenT>(value);
69 }
70 template <typename ClientTokenT = Aws::String>
72 SetClientToken(std::forward<ClientTokenT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetTitle() const { return m_title; }
82 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
83 template <typename TitleT = Aws::String>
84 void SetTitle(TitleT&& value) {
85 m_titleHasBeenSet = true;
86 m_title = std::forward<TitleT>(value);
87 }
88 template <typename TitleT = Aws::String>
90 SetTitle(std::forward<TitleT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetDescription() const { return m_description; }
100 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 template <typename DescriptionT = Aws::String>
102 void SetDescription(DescriptionT&& value) {
103 m_descriptionHasBeenSet = true;
104 m_description = std::forward<DescriptionT>(value);
105 }
106 template <typename DescriptionT = Aws::String>
108 SetDescription(std::forward<DescriptionT>(value));
109 return *this;
110 }
112
114
132 inline const Aws::Vector<EngagementContextDetails>& GetContexts() const { return m_contexts; }
133 inline bool ContextsHasBeenSet() const { return m_contextsHasBeenSet; }
134 template <typename ContextsT = Aws::Vector<EngagementContextDetails>>
135 void SetContexts(ContextsT&& value) {
136 m_contextsHasBeenSet = true;
137 m_contexts = std::forward<ContextsT>(value);
138 }
139 template <typename ContextsT = Aws::Vector<EngagementContextDetails>>
141 SetContexts(std::forward<ContextsT>(value));
142 return *this;
143 }
144 template <typename ContextsT = EngagementContextDetails>
146 m_contextsHasBeenSet = true;
147 m_contexts.emplace_back(std::forward<ContextsT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_catalog;
153
155
156 Aws::String m_title;
157
158 Aws::String m_description;
159
161 bool m_catalogHasBeenSet = false;
162 bool m_clientTokenHasBeenSet = true;
163 bool m_titleHasBeenSet = false;
164 bool m_descriptionHasBeenSet = false;
165 bool m_contextsHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace PartnerCentralSelling
170} // namespace Aws
AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override
CreateEngagementRequest & WithCatalog(CatalogT &&value)
AWS_PARTNERCENTRALSELLING_API CreateEngagementRequest()=default
const Aws::Vector< EngagementContextDetails > & GetContexts() const
CreateEngagementRequest & AddContexts(ContextsT &&value)
CreateEngagementRequest & WithDescription(DescriptionT &&value)
CreateEngagementRequest & WithContexts(ContextsT &&value)
CreateEngagementRequest & WithClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector