AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateCampaignRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/personalize/PersonalizeRequest.h>
10#include <aws/personalize/Personalize_EXPORTS.h>
11#include <aws/personalize/model/CampaignConfig.h>
12#include <aws/personalize/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Personalize {
18namespace Model {
19
23 public:
24 AWS_PERSONALIZE_API CreateCampaignRequest() = 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 "CreateCampaign"; }
31
32 AWS_PERSONALIZE_API Aws::String SerializePayload() const override;
33
34 AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
69 inline const Aws::String& GetSolutionVersionArn() const { return m_solutionVersionArn; }
70 inline bool SolutionVersionArnHasBeenSet() const { return m_solutionVersionArnHasBeenSet; }
71 template <typename SolutionVersionArnT = Aws::String>
72 void SetSolutionVersionArn(SolutionVersionArnT&& value) {
73 m_solutionVersionArnHasBeenSet = true;
74 m_solutionVersionArn = std::forward<SolutionVersionArnT>(value);
75 }
76 template <typename SolutionVersionArnT = Aws::String>
77 CreateCampaignRequest& WithSolutionVersionArn(SolutionVersionArnT&& value) {
78 SetSolutionVersionArn(std::forward<SolutionVersionArnT>(value));
79 return *this;
80 }
82
84
92 inline int GetMinProvisionedTPS() const { return m_minProvisionedTPS; }
93 inline bool MinProvisionedTPSHasBeenSet() const { return m_minProvisionedTPSHasBeenSet; }
94 inline void SetMinProvisionedTPS(int value) {
95 m_minProvisionedTPSHasBeenSet = true;
96 m_minProvisionedTPS = value;
97 }
100 return *this;
101 }
103
105
108 inline const CampaignConfig& GetCampaignConfig() const { return m_campaignConfig; }
109 inline bool CampaignConfigHasBeenSet() const { return m_campaignConfigHasBeenSet; }
110 template <typename CampaignConfigT = CampaignConfig>
111 void SetCampaignConfig(CampaignConfigT&& value) {
112 m_campaignConfigHasBeenSet = true;
113 m_campaignConfig = std::forward<CampaignConfigT>(value);
114 }
115 template <typename CampaignConfigT = CampaignConfig>
116 CreateCampaignRequest& WithCampaignConfig(CampaignConfigT&& value) {
117 SetCampaignConfig(std::forward<CampaignConfigT>(value));
118 return *this;
119 }
121
123
128 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
129 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
130 template <typename TagsT = Aws::Vector<Tag>>
131 void SetTags(TagsT&& value) {
132 m_tagsHasBeenSet = true;
133 m_tags = std::forward<TagsT>(value);
134 }
135 template <typename TagsT = Aws::Vector<Tag>>
137 SetTags(std::forward<TagsT>(value));
138 return *this;
139 }
140 template <typename TagsT = Tag>
142 m_tagsHasBeenSet = true;
143 m_tags.emplace_back(std::forward<TagsT>(value));
144 return *this;
145 }
147 private:
148 Aws::String m_name;
149
150 Aws::String m_solutionVersionArn;
151
152 int m_minProvisionedTPS{0};
153
154 CampaignConfig m_campaignConfig;
155
156 Aws::Vector<Tag> m_tags;
157 bool m_nameHasBeenSet = false;
158 bool m_solutionVersionArnHasBeenSet = false;
159 bool m_minProvisionedTPSHasBeenSet = false;
160 bool m_campaignConfigHasBeenSet = false;
161 bool m_tagsHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace Personalize
166} // namespace Aws
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
CreateCampaignRequest & WithTags(TagsT &&value)
AWS_PERSONALIZE_API CreateCampaignRequest()=default
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateCampaignRequest & WithCampaignConfig(CampaignConfigT &&value)
CreateCampaignRequest & WithMinProvisionedTPS(int value)
CreateCampaignRequest & WithSolutionVersionArn(SolutionVersionArnT &&value)
virtual const char * GetServiceRequestName() const override
CreateCampaignRequest & WithName(NameT &&value)
void SetSolutionVersionArn(SolutionVersionArnT &&value)
CreateCampaignRequest & AddTags(TagsT &&value)
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