AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateCampaignRequest.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/personalize/PersonalizeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/personalize/model/CampaignConfig.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/personalize/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Personalize
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_PERSONALIZE_API CreateCampaignRequest() = 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 "CreateCampaign"; }
34
35 AWS_PERSONALIZE_API Aws::String SerializePayload() const override;
36
37 AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 CreateCampaignRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
67 inline const Aws::String& GetSolutionVersionArn() const { return m_solutionVersionArn; }
68 inline bool SolutionVersionArnHasBeenSet() const { return m_solutionVersionArnHasBeenSet; }
69 template<typename SolutionVersionArnT = Aws::String>
70 void SetSolutionVersionArn(SolutionVersionArnT&& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = std::forward<SolutionVersionArnT>(value); }
71 template<typename SolutionVersionArnT = Aws::String>
72 CreateCampaignRequest& WithSolutionVersionArn(SolutionVersionArnT&& value) { SetSolutionVersionArn(std::forward<SolutionVersionArnT>(value)); return *this;}
74
76
84 inline int GetMinProvisionedTPS() const { return m_minProvisionedTPS; }
85 inline bool MinProvisionedTPSHasBeenSet() const { return m_minProvisionedTPSHasBeenSet; }
86 inline void SetMinProvisionedTPS(int value) { m_minProvisionedTPSHasBeenSet = true; m_minProvisionedTPS = value; }
87 inline CreateCampaignRequest& WithMinProvisionedTPS(int value) { SetMinProvisionedTPS(value); return *this;}
89
91
94 inline const CampaignConfig& GetCampaignConfig() const { return m_campaignConfig; }
95 inline bool CampaignConfigHasBeenSet() const { return m_campaignConfigHasBeenSet; }
96 template<typename CampaignConfigT = CampaignConfig>
97 void SetCampaignConfig(CampaignConfigT&& value) { m_campaignConfigHasBeenSet = true; m_campaignConfig = std::forward<CampaignConfigT>(value); }
98 template<typename CampaignConfigT = CampaignConfig>
99 CreateCampaignRequest& WithCampaignConfig(CampaignConfigT&& value) { SetCampaignConfig(std::forward<CampaignConfigT>(value)); return *this;}
101
103
108 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
109 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
110 template<typename TagsT = Aws::Vector<Tag>>
111 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
112 template<typename TagsT = Aws::Vector<Tag>>
113 CreateCampaignRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
114 template<typename TagsT = Tag>
115 CreateCampaignRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
117 private:
118
119 Aws::String m_name;
120 bool m_nameHasBeenSet = false;
121
122 Aws::String m_solutionVersionArn;
123 bool m_solutionVersionArnHasBeenSet = false;
124
125 int m_minProvisionedTPS{0};
126 bool m_minProvisionedTPSHasBeenSet = false;
127
128 CampaignConfig m_campaignConfig;
129 bool m_campaignConfigHasBeenSet = false;
130
131 Aws::Vector<Tag> m_tags;
132 bool m_tagsHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace Personalize
137} // 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