AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
CreateOneTimePriceRequest.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetizationRequest.h>
8#include <aws/appmonetization/AppMonetization_EXPORTS.h>
9#include <aws/appmonetization/model/OneTimePriceDefinition.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
26 public:
27 AWS_APPMONETIZATION_API CreateOneTimePriceRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateOneTimePrice"; }
34
35 AWS_APPMONETIZATION_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetAppId() const { return m_appId; }
42 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
43 template <typename AppIdT = Aws::String>
44 void SetAppId(AppIdT&& value) {
45 m_appIdHasBeenSet = true;
46 m_appId = std::forward<AppIdT>(value);
47 }
48 template <typename AppIdT = Aws::String>
50 SetAppId(std::forward<AppIdT>(value));
51 return *this;
52 }
54
56
60 inline const OneTimePriceDefinition& GetDefinition() const { return m_definition; }
61 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
62 template <typename DefinitionT = OneTimePriceDefinition>
63 void SetDefinition(DefinitionT&& value) {
64 m_definitionHasBeenSet = true;
65 m_definition = std::forward<DefinitionT>(value);
66 }
67 template <typename DefinitionT = OneTimePriceDefinition>
69 SetDefinition(std::forward<DefinitionT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetClientToken() const { return m_clientToken; }
81 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
82 template <typename ClientTokenT = Aws::String>
83 void SetClientToken(ClientTokenT&& value) {
84 m_clientTokenHasBeenSet = true;
85 m_clientToken = std::forward<ClientTokenT>(value);
86 }
87 template <typename ClientTokenT = Aws::String>
89 SetClientToken(std::forward<ClientTokenT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
100 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
101 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
102 void SetTags(TagsT&& value) {
103 m_tagsHasBeenSet = true;
104 m_tags = std::forward<TagsT>(value);
105 }
106 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
108 SetTags(std::forward<TagsT>(value));
109 return *this;
110 }
111 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
112 CreateOneTimePriceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
113 m_tagsHasBeenSet = true;
114 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_appId;
120
121 OneTimePriceDefinition m_definition;
122
124
126 bool m_appIdHasBeenSet = false;
127 bool m_definitionHasBeenSet = false;
128 bool m_clientTokenHasBeenSet = true;
129 bool m_tagsHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace AppMonetization
134} // namespace Aws
CreateOneTimePriceRequest & WithAppId(AppIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
CreateOneTimePriceRequest & WithDefinition(DefinitionT &&value)
CreateOneTimePriceRequest & WithClientToken(ClientTokenT &&value)
AWS_APPMONETIZATION_API CreateOneTimePriceRequest()=default
CreateOneTimePriceRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
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