AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
RequestContext.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/UsageSource.h>
9#include <aws/core/utils/memory/stl/AWSMap.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
32 public:
33 AWS_APPMONETIZATION_API RequestContext() = default;
34 AWS_APPMONETIZATION_API RequestContext(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPMONETIZATION_API RequestContext& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetNonAwsCostsNote() const { return m_nonAwsCostsNote; }
44 inline bool NonAwsCostsNoteHasBeenSet() const { return m_nonAwsCostsNoteHasBeenSet; }
45 template <typename NonAwsCostsNoteT = Aws::String>
46 void SetNonAwsCostsNote(NonAwsCostsNoteT&& value) {
47 m_nonAwsCostsNoteHasBeenSet = true;
48 m_nonAwsCostsNote = std::forward<NonAwsCostsNoteT>(value);
49 }
50 template <typename NonAwsCostsNoteT = Aws::String>
51 RequestContext& WithNonAwsCostsNote(NonAwsCostsNoteT&& value) {
52 SetNonAwsCostsNote(std::forward<NonAwsCostsNoteT>(value));
53 return *this;
54 }
56
58
65 inline const Aws::String& GetValueBasis() const { return m_valueBasis; }
66 inline bool ValueBasisHasBeenSet() const { return m_valueBasisHasBeenSet; }
67 template <typename ValueBasisT = Aws::String>
68 void SetValueBasis(ValueBasisT&& value) {
69 m_valueBasisHasBeenSet = true;
70 m_valueBasis = std::forward<ValueBasisT>(value);
71 }
72 template <typename ValueBasisT = Aws::String>
73 RequestContext& WithValueBasis(ValueBasisT&& value) {
74 SetValueBasis(std::forward<ValueBasisT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetExpectedUsersBasis() const { return m_expectedUsersBasis; }
85 inline bool ExpectedUsersBasisHasBeenSet() const { return m_expectedUsersBasisHasBeenSet; }
86 template <typename ExpectedUsersBasisT = Aws::String>
87 void SetExpectedUsersBasis(ExpectedUsersBasisT&& value) {
88 m_expectedUsersBasisHasBeenSet = true;
89 m_expectedUsersBasis = std::forward<ExpectedUsersBasisT>(value);
90 }
91 template <typename ExpectedUsersBasisT = Aws::String>
92 RequestContext& WithExpectedUsersBasis(ExpectedUsersBasisT&& value) {
93 SetExpectedUsersBasis(std::forward<ExpectedUsersBasisT>(value));
94 return *this;
95 }
97
99
104 inline const Aws::Map<Aws::String, UsageSource>& GetUsageSources() const { return m_usageSources; }
105 inline bool UsageSourcesHasBeenSet() const { return m_usageSourcesHasBeenSet; }
106 template <typename UsageSourcesT = Aws::Map<Aws::String, UsageSource>>
107 void SetUsageSources(UsageSourcesT&& value) {
108 m_usageSourcesHasBeenSet = true;
109 m_usageSources = std::forward<UsageSourcesT>(value);
110 }
111 template <typename UsageSourcesT = Aws::Map<Aws::String, UsageSource>>
112 RequestContext& WithUsageSources(UsageSourcesT&& value) {
113 SetUsageSources(std::forward<UsageSourcesT>(value));
114 return *this;
115 }
117 m_usageSourcesHasBeenSet = true;
118 m_usageSources.emplace(key, value);
119 return *this;
120 }
122
124
128 inline const Aws::Map<Aws::String, Aws::String>& GetCustomerTypeDescriptions() const { return m_customerTypeDescriptions; }
129 inline bool CustomerTypeDescriptionsHasBeenSet() const { return m_customerTypeDescriptionsHasBeenSet; }
130 template <typename CustomerTypeDescriptionsT = Aws::Map<Aws::String, Aws::String>>
131 void SetCustomerTypeDescriptions(CustomerTypeDescriptionsT&& value) {
132 m_customerTypeDescriptionsHasBeenSet = true;
133 m_customerTypeDescriptions = std::forward<CustomerTypeDescriptionsT>(value);
134 }
135 template <typename CustomerTypeDescriptionsT = Aws::Map<Aws::String, Aws::String>>
136 RequestContext& WithCustomerTypeDescriptions(CustomerTypeDescriptionsT&& value) {
137 SetCustomerTypeDescriptions(std::forward<CustomerTypeDescriptionsT>(value));
138 return *this;
139 }
140 template <typename CustomerTypeDescriptionsKeyT = Aws::String, typename CustomerTypeDescriptionsValueT = Aws::String>
141 RequestContext& AddCustomerTypeDescriptions(CustomerTypeDescriptionsKeyT&& key, CustomerTypeDescriptionsValueT&& value) {
142 m_customerTypeDescriptionsHasBeenSet = true;
143 m_customerTypeDescriptions.emplace(std::forward<CustomerTypeDescriptionsKeyT>(key),
144 std::forward<CustomerTypeDescriptionsValueT>(value));
145 return *this;
146 }
148 private:
149 Aws::String m_nonAwsCostsNote;
150
151 Aws::String m_valueBasis;
152
153 Aws::String m_expectedUsersBasis;
154
156
157 Aws::Map<Aws::String, Aws::String> m_customerTypeDescriptions;
158 bool m_nonAwsCostsNoteHasBeenSet = false;
159 bool m_valueBasisHasBeenSet = false;
160 bool m_expectedUsersBasisHasBeenSet = false;
161 bool m_usageSourcesHasBeenSet = false;
162 bool m_customerTypeDescriptionsHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace AppMonetization
167} // namespace Aws
const Aws::String & GetNonAwsCostsNote() const
AWS_APPMONETIZATION_API RequestContext & operator=(Aws::Utils::Json::JsonView jsonValue)
RequestContext & WithNonAwsCostsNote(NonAwsCostsNoteT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomerTypeDescriptions() const
void SetCustomerTypeDescriptions(CustomerTypeDescriptionsT &&value)
RequestContext & WithValueBasis(ValueBasisT &&value)
const Aws::String & GetValueBasis() const
AWS_APPMONETIZATION_API RequestContext(Aws::Utils::Json::JsonView jsonValue)
RequestContext & AddCustomerTypeDescriptions(CustomerTypeDescriptionsKeyT &&key, CustomerTypeDescriptionsValueT &&value)
void SetUsageSources(UsageSourcesT &&value)
RequestContext & WithCustomerTypeDescriptions(CustomerTypeDescriptionsT &&value)
void SetExpectedUsersBasis(ExpectedUsersBasisT &&value)
const Aws::String & GetExpectedUsersBasis() const
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
RequestContext & WithExpectedUsersBasis(ExpectedUsersBasisT &&value)
void SetNonAwsCostsNote(NonAwsCostsNoteT &&value)
RequestContext & AddUsageSources(Aws::String key, UsageSource value)
RequestContext & WithUsageSources(UsageSourcesT &&value)
const Aws::Map< Aws::String, UsageSource > & GetUsageSources() const
AWS_APPMONETIZATION_API RequestContext()=default
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
Aws::Utils::Json::JsonValue JsonValue