AWS SDK for C++  1.9.66
AWS SDK for C++
UpdateCampaignRequest.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 "UpdateCampaign"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetCampaignArn() const{ return m_campaignArn; }
42 
46  inline bool CampaignArnHasBeenSet() const { return m_campaignArnHasBeenSet; }
47 
51  inline void SetCampaignArn(const Aws::String& value) { m_campaignArnHasBeenSet = true; m_campaignArn = value; }
52 
56  inline void SetCampaignArn(Aws::String&& value) { m_campaignArnHasBeenSet = true; m_campaignArn = std::move(value); }
57 
61  inline void SetCampaignArn(const char* value) { m_campaignArnHasBeenSet = true; m_campaignArn.assign(value); }
62 
66  inline UpdateCampaignRequest& WithCampaignArn(const Aws::String& value) { SetCampaignArn(value); return *this;}
67 
71  inline UpdateCampaignRequest& WithCampaignArn(Aws::String&& value) { SetCampaignArn(std::move(value)); return *this;}
72 
76  inline UpdateCampaignRequest& WithCampaignArn(const char* value) { SetCampaignArn(value); return *this;}
77 
78 
82  inline const Aws::String& GetSolutionVersionArn() const{ return m_solutionVersionArn; }
83 
87  inline bool SolutionVersionArnHasBeenSet() const { return m_solutionVersionArnHasBeenSet; }
88 
92  inline void SetSolutionVersionArn(const Aws::String& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = value; }
93 
97  inline void SetSolutionVersionArn(Aws::String&& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = std::move(value); }
98 
102  inline void SetSolutionVersionArn(const char* value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn.assign(value); }
103 
107  inline UpdateCampaignRequest& WithSolutionVersionArn(const Aws::String& value) { SetSolutionVersionArn(value); return *this;}
108 
112  inline UpdateCampaignRequest& WithSolutionVersionArn(Aws::String&& value) { SetSolutionVersionArn(std::move(value)); return *this;}
113 
117  inline UpdateCampaignRequest& WithSolutionVersionArn(const char* value) { SetSolutionVersionArn(value); return *this;}
118 
119 
124  inline int GetMinProvisionedTPS() const{ return m_minProvisionedTPS; }
125 
130  inline bool MinProvisionedTPSHasBeenSet() const { return m_minProvisionedTPSHasBeenSet; }
131 
136  inline void SetMinProvisionedTPS(int value) { m_minProvisionedTPSHasBeenSet = true; m_minProvisionedTPS = value; }
137 
142  inline UpdateCampaignRequest& WithMinProvisionedTPS(int value) { SetMinProvisionedTPS(value); return *this;}
143 
144 
148  inline const CampaignConfig& GetCampaignConfig() const{ return m_campaignConfig; }
149 
153  inline bool CampaignConfigHasBeenSet() const { return m_campaignConfigHasBeenSet; }
154 
158  inline void SetCampaignConfig(const CampaignConfig& value) { m_campaignConfigHasBeenSet = true; m_campaignConfig = value; }
159 
163  inline void SetCampaignConfig(CampaignConfig&& value) { m_campaignConfigHasBeenSet = true; m_campaignConfig = std::move(value); }
164 
168  inline UpdateCampaignRequest& WithCampaignConfig(const CampaignConfig& value) { SetCampaignConfig(value); return *this;}
169 
173  inline UpdateCampaignRequest& WithCampaignConfig(CampaignConfig&& value) { SetCampaignConfig(std::move(value)); return *this;}
174 
175  private:
176 
177  Aws::String m_campaignArn;
178  bool m_campaignArnHasBeenSet;
179 
180  Aws::String m_solutionVersionArn;
181  bool m_solutionVersionArnHasBeenSet;
182 
183  int m_minProvisionedTPS;
184  bool m_minProvisionedTPSHasBeenSet;
185 
186  CampaignConfig m_campaignConfig;
187  bool m_campaignConfigHasBeenSet;
188  };
189 
190 } // namespace Model
191 } // namespace Personalize
192 } // namespace Aws
PersonalizeRequest.h
Aws::Personalize::Model::UpdateCampaignRequest::WithCampaignArn
UpdateCampaignRequest & WithCampaignArn(const char *value)
Definition: UpdateCampaignRequest.h:76
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Personalize::Model::UpdateCampaignRequest::CampaignArnHasBeenSet
bool CampaignArnHasBeenSet() const
Definition: UpdateCampaignRequest.h:46
Aws::Personalize::Model::UpdateCampaignRequest::WithSolutionVersionArn
UpdateCampaignRequest & WithSolutionVersionArn(const Aws::String &value)
Definition: UpdateCampaignRequest.h:107
CampaignConfig.h
Aws::Personalize::Model::CampaignConfig
Definition: CampaignConfig.h:33
Aws::Personalize::Model::UpdateCampaignRequest::MinProvisionedTPSHasBeenSet
bool MinProvisionedTPSHasBeenSet() const
Definition: UpdateCampaignRequest.h:130
Aws::Personalize::Model::UpdateCampaignRequest::UpdateCampaignRequest
UpdateCampaignRequest()
Aws::Personalize::Model::UpdateCampaignRequest::GetSolutionVersionArn
const Aws::String & GetSolutionVersionArn() const
Definition: UpdateCampaignRequest.h:82
AWS_PERSONALIZE_API
#define AWS_PERSONALIZE_API
Definition: Personalize_EXPORTS.h:28
Aws::Personalize::Model::UpdateCampaignRequest::WithSolutionVersionArn
UpdateCampaignRequest & WithSolutionVersionArn(const char *value)
Definition: UpdateCampaignRequest.h:117
Aws::Personalize::Model::UpdateCampaignRequest::SetSolutionVersionArn
void SetSolutionVersionArn(Aws::String &&value)
Definition: UpdateCampaignRequest.h:97
Aws::Personalize::Model::UpdateCampaignRequest::SetSolutionVersionArn
void SetSolutionVersionArn(const char *value)
Definition: UpdateCampaignRequest.h:102
Aws::Personalize::Model::UpdateCampaignRequest::WithCampaignConfig
UpdateCampaignRequest & WithCampaignConfig(const CampaignConfig &value)
Definition: UpdateCampaignRequest.h:168
Aws::Personalize::Model::UpdateCampaignRequest::WithCampaignArn
UpdateCampaignRequest & WithCampaignArn(const Aws::String &value)
Definition: UpdateCampaignRequest.h:66
Aws::Personalize::Model::UpdateCampaignRequest::GetCampaignConfig
const CampaignConfig & GetCampaignConfig() const
Definition: UpdateCampaignRequest.h:148
Aws::Personalize::Model::UpdateCampaignRequest::CampaignConfigHasBeenSet
bool CampaignConfigHasBeenSet() const
Definition: UpdateCampaignRequest.h:153
Aws::Personalize::Model::UpdateCampaignRequest::SetCampaignConfig
void SetCampaignConfig(CampaignConfig &&value)
Definition: UpdateCampaignRequest.h:163
Aws::Personalize::Model::UpdateCampaignRequest::SetCampaignArn
void SetCampaignArn(Aws::String &&value)
Definition: UpdateCampaignRequest.h:56
Aws::Personalize::Model::UpdateCampaignRequest::SetCampaignArn
void SetCampaignArn(const Aws::String &value)
Definition: UpdateCampaignRequest.h:51
Aws::Personalize::Model::UpdateCampaignRequest::WithCampaignConfig
UpdateCampaignRequest & WithCampaignConfig(CampaignConfig &&value)
Definition: UpdateCampaignRequest.h:173
Aws::Personalize::Model::UpdateCampaignRequest
Definition: UpdateCampaignRequest.h:23
Aws::Personalize::Model::UpdateCampaignRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSString.h
Aws::Personalize::PersonalizeRequest
Definition: PersonalizeRequest.h:17
Aws::Personalize::Model::UpdateCampaignRequest::WithCampaignArn
UpdateCampaignRequest & WithCampaignArn(Aws::String &&value)
Definition: UpdateCampaignRequest.h:71
Aws::Personalize::Model::UpdateCampaignRequest::SetSolutionVersionArn
void SetSolutionVersionArn(const Aws::String &value)
Definition: UpdateCampaignRequest.h:92
Aws::Personalize::Model::UpdateCampaignRequest::SetMinProvisionedTPS
void SetMinProvisionedTPS(int value)
Definition: UpdateCampaignRequest.h:136
Aws::Personalize::Model::UpdateCampaignRequest::WithSolutionVersionArn
UpdateCampaignRequest & WithSolutionVersionArn(Aws::String &&value)
Definition: UpdateCampaignRequest.h:112
Aws
Definition: AccessManagementClient.h:15
Aws::Personalize::Model::UpdateCampaignRequest::SetCampaignConfig
void SetCampaignConfig(const CampaignConfig &value)
Definition: UpdateCampaignRequest.h:158
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Personalize_EXPORTS.h
Aws::Personalize::Model::UpdateCampaignRequest::SolutionVersionArnHasBeenSet
bool SolutionVersionArnHasBeenSet() const
Definition: UpdateCampaignRequest.h:87
Aws::Personalize::Model::UpdateCampaignRequest::SetCampaignArn
void SetCampaignArn(const char *value)
Definition: UpdateCampaignRequest.h:61
Aws::Personalize::Model::UpdateCampaignRequest::GetCampaignArn
const Aws::String & GetCampaignArn() const
Definition: UpdateCampaignRequest.h:41
Aws::Personalize::Model::UpdateCampaignRequest::WithMinProvisionedTPS
UpdateCampaignRequest & WithMinProvisionedTPS(int value)
Definition: UpdateCampaignRequest.h:142
Aws::Personalize::Model::UpdateCampaignRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Personalize::Model::UpdateCampaignRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateCampaignRequest.h:31
Aws::Personalize::Model::UpdateCampaignRequest::GetMinProvisionedTPS
int GetMinProvisionedTPS() const
Definition: UpdateCampaignRequest.h:124