AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
UpdateCampaignRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/personalize/PersonalizeRequest.h>
9#include <aws/personalize/Personalize_EXPORTS.h>
10#include <aws/personalize/model/CampaignConfig.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Personalize {
16namespace Model {
17
21 public:
22 AWS_PERSONALIZE_API UpdateCampaignRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateCampaign"; }
29
30 AWS_PERSONALIZE_API Aws::String SerializePayload() const override;
31
32 AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::String& GetCampaignArn() const { return m_campaignArn; }
39 inline bool CampaignArnHasBeenSet() const { return m_campaignArnHasBeenSet; }
40 template <typename CampaignArnT = Aws::String>
41 void SetCampaignArn(CampaignArnT&& value) {
42 m_campaignArnHasBeenSet = true;
43 m_campaignArn = std::forward<CampaignArnT>(value);
44 }
45 template <typename CampaignArnT = Aws::String>
46 UpdateCampaignRequest& WithCampaignArn(CampaignArnT&& value) {
47 SetCampaignArn(std::forward<CampaignArnT>(value));
48 return *this;
49 }
51
53
66 inline const Aws::String& GetSolutionVersionArn() const { return m_solutionVersionArn; }
67 inline bool SolutionVersionArnHasBeenSet() const { return m_solutionVersionArnHasBeenSet; }
68 template <typename SolutionVersionArnT = Aws::String>
69 void SetSolutionVersionArn(SolutionVersionArnT&& value) {
70 m_solutionVersionArnHasBeenSet = true;
71 m_solutionVersionArn = std::forward<SolutionVersionArnT>(value);
72 }
73 template <typename SolutionVersionArnT = Aws::String>
74 UpdateCampaignRequest& WithSolutionVersionArn(SolutionVersionArnT&& value) {
75 SetSolutionVersionArn(std::forward<SolutionVersionArnT>(value));
76 return *this;
77 }
79
81
89 inline int GetMinProvisionedTPS() const { return m_minProvisionedTPS; }
90 inline bool MinProvisionedTPSHasBeenSet() const { return m_minProvisionedTPSHasBeenSet; }
91 inline void SetMinProvisionedTPS(int value) {
92 m_minProvisionedTPSHasBeenSet = true;
93 m_minProvisionedTPS = value;
94 }
97 return *this;
98 }
100
102
105 inline const CampaignConfig& GetCampaignConfig() const { return m_campaignConfig; }
106 inline bool CampaignConfigHasBeenSet() const { return m_campaignConfigHasBeenSet; }
107 template <typename CampaignConfigT = CampaignConfig>
108 void SetCampaignConfig(CampaignConfigT&& value) {
109 m_campaignConfigHasBeenSet = true;
110 m_campaignConfig = std::forward<CampaignConfigT>(value);
111 }
112 template <typename CampaignConfigT = CampaignConfig>
113 UpdateCampaignRequest& WithCampaignConfig(CampaignConfigT&& value) {
114 SetCampaignConfig(std::forward<CampaignConfigT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_campaignArn;
120
121 Aws::String m_solutionVersionArn;
122
123 int m_minProvisionedTPS{0};
124
125 CampaignConfig m_campaignConfig;
126 bool m_campaignArnHasBeenSet = false;
127 bool m_solutionVersionArnHasBeenSet = false;
128 bool m_minProvisionedTPSHasBeenSet = false;
129 bool m_campaignConfigHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace Personalize
134} // namespace Aws
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
UpdateCampaignRequest & WithCampaignConfig(CampaignConfigT &&value)
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_PERSONALIZE_API UpdateCampaignRequest()=default
UpdateCampaignRequest & WithMinProvisionedTPS(int value)
UpdateCampaignRequest & WithSolutionVersionArn(SolutionVersionArnT &&value)
void SetSolutionVersionArn(SolutionVersionArnT &&value)
UpdateCampaignRequest & WithCampaignArn(CampaignArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String