AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
OneTimePrice.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/OneTimePriceDefinition.h>
9#include <aws/appmonetization/model/PlanStage.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppMonetization {
22namespace Model {
23
31 public:
32 AWS_APPMONETIZATION_API OneTimePrice() = default;
33 AWS_APPMONETIZATION_API OneTimePrice(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPMONETIZATION_API OneTimePrice& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
49 OneTimePrice& WithArn(ArnT&& value) {
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAppId() const { return m_appId; }
60 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
61 template <typename AppIdT = Aws::String>
62 void SetAppId(AppIdT&& value) {
63 m_appIdHasBeenSet = true;
64 m_appId = std::forward<AppIdT>(value);
65 }
66 template <typename AppIdT = Aws::String>
67 OneTimePrice& WithAppId(AppIdT&& value) {
68 SetAppId(std::forward<AppIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetOneTimePriceId() const { return m_oneTimePriceId; }
78 inline bool OneTimePriceIdHasBeenSet() const { return m_oneTimePriceIdHasBeenSet; }
79 template <typename OneTimePriceIdT = Aws::String>
80 void SetOneTimePriceId(OneTimePriceIdT&& value) {
81 m_oneTimePriceIdHasBeenSet = true;
82 m_oneTimePriceId = std::forward<OneTimePriceIdT>(value);
83 }
84 template <typename OneTimePriceIdT = Aws::String>
85 OneTimePrice& WithOneTimePriceId(OneTimePriceIdT&& value) {
86 SetOneTimePriceId(std::forward<OneTimePriceIdT>(value));
87 return *this;
88 }
90
92
96 inline const OneTimePriceDefinition& GetDefinition() const { return m_definition; }
97 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
98 template <typename DefinitionT = OneTimePriceDefinition>
99 void SetDefinition(DefinitionT&& value) {
100 m_definitionHasBeenSet = true;
101 m_definition = std::forward<DefinitionT>(value);
102 }
103 template <typename DefinitionT = OneTimePriceDefinition>
104 OneTimePrice& WithDefinition(DefinitionT&& value) {
105 SetDefinition(std::forward<DefinitionT>(value));
106 return *this;
107 }
109
111
114 inline PlanStage GetStage() const { return m_stage; }
115 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
116 inline void SetStage(PlanStage value) {
117 m_stageHasBeenSet = true;
118 m_stage = value;
119 }
121 SetStage(value);
122 return *this;
123 }
125 private:
126 Aws::String m_arn;
127
128 Aws::String m_appId;
129
130 Aws::String m_oneTimePriceId;
131
132 OneTimePriceDefinition m_definition;
133
135 bool m_arnHasBeenSet = false;
136 bool m_appIdHasBeenSet = false;
137 bool m_oneTimePriceIdHasBeenSet = false;
138 bool m_definitionHasBeenSet = false;
139 bool m_stageHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace AppMonetization
144} // namespace Aws
void SetDefinition(DefinitionT &&value)
AWS_APPMONETIZATION_API OneTimePrice(Aws::Utils::Json::JsonView jsonValue)
OneTimePrice & WithOneTimePriceId(OneTimePriceIdT &&value)
OneTimePrice & WithAppId(AppIdT &&value)
void SetOneTimePriceId(OneTimePriceIdT &&value)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
const OneTimePriceDefinition & GetDefinition() const
const Aws::String & GetOneTimePriceId() const
OneTimePrice & WithArn(ArnT &&value)
OneTimePrice & WithStage(PlanStage value)
const Aws::String & GetAppId() const
AWS_APPMONETIZATION_API OneTimePrice & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
OneTimePrice & WithDefinition(DefinitionT &&value)
AWS_APPMONETIZATION_API OneTimePrice()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue