AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateEngagementContextRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/partnercentral-selling/PartnerCentralSellingRequest.h>
10#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
11#include <aws/partnercentral-selling/model/EngagementContextPayload.h>
12#include <aws/partnercentral-selling/model/EngagementContextType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace PartnerCentralSelling {
18namespace Model {
19
23 public:
24 AWS_PARTNERCENTRALSELLING_API CreateEngagementContextRequest() = 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 "CreateEngagementContext"; }
31
32 AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override;
33
34 AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
45 inline const Aws::String& GetCatalog() const { return m_catalog; }
46 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
47 template <typename CatalogT = Aws::String>
48 void SetCatalog(CatalogT&& value) {
49 m_catalogHasBeenSet = true;
50 m_catalog = std::forward<CatalogT>(value);
51 }
52 template <typename CatalogT = Aws::String>
54 SetCatalog(std::forward<CatalogT>(value));
55 return *this;
56 }
58
60
66 inline const Aws::String& GetEngagementIdentifier() const { return m_engagementIdentifier; }
67 inline bool EngagementIdentifierHasBeenSet() const { return m_engagementIdentifierHasBeenSet; }
68 template <typename EngagementIdentifierT = Aws::String>
69 void SetEngagementIdentifier(EngagementIdentifierT&& value) {
70 m_engagementIdentifierHasBeenSet = true;
71 m_engagementIdentifier = std::forward<EngagementIdentifierT>(value);
72 }
73 template <typename EngagementIdentifierT = Aws::String>
75 SetEngagementIdentifier(std::forward<EngagementIdentifierT>(value));
76 return *this;
77 }
79
81
87 inline const Aws::String& GetClientToken() const { return m_clientToken; }
88 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
89 template <typename ClientTokenT = Aws::String>
90 void SetClientToken(ClientTokenT&& value) {
91 m_clientTokenHasBeenSet = true;
92 m_clientToken = std::forward<ClientTokenT>(value);
93 }
94 template <typename ClientTokenT = Aws::String>
96 SetClientToken(std::forward<ClientTokenT>(value));
97 return *this;
98 }
100
102
109 inline EngagementContextType GetType() const { return m_type; }
110 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
111 inline void SetType(EngagementContextType value) {
112 m_typeHasBeenSet = true;
113 m_type = value;
114 }
116 SetType(value);
117 return *this;
118 }
120
122
123 inline const EngagementContextPayload& GetPayload() const { return m_payload; }
124 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
125 template <typename PayloadT = EngagementContextPayload>
126 void SetPayload(PayloadT&& value) {
127 m_payloadHasBeenSet = true;
128 m_payload = std::forward<PayloadT>(value);
129 }
130 template <typename PayloadT = EngagementContextPayload>
132 SetPayload(std::forward<PayloadT>(value));
133 return *this;
134 }
136 private:
137 Aws::String m_catalog;
138
139 Aws::String m_engagementIdentifier;
140
142
144
145 EngagementContextPayload m_payload;
146 bool m_catalogHasBeenSet = false;
147 bool m_engagementIdentifierHasBeenSet = false;
148 bool m_clientTokenHasBeenSet = true;
149 bool m_typeHasBeenSet = false;
150 bool m_payloadHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace PartnerCentralSelling
155} // namespace Aws
AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_PARTNERCENTRALSELLING_API CreateEngagementContextRequest()=default
CreateEngagementContextRequest & WithClientToken(ClientTokenT &&value)
CreateEngagementContextRequest & WithEngagementIdentifier(EngagementIdentifierT &&value)
CreateEngagementContextRequest & WithType(EngagementContextType value)
AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String