AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AttributeKeyAndValue.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/model/AttributeKey.h>
9#include <aws/clouddirectory/model/TypedAttributeValue.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudDirectory
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CLOUDDIRECTORY_API AttributeKeyAndValue();
37 AWS_CLOUDDIRECTORY_API AttributeKeyAndValue(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDDIRECTORY_API AttributeKeyAndValue& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const AttributeKey& GetKey() const{ return m_key; }
47 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
48 inline void SetKey(const AttributeKey& value) { m_keyHasBeenSet = true; m_key = value; }
49 inline void SetKey(AttributeKey&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
50 inline AttributeKeyAndValue& WithKey(const AttributeKey& value) { SetKey(value); return *this;}
51 inline AttributeKeyAndValue& WithKey(AttributeKey&& value) { SetKey(std::move(value)); return *this;}
53
55
58 inline const TypedAttributeValue& GetValue() const{ return m_value; }
59 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
60 inline void SetValue(const TypedAttributeValue& value) { m_valueHasBeenSet = true; m_value = value; }
61 inline void SetValue(TypedAttributeValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
62 inline AttributeKeyAndValue& WithValue(const TypedAttributeValue& value) { SetValue(value); return *this;}
63 inline AttributeKeyAndValue& WithValue(TypedAttributeValue&& value) { SetValue(std::move(value)); return *this;}
65 private:
66
67 AttributeKey m_key;
68 bool m_keyHasBeenSet = false;
69
70 TypedAttributeValue m_value;
71 bool m_valueHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace CloudDirectory
76} // namespace Aws
AttributeKeyAndValue & WithKey(AttributeKey &&value)
AttributeKeyAndValue & WithValue(TypedAttributeValue &&value)
AttributeKeyAndValue & WithValue(const TypedAttributeValue &value)
void SetValue(const TypedAttributeValue &value)
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDDIRECTORY_API AttributeKeyAndValue & operator=(Aws::Utils::Json::JsonView jsonValue)
AttributeKeyAndValue & WithKey(const AttributeKey &value)
AWS_CLOUDDIRECTORY_API AttributeKeyAndValue(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue