AWS SDK for C++

AWS SDK for C++ Version 1.11.924

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
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
29 public:
30 AWS_CLOUDDIRECTORY_API ObjectAttributeRange() = default;
31 AWS_CLOUDDIRECTORY_API ObjectAttributeRange(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CLOUDDIRECTORY_API ObjectAttributeRange& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const AttributeKey& GetAttributeKey() const { return m_attributeKey; }
40 inline bool AttributeKeyHasBeenSet() const { return m_attributeKeyHasBeenSet; }
41 template <typename AttributeKeyT = AttributeKey>
42 void SetAttributeKey(AttributeKeyT&& value) {
43 m_attributeKeyHasBeenSet = true;
44 m_attributeKey = std::forward<AttributeKeyT>(value);
45 }
46 template <typename AttributeKeyT = AttributeKey>
47 ObjectAttributeRange& WithAttributeKey(AttributeKeyT&& value) {
48 SetAttributeKey(std::forward<AttributeKeyT>(value));
49 return *this;
50 }
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) {
61 m_rangeHasBeenSet = true;
62 m_range = std::forward<RangeT>(value);
63 }
64 template <typename RangeT = TypedAttributeValueRange>
66 SetRange(std::forward<RangeT>(value));
67 return *this;
68 }
70 private:
71 AttributeKey m_attributeKey;
72
74 bool m_attributeKeyHasBeenSet = false;
75 bool m_rangeHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace CloudDirectory
80} // 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