AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
AttributeNameAndValue.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/model/TypedAttributeValue.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 CloudDirectory {
21namespace Model {
22
30 public:
31 AWS_CLOUDDIRECTORY_API AttributeNameAndValue() = default;
32 AWS_CLOUDDIRECTORY_API AttributeNameAndValue(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
41 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
42 template <typename AttributeNameT = Aws::String>
43 void SetAttributeName(AttributeNameT&& value) {
44 m_attributeNameHasBeenSet = true;
45 m_attributeName = std::forward<AttributeNameT>(value);
46 }
47 template <typename AttributeNameT = Aws::String>
48 AttributeNameAndValue& WithAttributeName(AttributeNameT&& value) {
49 SetAttributeName(std::forward<AttributeNameT>(value));
50 return *this;
51 }
53
55
58 inline const TypedAttributeValue& GetValue() const { return m_value; }
59 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
60 template <typename ValueT = TypedAttributeValue>
61 void SetValue(ValueT&& value) {
62 m_valueHasBeenSet = true;
63 m_value = std::forward<ValueT>(value);
64 }
65 template <typename ValueT = TypedAttributeValue>
67 SetValue(std::forward<ValueT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_attributeName;
73
74 TypedAttributeValue m_value;
75 bool m_attributeNameHasBeenSet = false;
76 bool m_valueHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace CloudDirectory
81} // namespace Aws
AttributeNameAndValue & WithValue(ValueT &&value)
AWS_CLOUDDIRECTORY_API AttributeNameAndValue()=default
AWS_CLOUDDIRECTORY_API AttributeNameAndValue & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDDIRECTORY_API AttributeNameAndValue(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
AttributeNameAndValue & WithAttributeName(AttributeNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue