AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateEngagementRequest.h
1
6#pragma once
7#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
8#include <aws/partnercentral-selling/PartnerCentralSellingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/partnercentral-selling/model/EngagementContextDetails.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace PartnerCentralSelling
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_PARTNERCENTRALSELLING_API CreateEngagementRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateEngagement"; }
34
35 AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override;
36
37 AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
47 inline const Aws::String& GetCatalog() const { return m_catalog; }
48 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
49 template<typename CatalogT = Aws::String>
50 void SetCatalog(CatalogT&& value) { m_catalogHasBeenSet = true; m_catalog = std::forward<CatalogT>(value); }
51 template<typename CatalogT = Aws::String>
52 CreateEngagementRequest& WithCatalog(CatalogT&& value) { SetCatalog(std::forward<CatalogT>(value)); return *this;}
54
56
61 inline const Aws::String& GetClientToken() const { return m_clientToken; }
62 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
63 template<typename ClientTokenT = Aws::String>
64 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
65 template<typename ClientTokenT = Aws::String>
66 CreateEngagementRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
68
70
88 inline const Aws::Vector<EngagementContextDetails>& GetContexts() const { return m_contexts; }
89 inline bool ContextsHasBeenSet() const { return m_contextsHasBeenSet; }
90 template<typename ContextsT = Aws::Vector<EngagementContextDetails>>
91 void SetContexts(ContextsT&& value) { m_contextsHasBeenSet = true; m_contexts = std::forward<ContextsT>(value); }
92 template<typename ContextsT = Aws::Vector<EngagementContextDetails>>
93 CreateEngagementRequest& WithContexts(ContextsT&& value) { SetContexts(std::forward<ContextsT>(value)); return *this;}
94 template<typename ContextsT = EngagementContextDetails>
95 CreateEngagementRequest& AddContexts(ContextsT&& value) { m_contextsHasBeenSet = true; m_contexts.emplace_back(std::forward<ContextsT>(value)); return *this; }
97
99
102 inline const Aws::String& GetDescription() const { return m_description; }
103 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
104 template<typename DescriptionT = Aws::String>
105 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
106 template<typename DescriptionT = Aws::String>
107 CreateEngagementRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
109
111
114 inline const Aws::String& GetTitle() const { return m_title; }
115 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
116 template<typename TitleT = Aws::String>
117 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
118 template<typename TitleT = Aws::String>
119 CreateEngagementRequest& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
121 private:
122
123 Aws::String m_catalog;
124 bool m_catalogHasBeenSet = false;
125
127 bool m_clientTokenHasBeenSet = true;
128
130 bool m_contextsHasBeenSet = false;
131
132 Aws::String m_description;
133 bool m_descriptionHasBeenSet = false;
134
135 Aws::String m_title;
136 bool m_titleHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace PartnerCentralSelling
141} // 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