AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ObjectAttributeRange.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/model/AttributeKey.h>
9#include <aws/clouddirectory/model/TypedAttributeValueRange.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
33 {
34 public:
35 AWS_CLOUDDIRECTORY_API ObjectAttributeRange() = default;
36 AWS_CLOUDDIRECTORY_API ObjectAttributeRange(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CLOUDDIRECTORY_API ObjectAttributeRange& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const AttributeKey& GetAttributeKey() const { return m_attributeKey; }
46 inline bool AttributeKeyHasBeenSet() const { return m_attributeKeyHasBeenSet; }
47 template<typename AttributeKeyT = AttributeKey>
48 void SetAttributeKey(AttributeKeyT&& value) { m_attributeKeyHasBeenSet = true; m_attributeKey = std::forward<AttributeKeyT>(value); }
49 template<typename AttributeKeyT = AttributeKey>
50 ObjectAttributeRange& WithAttributeKey(AttributeKeyT&& value) { SetAttributeKey(std::forward<AttributeKeyT>(value)); return *this;}
52
54
57 inline const TypedAttributeValueRange& GetRange() const { return m_range; }
58 inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; }
59 template<typename RangeT = TypedAttributeValueRange>
60 void SetRange(RangeT&& value) { m_rangeHasBeenSet = true; m_range = std::forward<RangeT>(value); }
61 template<typename RangeT = TypedAttributeValueRange>
62 ObjectAttributeRange& WithRange(RangeT&& value) { SetRange(std::forward<RangeT>(value)); return *this;}
64 private:
65
66 AttributeKey m_attributeKey;
67 bool m_attributeKeyHasBeenSet = false;
68
70 bool m_rangeHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace CloudDirectory
75} // namespace Aws
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
ObjectAttributeRange & WithAttributeKey(AttributeKeyT &&value)
AWS_CLOUDDIRECTORY_API ObjectAttributeRange()=default
AWS_CLOUDDIRECTORY_API ObjectAttributeRange(Aws::Utils::Json::JsonView jsonValue)
ObjectAttributeRange & WithRange(RangeT &&value)
AWS_CLOUDDIRECTORY_API ObjectAttributeRange & operator=(Aws::Utils::Json::JsonView jsonValue)
const TypedAttributeValueRange & GetRange() const
Aws::Utils::Json::JsonValue JsonValue