AWS SDK for C++

AWS SDK for C++ Version 1.11.852

Loading...
Searching...
No Matches
BillingPreferenceForKey.h
1
6#pragma once
7#include <aws/billing/Billing_EXPORTS.h>
8#include <aws/billing/model/PreferenceValue.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Billing {
21namespace Model {
22
30 public:
31 AWS_BILLING_API BillingPreferenceForKey() = default;
34 AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetKey() const { return m_key; }
41 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
42 template <typename KeyT = Aws::String>
43 void SetKey(KeyT&& value) {
44 m_keyHasBeenSet = true;
45 m_key = std::forward<KeyT>(value);
46 }
47 template <typename KeyT = Aws::String>
49 SetKey(std::forward<KeyT>(value));
50 return *this;
51 }
53
55
59 inline PreferenceValue GetValue() const { return m_value; }
60 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
61 inline void SetValue(PreferenceValue value) {
62 m_valueHasBeenSet = true;
63 m_value = value;
64 }
66 SetValue(value);
67 return *this;
68 }
70 private:
71 Aws::String m_key;
72
74 bool m_keyHasBeenSet = false;
75 bool m_valueHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Billing
80} // namespace Aws
AWS_BILLING_API BillingPreferenceForKey()=default
BillingPreferenceForKey & WithValue(PreferenceValue value)
BillingPreferenceForKey & WithKey(KeyT &&value)
AWS_BILLING_API BillingPreferenceForKey(Aws::Utils::Json::JsonView jsonValue)
AWS_BILLING_API BillingPreferenceForKey & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue