AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline CreateCampaignRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline CreateCampaignRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline CreateCampaignRequest& WithName(const char* value) { SetName(value); return *this;}
54
56
69 inline const Aws::String& GetSolutionVersionArn() const{ return m_solutionVersionArn; }
70 inline bool SolutionVersionArnHasBeenSet() const { return m_solutionVersionArnHasBeenSet; }
71 inline void SetSolutionVersionArn(const Aws::String& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = value; }
72 inline void SetSolutionVersionArn(Aws::String&& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = std::move(value); }
73 inline void SetSolutionVersionArn(const char* value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn.assign(value); }
75 inline CreateCampaignRequest& WithSolutionVersionArn(Aws::String&& value) { SetSolutionVersionArn(std::move(value)); return *this;}
76 inline CreateCampaignRequest& WithSolutionVersionArn(const char* value) { SetSolutionVersionArn(value); return *this;}
78
80
88 inline int GetMinProvisionedTPS() const{ return m_minProvisionedTPS; }
89 inline bool MinProvisionedTPSHasBeenSet() const { return m_minProvisionedTPSHasBeenSet; }
90 inline void SetMinProvisionedTPS(int value) { m_minProvisionedTPSHasBeenSet = true; m_minProvisionedTPS = value; }
91 inline CreateCampaignRequest& WithMinProvisionedTPS(int value) { SetMinProvisionedTPS(value); return *this;}
93
95
98 inline const CampaignConfig& GetCampaignConfig() const{ return m_campaignConfig; }
99 inline bool CampaignConfigHasBeenSet() const { return m_campaignConfigHasBeenSet; }
100 inline void SetCampaignConfig(const CampaignConfig& value) { m_campaignConfigHasBeenSet = true; m_campaignConfig = value; }
101 inline void SetCampaignConfig(CampaignConfig&& value) { m_campaignConfigHasBeenSet = true; m_campaignConfig = std::move(value); }
102 inline CreateCampaignRequest& WithCampaignConfig(const CampaignConfig& value) { SetCampaignConfig(value); return *this;}
103 inline CreateCampaignRequest& WithCampaignConfig(CampaignConfig&& value) { SetCampaignConfig(std::move(value)); return *this;}
105
107
112 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
113 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
114 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
115 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
116 inline CreateCampaignRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
117 inline CreateCampaignRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
118 inline CreateCampaignRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
119 inline CreateCampaignRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
121 private:
122
123 Aws::String m_name;
124 bool m_nameHasBeenSet = false;
125
126 Aws::String m_solutionVersionArn;
127 bool m_solutionVersionArnHasBeenSet = false;
128
129 int m_minProvisionedTPS;
130 bool m_minProvisionedTPSHasBeenSet = false;
131
132 CampaignConfig m_campaignConfig;
133 bool m_campaignConfigHasBeenSet = false;
134
135 Aws::Vector<Tag> m_tags;
136 bool m_tagsHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace Personalize
141} // namespace Aws
CreateCampaignRequest & WithName(Aws::String &&value)
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
CreateCampaignRequest & WithSolutionVersionArn(const char *value)
CreateCampaignRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateCampaignRequest & WithCampaignConfig(CampaignConfig &&value)
CreateCampaignRequest & WithCampaignConfig(const CampaignConfig &value)
CreateCampaignRequest & WithName(const Aws::String &value)
CreateCampaignRequest & WithName(const char *value)
CreateCampaignRequest & AddTags(const Tag &value)
void SetCampaignConfig(const CampaignConfig &value)
CreateCampaignRequest & WithMinProvisionedTPS(int value)
CreateCampaignRequest & AddTags(Tag &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateCampaignRequest & WithSolutionVersionArn(const Aws::String &value)
CreateCampaignRequest & WithTags(Aws::Vector< Tag > &&value)
virtual const char * GetServiceRequestName() const override
CreateCampaignRequest & WithSolutionVersionArn(Aws::String &&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