AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
BatchDetachFromIndex.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/model/ObjectReference.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CloudDirectory {
20namespace Model {
21
30 public:
31 AWS_CLOUDDIRECTORY_API BatchDetachFromIndex() = default;
32 AWS_CLOUDDIRECTORY_API BatchDetachFromIndex(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDDIRECTORY_API BatchDetachFromIndex& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const ObjectReference& GetIndexReference() const { return m_indexReference; }
41 inline bool IndexReferenceHasBeenSet() const { return m_indexReferenceHasBeenSet; }
42 template <typename IndexReferenceT = ObjectReference>
43 void SetIndexReference(IndexReferenceT&& value) {
44 m_indexReferenceHasBeenSet = true;
45 m_indexReference = std::forward<IndexReferenceT>(value);
46 }
47 template <typename IndexReferenceT = ObjectReference>
48 BatchDetachFromIndex& WithIndexReference(IndexReferenceT&& value) {
49 SetIndexReference(std::forward<IndexReferenceT>(value));
50 return *this;
51 }
53
55
58 inline const ObjectReference& GetTargetReference() const { return m_targetReference; }
59 inline bool TargetReferenceHasBeenSet() const { return m_targetReferenceHasBeenSet; }
60 template <typename TargetReferenceT = ObjectReference>
61 void SetTargetReference(TargetReferenceT&& value) {
62 m_targetReferenceHasBeenSet = true;
63 m_targetReference = std::forward<TargetReferenceT>(value);
64 }
65 template <typename TargetReferenceT = ObjectReference>
66 BatchDetachFromIndex& WithTargetReference(TargetReferenceT&& value) {
67 SetTargetReference(std::forward<TargetReferenceT>(value));
68 return *this;
69 }
71 private:
72 ObjectReference m_indexReference;
73
74 ObjectReference m_targetReference;
75 bool m_indexReferenceHasBeenSet = false;
76 bool m_targetReferenceHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace CloudDirectory
81} // namespace Aws
AWS_CLOUDDIRECTORY_API BatchDetachFromIndex & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDDIRECTORY_API BatchDetachFromIndex(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
BatchDetachFromIndex & WithTargetReference(TargetReferenceT &&value)
BatchDetachFromIndex & WithIndexReference(IndexReferenceT &&value)
AWS_CLOUDDIRECTORY_API BatchDetachFromIndex()=default
Aws::Utils::Json::JsonValue JsonValue