AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
UpdatePlanRequest.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetizationRequest.h>
8#include <aws/appmonetization/AppMonetization_EXPORTS.h>
9#include <aws/appmonetization/model/PlanDefinition.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace AppMonetization {
16namespace Model {
17
27 public:
28 AWS_APPMONETIZATION_API UpdatePlanRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdatePlan"; }
35
36 AWS_APPMONETIZATION_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetAppId() const { return m_appId; }
43 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
44 template <typename AppIdT = Aws::String>
45 void SetAppId(AppIdT&& value) {
46 m_appIdHasBeenSet = true;
47 m_appId = std::forward<AppIdT>(value);
48 }
49 template <typename AppIdT = Aws::String>
50 UpdatePlanRequest& WithAppId(AppIdT&& value) {
51 SetAppId(std::forward<AppIdT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetPlanId() const { return m_planId; }
63 inline bool PlanIdHasBeenSet() const { return m_planIdHasBeenSet; }
64 template <typename PlanIdT = Aws::String>
65 void SetPlanId(PlanIdT&& value) {
66 m_planIdHasBeenSet = true;
67 m_planId = std::forward<PlanIdT>(value);
68 }
69 template <typename PlanIdT = Aws::String>
70 UpdatePlanRequest& WithPlanId(PlanIdT&& value) {
71 SetPlanId(std::forward<PlanIdT>(value));
72 return *this;
73 }
75
77
80 inline const PlanDefinition& GetDefinition() const { return m_definition; }
81 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
82 template <typename DefinitionT = PlanDefinition>
83 void SetDefinition(DefinitionT&& value) {
84 m_definitionHasBeenSet = true;
85 m_definition = std::forward<DefinitionT>(value);
86 }
87 template <typename DefinitionT = PlanDefinition>
88 UpdatePlanRequest& WithDefinition(DefinitionT&& value) {
89 SetDefinition(std::forward<DefinitionT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_appId;
95
96 Aws::String m_planId;
97
98 PlanDefinition m_definition;
99 bool m_appIdHasBeenSet = false;
100 bool m_planIdHasBeenSet = false;
101 bool m_definitionHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace AppMonetization
106} // namespace Aws
UpdatePlanRequest & WithAppId(AppIdT &&value)
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
UpdatePlanRequest & WithDefinition(DefinitionT &&value)
AWS_APPMONETIZATION_API UpdatePlanRequest()=default
UpdatePlanRequest & WithPlanId(PlanIdT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String