AWS SDK for C++  1.9.109
AWS SDK for C++
CreateCampaignRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Personalize
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "CreateCampaign"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetName() const{ return m_name; }
43 
48  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
60  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 
66  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 
72  inline CreateCampaignRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
73 
78  inline CreateCampaignRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 
84  inline CreateCampaignRequest& WithName(const char* value) { SetName(value); return *this;}
85 
86 
90  inline const Aws::String& GetSolutionVersionArn() const{ return m_solutionVersionArn; }
91 
95  inline bool SolutionVersionArnHasBeenSet() const { return m_solutionVersionArnHasBeenSet; }
96 
100  inline void SetSolutionVersionArn(const Aws::String& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = value; }
101 
105  inline void SetSolutionVersionArn(Aws::String&& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = std::move(value); }
106 
110  inline void SetSolutionVersionArn(const char* value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn.assign(value); }
111 
115  inline CreateCampaignRequest& WithSolutionVersionArn(const Aws::String& value) { SetSolutionVersionArn(value); return *this;}
116 
120  inline CreateCampaignRequest& WithSolutionVersionArn(Aws::String&& value) { SetSolutionVersionArn(std::move(value)); return *this;}
121 
125  inline CreateCampaignRequest& WithSolutionVersionArn(const char* value) { SetSolutionVersionArn(value); return *this;}
126 
127 
132  inline int GetMinProvisionedTPS() const{ return m_minProvisionedTPS; }
133 
138  inline bool MinProvisionedTPSHasBeenSet() const { return m_minProvisionedTPSHasBeenSet; }
139 
144  inline void SetMinProvisionedTPS(int value) { m_minProvisionedTPSHasBeenSet = true; m_minProvisionedTPS = value; }
145 
150  inline CreateCampaignRequest& WithMinProvisionedTPS(int value) { SetMinProvisionedTPS(value); return *this;}
151 
152 
156  inline const CampaignConfig& GetCampaignConfig() const{ return m_campaignConfig; }
157 
161  inline bool CampaignConfigHasBeenSet() const { return m_campaignConfigHasBeenSet; }
162 
166  inline void SetCampaignConfig(const CampaignConfig& value) { m_campaignConfigHasBeenSet = true; m_campaignConfig = value; }
167 
171  inline void SetCampaignConfig(CampaignConfig&& value) { m_campaignConfigHasBeenSet = true; m_campaignConfig = std::move(value); }
172 
176  inline CreateCampaignRequest& WithCampaignConfig(const CampaignConfig& value) { SetCampaignConfig(value); return *this;}
177 
181  inline CreateCampaignRequest& WithCampaignConfig(CampaignConfig&& value) { SetCampaignConfig(std::move(value)); return *this;}
182 
183  private:
184 
185  Aws::String m_name;
186  bool m_nameHasBeenSet;
187 
188  Aws::String m_solutionVersionArn;
189  bool m_solutionVersionArnHasBeenSet;
190 
191  int m_minProvisionedTPS;
192  bool m_minProvisionedTPSHasBeenSet;
193 
194  CampaignConfig m_campaignConfig;
195  bool m_campaignConfigHasBeenSet;
196  };
197 
198 } // namespace Model
199 } // namespace Personalize
200 } // namespace Aws
Aws::Personalize::Model::CreateCampaignRequest::WithSolutionVersionArn
CreateCampaignRequest & WithSolutionVersionArn(const Aws::String &value)
Definition: CreateCampaignRequest.h:115
PersonalizeRequest.h
Aws::Personalize::Model::CreateCampaignRequest::WithCampaignConfig
CreateCampaignRequest & WithCampaignConfig(CampaignConfig &&value)
Definition: CreateCampaignRequest.h:181
Aws::Personalize::Model::CreateCampaignRequest::WithCampaignConfig
CreateCampaignRequest & WithCampaignConfig(const CampaignConfig &value)
Definition: CreateCampaignRequest.h:176
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Personalize::Model::CreateCampaignRequest::GetSolutionVersionArn
const Aws::String & GetSolutionVersionArn() const
Definition: CreateCampaignRequest.h:90
Aws::Personalize::Model::CreateCampaignRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Personalize::Model::CreateCampaignRequest::SetSolutionVersionArn
void SetSolutionVersionArn(const Aws::String &value)
Definition: CreateCampaignRequest.h:100
Aws::Personalize::Model::CreateCampaignRequest::SetName
void SetName(const char *value)
Definition: CreateCampaignRequest.h:66
CampaignConfig.h
Aws::Personalize::Model::CreateCampaignRequest::SetMinProvisionedTPS
void SetMinProvisionedTPS(int value)
Definition: CreateCampaignRequest.h:144
Aws::Personalize::Model::CreateCampaignRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateCampaignRequest.h:60
Aws::Personalize::Model::CampaignConfig
Definition: CampaignConfig.h:33
Aws::Personalize::Model::CreateCampaignRequest::WithMinProvisionedTPS
CreateCampaignRequest & WithMinProvisionedTPS(int value)
Definition: CreateCampaignRequest.h:150
Aws::Personalize::Model::CreateCampaignRequest::GetMinProvisionedTPS
int GetMinProvisionedTPS() const
Definition: CreateCampaignRequest.h:132
AWS_PERSONALIZE_API
#define AWS_PERSONALIZE_API
Definition: Personalize_EXPORTS.h:28
Aws::Personalize::Model::CreateCampaignRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateCampaignRequest.h:54
Aws::Personalize::Model::CreateCampaignRequest::SetSolutionVersionArn
void SetSolutionVersionArn(Aws::String &&value)
Definition: CreateCampaignRequest.h:105
Aws::Personalize::Model::CreateCampaignRequest::WithName
CreateCampaignRequest & WithName(const char *value)
Definition: CreateCampaignRequest.h:84
Aws::Personalize::Model::CreateCampaignRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateCampaignRequest.h:48
Aws::Personalize::Model::CreateCampaignRequest::GetCampaignConfig
const CampaignConfig & GetCampaignConfig() const
Definition: CreateCampaignRequest.h:156
Aws::Personalize::Model::CreateCampaignRequest
Definition: CreateCampaignRequest.h:23
Aws::Personalize::Model::CreateCampaignRequest::CreateCampaignRequest
CreateCampaignRequest()
Aws::Personalize::Model::CreateCampaignRequest::WithSolutionVersionArn
CreateCampaignRequest & WithSolutionVersionArn(Aws::String &&value)
Definition: CreateCampaignRequest.h:120
Aws::Personalize::Model::CreateCampaignRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateCampaignRequest.h:31
Aws::Personalize::Model::CreateCampaignRequest::SetCampaignConfig
void SetCampaignConfig(CampaignConfig &&value)
Definition: CreateCampaignRequest.h:171
Aws::Personalize::Model::CreateCampaignRequest::SetCampaignConfig
void SetCampaignConfig(const CampaignConfig &value)
Definition: CreateCampaignRequest.h:166
Aws::Personalize::Model::CreateCampaignRequest::MinProvisionedTPSHasBeenSet
bool MinProvisionedTPSHasBeenSet() const
Definition: CreateCampaignRequest.h:138
Aws::Personalize::Model::CreateCampaignRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::Personalize::PersonalizeRequest
Definition: PersonalizeRequest.h:17
Aws::Personalize::Model::CreateCampaignRequest::SetSolutionVersionArn
void SetSolutionVersionArn(const char *value)
Definition: CreateCampaignRequest.h:110
Aws::Personalize::Model::CreateCampaignRequest::WithName
CreateCampaignRequest & WithName(const Aws::String &value)
Definition: CreateCampaignRequest.h:72
Aws
Definition: AccessManagementClient.h:15
Aws::Personalize::Model::CreateCampaignRequest::SolutionVersionArnHasBeenSet
bool SolutionVersionArnHasBeenSet() const
Definition: CreateCampaignRequest.h:95
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Personalize::Model::CreateCampaignRequest::GetName
const Aws::String & GetName() const
Definition: CreateCampaignRequest.h:42
Aws::Personalize::Model::CreateCampaignRequest::WithSolutionVersionArn
CreateCampaignRequest & WithSolutionVersionArn(const char *value)
Definition: CreateCampaignRequest.h:125
Personalize_EXPORTS.h
Aws::Personalize::Model::CreateCampaignRequest::WithName
CreateCampaignRequest & WithName(Aws::String &&value)
Definition: CreateCampaignRequest.h:78
Aws::Personalize::Model::CreateCampaignRequest::CampaignConfigHasBeenSet
bool CampaignConfigHasBeenSet() const
Definition: CreateCampaignRequest.h:161