AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
IndexAttachment.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/model/AttributeKeyAndValue.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudDirectory {
22namespace Model {
23
30 public:
31 AWS_CLOUDDIRECTORY_API IndexAttachment() = default;
32 AWS_CLOUDDIRECTORY_API IndexAttachment(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDDIRECTORY_API IndexAttachment& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<AttributeKeyAndValue>& GetIndexedAttributes() const { return m_indexedAttributes; }
41 inline bool IndexedAttributesHasBeenSet() const { return m_indexedAttributesHasBeenSet; }
42 template <typename IndexedAttributesT = Aws::Vector<AttributeKeyAndValue>>
43 void SetIndexedAttributes(IndexedAttributesT&& value) {
44 m_indexedAttributesHasBeenSet = true;
45 m_indexedAttributes = std::forward<IndexedAttributesT>(value);
46 }
47 template <typename IndexedAttributesT = Aws::Vector<AttributeKeyAndValue>>
48 IndexAttachment& WithIndexedAttributes(IndexedAttributesT&& value) {
49 SetIndexedAttributes(std::forward<IndexedAttributesT>(value));
50 return *this;
51 }
52 template <typename IndexedAttributesT = AttributeKeyAndValue>
53 IndexAttachment& AddIndexedAttributes(IndexedAttributesT&& value) {
54 m_indexedAttributesHasBeenSet = true;
55 m_indexedAttributes.emplace_back(std::forward<IndexedAttributesT>(value));
56 return *this;
57 }
59
61
68 inline const Aws::String& GetObjectIdentifier() const { return m_objectIdentifier; }
69 inline bool ObjectIdentifierHasBeenSet() const { return m_objectIdentifierHasBeenSet; }
70 template <typename ObjectIdentifierT = Aws::String>
71 void SetObjectIdentifier(ObjectIdentifierT&& value) {
72 m_objectIdentifierHasBeenSet = true;
73 m_objectIdentifier = std::forward<ObjectIdentifierT>(value);
74 }
75 template <typename ObjectIdentifierT = Aws::String>
76 IndexAttachment& WithObjectIdentifier(ObjectIdentifierT&& value) {
77 SetObjectIdentifier(std::forward<ObjectIdentifierT>(value));
78 return *this;
79 }
81 private:
82 Aws::Vector<AttributeKeyAndValue> m_indexedAttributes;
83
84 Aws::String m_objectIdentifier;
85 bool m_indexedAttributesHasBeenSet = false;
86 bool m_objectIdentifierHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace CloudDirectory
91} // namespace Aws
AWS_CLOUDDIRECTORY_API IndexAttachment()=default
const Aws::Vector< AttributeKeyAndValue > & GetIndexedAttributes() const
IndexAttachment & WithObjectIdentifier(ObjectIdentifierT &&value)
IndexAttachment & AddIndexedAttributes(IndexedAttributesT &&value)
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
IndexAttachment & WithIndexedAttributes(IndexedAttributesT &&value)
AWS_CLOUDDIRECTORY_API IndexAttachment(Aws::Utils::Json::JsonView jsonValue)
void SetObjectIdentifier(ObjectIdentifierT &&value)
AWS_CLOUDDIRECTORY_API IndexAttachment & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetObjectIdentifier() const
void SetIndexedAttributes(IndexedAttributesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue