AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudDirectory
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CLOUDDIRECTORY_API BatchAttachObject() = default;
37 AWS_CLOUDDIRECTORY_API BatchAttachObject(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDDIRECTORY_API BatchAttachObject& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const ObjectReference& GetParentReference() const { return m_parentReference; }
47 inline bool ParentReferenceHasBeenSet() const { return m_parentReferenceHasBeenSet; }
48 template<typename ParentReferenceT = ObjectReference>
49 void SetParentReference(ParentReferenceT&& value) { m_parentReferenceHasBeenSet = true; m_parentReference = std::forward<ParentReferenceT>(value); }
50 template<typename ParentReferenceT = ObjectReference>
51 BatchAttachObject& WithParentReference(ParentReferenceT&& value) { SetParentReference(std::forward<ParentReferenceT>(value)); return *this;}
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) { m_childReferenceHasBeenSet = true; m_childReference = std::forward<ChildReferenceT>(value); }
62 template<typename ChildReferenceT = ObjectReference>
63 BatchAttachObject& WithChildReference(ChildReferenceT&& value) { SetChildReference(std::forward<ChildReferenceT>(value)); return *this;}
65
67
70 inline const Aws::String& GetLinkName() const { return m_linkName; }
71 inline bool LinkNameHasBeenSet() const { return m_linkNameHasBeenSet; }
72 template<typename LinkNameT = Aws::String>
73 void SetLinkName(LinkNameT&& value) { m_linkNameHasBeenSet = true; m_linkName = std::forward<LinkNameT>(value); }
74 template<typename LinkNameT = Aws::String>
75 BatchAttachObject& WithLinkName(LinkNameT&& value) { SetLinkName(std::forward<LinkNameT>(value)); return *this;}
77 private:
78
79 ObjectReference m_parentReference;
80 bool m_parentReferenceHasBeenSet = false;
81
82 ObjectReference m_childReference;
83 bool m_childReferenceHasBeenSet = false;
84
85 Aws::String m_linkName;
86 bool m_linkNameHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace CloudDirectory
91} // 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