AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateCampaignRequest.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 <utility>
12
13namespace Aws
14{
15namespace Personalize
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_PERSONALIZE_API UpdateCampaignRequest();
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_PERSONALIZE_API Aws::String SerializePayload() const override;
34
35 AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetCampaignArn() const{ return m_campaignArn; }
43 inline bool CampaignArnHasBeenSet() const { return m_campaignArnHasBeenSet; }
44 inline void SetCampaignArn(const Aws::String& value) { m_campaignArnHasBeenSet = true; m_campaignArn = value; }
45 inline void SetCampaignArn(Aws::String&& value) { m_campaignArnHasBeenSet = true; m_campaignArn = std::move(value); }
46 inline void SetCampaignArn(const char* value) { m_campaignArnHasBeenSet = true; m_campaignArn.assign(value); }
47 inline UpdateCampaignRequest& WithCampaignArn(const Aws::String& value) { SetCampaignArn(value); return *this;}
48 inline UpdateCampaignRequest& WithCampaignArn(Aws::String&& value) { SetCampaignArn(std::move(value)); return *this;}
49 inline UpdateCampaignRequest& WithCampaignArn(const char* value) { SetCampaignArn(value); return *this;}
51
53
66 inline const Aws::String& GetSolutionVersionArn() const{ return m_solutionVersionArn; }
67 inline bool SolutionVersionArnHasBeenSet() const { return m_solutionVersionArnHasBeenSet; }
68 inline void SetSolutionVersionArn(const Aws::String& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = value; }
69 inline void SetSolutionVersionArn(Aws::String&& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = std::move(value); }
70 inline void SetSolutionVersionArn(const char* value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn.assign(value); }
72 inline UpdateCampaignRequest& WithSolutionVersionArn(Aws::String&& value) { SetSolutionVersionArn(std::move(value)); return *this;}
73 inline UpdateCampaignRequest& WithSolutionVersionArn(const char* value) { SetSolutionVersionArn(value); return *this;}
75
77
85 inline int GetMinProvisionedTPS() const{ return m_minProvisionedTPS; }
86 inline bool MinProvisionedTPSHasBeenSet() const { return m_minProvisionedTPSHasBeenSet; }
87 inline void SetMinProvisionedTPS(int value) { m_minProvisionedTPSHasBeenSet = true; m_minProvisionedTPS = value; }
88 inline UpdateCampaignRequest& WithMinProvisionedTPS(int value) { SetMinProvisionedTPS(value); return *this;}
90
92
95 inline const CampaignConfig& GetCampaignConfig() const{ return m_campaignConfig; }
96 inline bool CampaignConfigHasBeenSet() const { return m_campaignConfigHasBeenSet; }
97 inline void SetCampaignConfig(const CampaignConfig& value) { m_campaignConfigHasBeenSet = true; m_campaignConfig = value; }
98 inline void SetCampaignConfig(CampaignConfig&& value) { m_campaignConfigHasBeenSet = true; m_campaignConfig = std::move(value); }
99 inline UpdateCampaignRequest& WithCampaignConfig(const CampaignConfig& value) { SetCampaignConfig(value); return *this;}
100 inline UpdateCampaignRequest& WithCampaignConfig(CampaignConfig&& value) { SetCampaignConfig(std::move(value)); return *this;}
102 private:
103
104 Aws::String m_campaignArn;
105 bool m_campaignArnHasBeenSet = false;
106
107 Aws::String m_solutionVersionArn;
108 bool m_solutionVersionArnHasBeenSet = false;
109
110 int m_minProvisionedTPS;
111 bool m_minProvisionedTPSHasBeenSet = false;
112
113 CampaignConfig m_campaignConfig;
114 bool m_campaignConfigHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace Personalize
119} // namespace Aws
UpdateCampaignRequest & WithSolutionVersionArn(const char *value)
void SetCampaignConfig(const CampaignConfig &value)
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
UpdateCampaignRequest & WithCampaignArn(const char *value)
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
UpdateCampaignRequest & WithSolutionVersionArn(Aws::String &&value)
UpdateCampaignRequest & WithCampaignConfig(CampaignConfig &&value)
UpdateCampaignRequest & WithMinProvisionedTPS(int value)
UpdateCampaignRequest & WithCampaignConfig(const CampaignConfig &value)
UpdateCampaignRequest & WithCampaignArn(Aws::String &&value)
UpdateCampaignRequest & WithCampaignArn(const Aws::String &value)
UpdateCampaignRequest & WithSolutionVersionArn(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String