AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
AttributeValue.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pricing/Pricing_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Pricing {
20namespace Model {
21
30 public:
31 AWS_PRICING_API AttributeValue() = default;
32 AWS_PRICING_API AttributeValue(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PRICING_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetValue() const { return m_value; }
41 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
42 template <typename ValueT = Aws::String>
43 void SetValue(ValueT&& value) {
44 m_valueHasBeenSet = true;
45 m_value = std::forward<ValueT>(value);
46 }
47 template <typename ValueT = Aws::String>
48 AttributeValue& WithValue(ValueT&& value) {
49 SetValue(std::forward<ValueT>(value));
50 return *this;
51 }
53 private:
54 Aws::String m_value;
55 bool m_valueHasBeenSet = false;
56};
57
58} // namespace Model
59} // namespace Pricing
60} // namespace Aws
AttributeValue & WithValue(ValueT &&value)
AWS_PRICING_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetValue() const
AWS_PRICING_API AttributeValue()=default
AWS_PRICING_API AttributeValue(Aws::Utils::Json::JsonView jsonValue)
AWS_PRICING_API AttributeValue & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue