AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
IndexAttachment.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/clouddirectory/model/AttributeKeyAndValue.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CloudDirectory
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_CLOUDDIRECTORY_API IndexAttachment() = default;
37 AWS_CLOUDDIRECTORY_API IndexAttachment(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDDIRECTORY_API IndexAttachment& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<AttributeKeyAndValue>& GetIndexedAttributes() const { return m_indexedAttributes; }
47 inline bool IndexedAttributesHasBeenSet() const { return m_indexedAttributesHasBeenSet; }
48 template<typename IndexedAttributesT = Aws::Vector<AttributeKeyAndValue>>
49 void SetIndexedAttributes(IndexedAttributesT&& value) { m_indexedAttributesHasBeenSet = true; m_indexedAttributes = std::forward<IndexedAttributesT>(value); }
50 template<typename IndexedAttributesT = Aws::Vector<AttributeKeyAndValue>>
51 IndexAttachment& WithIndexedAttributes(IndexedAttributesT&& value) { SetIndexedAttributes(std::forward<IndexedAttributesT>(value)); return *this;}
52 template<typename IndexedAttributesT = AttributeKeyAndValue>
53 IndexAttachment& AddIndexedAttributes(IndexedAttributesT&& value) { m_indexedAttributesHasBeenSet = true; m_indexedAttributes.emplace_back(std::forward<IndexedAttributesT>(value)); return *this; }
55
57
64 inline const Aws::String& GetObjectIdentifier() const { return m_objectIdentifier; }
65 inline bool ObjectIdentifierHasBeenSet() const { return m_objectIdentifierHasBeenSet; }
66 template<typename ObjectIdentifierT = Aws::String>
67 void SetObjectIdentifier(ObjectIdentifierT&& value) { m_objectIdentifierHasBeenSet = true; m_objectIdentifier = std::forward<ObjectIdentifierT>(value); }
68 template<typename ObjectIdentifierT = Aws::String>
69 IndexAttachment& WithObjectIdentifier(ObjectIdentifierT&& value) { SetObjectIdentifier(std::forward<ObjectIdentifierT>(value)); return *this;}
71 private:
72
73 Aws::Vector<AttributeKeyAndValue> m_indexedAttributes;
74 bool m_indexedAttributesHasBeenSet = false;
75
76 Aws::String m_objectIdentifier;
77 bool m_objectIdentifierHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace CloudDirectory
82} // 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