AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
UpdateOneTimePriceRequest.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/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace AppMonetization {
17namespace Model {
18
25 public:
26 AWS_APPMONETIZATION_API UpdateOneTimePriceRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateOneTimePrice"; }
33
34 AWS_APPMONETIZATION_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetAppId() const { return m_appId; }
41 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
42 template <typename AppIdT = Aws::String>
43 void SetAppId(AppIdT&& value) {
44 m_appIdHasBeenSet = true;
45 m_appId = std::forward<AppIdT>(value);
46 }
47 template <typename AppIdT = Aws::String>
49 SetAppId(std::forward<AppIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetOneTimePriceId() const { return m_oneTimePriceId; }
59 inline bool OneTimePriceIdHasBeenSet() const { return m_oneTimePriceIdHasBeenSet; }
60 template <typename OneTimePriceIdT = Aws::String>
61 void SetOneTimePriceId(OneTimePriceIdT&& value) {
62 m_oneTimePriceIdHasBeenSet = true;
63 m_oneTimePriceId = std::forward<OneTimePriceIdT>(value);
64 }
65 template <typename OneTimePriceIdT = Aws::String>
67 SetOneTimePriceId(std::forward<OneTimePriceIdT>(value));
68 return *this;
69 }
71
73
77 inline const OneTimePriceDefinition& GetDefinition() const { return m_definition; }
78 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
79 template <typename DefinitionT = OneTimePriceDefinition>
80 void SetDefinition(DefinitionT&& value) {
81 m_definitionHasBeenSet = true;
82 m_definition = std::forward<DefinitionT>(value);
83 }
84 template <typename DefinitionT = OneTimePriceDefinition>
86 SetDefinition(std::forward<DefinitionT>(value));
87 return *this;
88 }
90
92
97 inline const Aws::String& GetClientToken() const { return m_clientToken; }
98 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
99 template <typename ClientTokenT = Aws::String>
100 void SetClientToken(ClientTokenT&& value) {
101 m_clientTokenHasBeenSet = true;
102 m_clientToken = std::forward<ClientTokenT>(value);
103 }
104 template <typename ClientTokenT = Aws::String>
106 SetClientToken(std::forward<ClientTokenT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_appId;
112
113 Aws::String m_oneTimePriceId;
114
115 OneTimePriceDefinition m_definition;
116
118 bool m_appIdHasBeenSet = false;
119 bool m_oneTimePriceIdHasBeenSet = false;
120 bool m_definitionHasBeenSet = false;
121 bool m_clientTokenHasBeenSet = true;
122};
123
124} // namespace Model
125} // namespace AppMonetization
126} // namespace Aws
UpdateOneTimePriceRequest & WithOneTimePriceId(OneTimePriceIdT &&value)
UpdateOneTimePriceRequest & WithClientToken(ClientTokenT &&value)
UpdateOneTimePriceRequest & WithDefinition(DefinitionT &&value)
AWS_APPMONETIZATION_API UpdateOneTimePriceRequest()=default
UpdateOneTimePriceRequest & WithAppId(AppIdT &&value)
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String