AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
CreatePlanRequest.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/UUID.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace AppMonetization {
18namespace Model {
19
29 public:
30 AWS_APPMONETIZATION_API CreatePlanRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreatePlan"; }
37
38 AWS_APPMONETIZATION_API Aws::String SerializePayload() const override;
39
41
44 inline const Aws::String& GetAppId() const { return m_appId; }
45 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
46 template <typename AppIdT = Aws::String>
47 void SetAppId(AppIdT&& value) {
48 m_appIdHasBeenSet = true;
49 m_appId = std::forward<AppIdT>(value);
50 }
51 template <typename AppIdT = Aws::String>
52 CreatePlanRequest& WithAppId(AppIdT&& value) {
53 SetAppId(std::forward<AppIdT>(value));
54 return *this;
55 }
57
59
64 inline const PlanDefinition& GetDefinition() const { return m_definition; }
65 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
66 template <typename DefinitionT = PlanDefinition>
67 void SetDefinition(DefinitionT&& value) {
68 m_definitionHasBeenSet = true;
69 m_definition = std::forward<DefinitionT>(value);
70 }
71 template <typename DefinitionT = PlanDefinition>
72 CreatePlanRequest& WithDefinition(DefinitionT&& value) {
73 SetDefinition(std::forward<DefinitionT>(value));
74 return *this;
75 }
77
79
84 inline const Aws::String& GetClientToken() const { return m_clientToken; }
85 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
86 template <typename ClientTokenT = Aws::String>
87 void SetClientToken(ClientTokenT&& value) {
88 m_clientTokenHasBeenSet = true;
89 m_clientToken = std::forward<ClientTokenT>(value);
90 }
91 template <typename ClientTokenT = Aws::String>
92 CreatePlanRequest& WithClientToken(ClientTokenT&& value) {
93 SetClientToken(std::forward<ClientTokenT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
104 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
105 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
106 void SetTags(TagsT&& value) {
107 m_tagsHasBeenSet = true;
108 m_tags = std::forward<TagsT>(value);
109 }
110 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
111 CreatePlanRequest& WithTags(TagsT&& value) {
112 SetTags(std::forward<TagsT>(value));
113 return *this;
114 }
115 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
116 CreatePlanRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
117 m_tagsHasBeenSet = true;
118 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_appId;
124
125 PlanDefinition m_definition;
126
128
130 bool m_appIdHasBeenSet = false;
131 bool m_definitionHasBeenSet = false;
132 bool m_clientTokenHasBeenSet = true;
133 bool m_tagsHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace AppMonetization
138} // namespace Aws
CreatePlanRequest & WithDefinition(DefinitionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreatePlanRequest & WithTags(TagsT &&value)
CreatePlanRequest & WithClientToken(ClientTokenT &&value)
AWS_APPMONETIZATION_API CreatePlanRequest()=default
CreatePlanRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
CreatePlanRequest & WithAppId(AppIdT &&value)
virtual const char * GetServiceRequestName() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String