AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
BatchAttachObject.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/model/ObjectReference.h>
9#include <aws/core/utils/memory/stl/AWSString.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
30 public:
31 AWS_CLOUDDIRECTORY_API BatchAttachObject() = default;
32 AWS_CLOUDDIRECTORY_API BatchAttachObject(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDDIRECTORY_API BatchAttachObject& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const ObjectReference& GetParentReference() const { return m_parentReference; }
41 inline bool ParentReferenceHasBeenSet() const { return m_parentReferenceHasBeenSet; }
42 template <typename ParentReferenceT = ObjectReference>
43 void SetParentReference(ParentReferenceT&& value) {
44 m_parentReferenceHasBeenSet = true;
45 m_parentReference = std::forward<ParentReferenceT>(value);
46 }
47 template <typename ParentReferenceT = ObjectReference>
48 BatchAttachObject& WithParentReference(ParentReferenceT&& value) {
49 SetParentReference(std::forward<ParentReferenceT>(value));
50 return *this;
51 }
53
55
58 inline const ObjectReference& GetChildReference() const { return m_childReference; }
59 inline bool ChildReferenceHasBeenSet() const { return m_childReferenceHasBeenSet; }
60 template <typename ChildReferenceT = ObjectReference>
61 void SetChildReference(ChildReferenceT&& value) {
62 m_childReferenceHasBeenSet = true;
63 m_childReference = std::forward<ChildReferenceT>(value);
64 }
65 template <typename ChildReferenceT = ObjectReference>
66 BatchAttachObject& WithChildReference(ChildReferenceT&& value) {
67 SetChildReference(std::forward<ChildReferenceT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetLinkName() const { return m_linkName; }
77 inline bool LinkNameHasBeenSet() const { return m_linkNameHasBeenSet; }
78 template <typename LinkNameT = Aws::String>
79 void SetLinkName(LinkNameT&& value) {
80 m_linkNameHasBeenSet = true;
81 m_linkName = std::forward<LinkNameT>(value);
82 }
83 template <typename LinkNameT = Aws::String>
84 BatchAttachObject& WithLinkName(LinkNameT&& value) {
85 SetLinkName(std::forward<LinkNameT>(value));
86 return *this;
87 }
89 private:
90 ObjectReference m_parentReference;
91
92 ObjectReference m_childReference;
93
94 Aws::String m_linkName;
95 bool m_parentReferenceHasBeenSet = false;
96 bool m_childReferenceHasBeenSet = false;
97 bool m_linkNameHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace CloudDirectory
102} // namespace Aws
BatchAttachObject & WithParentReference(ParentReferenceT &&value)
AWS_CLOUDDIRECTORY_API BatchAttachObject()=default
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
BatchAttachObject & WithLinkName(LinkNameT &&value)
const ObjectReference & GetChildReference() const
BatchAttachObject & WithChildReference(ChildReferenceT &&value)
AWS_CLOUDDIRECTORY_API BatchAttachObject(Aws::Utils::Json::JsonView jsonValue)
void SetChildReference(ChildReferenceT &&value)
const ObjectReference & GetParentReference() const
AWS_CLOUDDIRECTORY_API BatchAttachObject & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetParentReference(ParentReferenceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue