AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetParentReference(const ObjectReference& value) { m_parentReferenceHasBeenSet = true; m_parentReference = value; }
49 inline void SetParentReference(ObjectReference&& value) { m_parentReferenceHasBeenSet = true; m_parentReference = std::move(value); }
50 inline BatchAttachObject& WithParentReference(const ObjectReference& value) { SetParentReference(value); return *this;}
51 inline BatchAttachObject& WithParentReference(ObjectReference&& value) { SetParentReference(std::move(value)); return *this;}
53
55
58 inline const ObjectReference& GetChildReference() const{ return m_childReference; }
59 inline bool ChildReferenceHasBeenSet() const { return m_childReferenceHasBeenSet; }
60 inline void SetChildReference(const ObjectReference& value) { m_childReferenceHasBeenSet = true; m_childReference = value; }
61 inline void SetChildReference(ObjectReference&& value) { m_childReferenceHasBeenSet = true; m_childReference = std::move(value); }
62 inline BatchAttachObject& WithChildReference(const ObjectReference& value) { SetChildReference(value); return *this;}
63 inline BatchAttachObject& WithChildReference(ObjectReference&& value) { SetChildReference(std::move(value)); return *this;}
65
67
70 inline const Aws::String& GetLinkName() const{ return m_linkName; }
71 inline bool LinkNameHasBeenSet() const { return m_linkNameHasBeenSet; }
72 inline void SetLinkName(const Aws::String& value) { m_linkNameHasBeenSet = true; m_linkName = value; }
73 inline void SetLinkName(Aws::String&& value) { m_linkNameHasBeenSet = true; m_linkName = std::move(value); }
74 inline void SetLinkName(const char* value) { m_linkNameHasBeenSet = true; m_linkName.assign(value); }
75 inline BatchAttachObject& WithLinkName(const Aws::String& value) { SetLinkName(value); return *this;}
76 inline BatchAttachObject& WithLinkName(Aws::String&& value) { SetLinkName(std::move(value)); return *this;}
77 inline BatchAttachObject& WithLinkName(const char* value) { SetLinkName(value); return *this;}
79 private:
80
81 ObjectReference m_parentReference;
82 bool m_parentReferenceHasBeenSet = false;
83
84 ObjectReference m_childReference;
85 bool m_childReferenceHasBeenSet = false;
86
87 Aws::String m_linkName;
88 bool m_linkNameHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace CloudDirectory
93} // namespace Aws
BatchAttachObject & WithLinkName(const Aws::String &value)
void SetParentReference(ObjectReference &&value)
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
BatchAttachObject & WithParentReference(ObjectReference &&value)
const ObjectReference & GetChildReference() const
void SetChildReference(const ObjectReference &value)
BatchAttachObject & WithChildReference(const ObjectReference &value)
void SetChildReference(ObjectReference &&value)
BatchAttachObject & WithLinkName(const char *value)
BatchAttachObject & WithChildReference(ObjectReference &&value)
AWS_CLOUDDIRECTORY_API BatchAttachObject(Aws::Utils::Json::JsonView jsonValue)
void SetParentReference(const ObjectReference &value)
BatchAttachObject & WithLinkName(Aws::String &&value)
const ObjectReference & GetParentReference() const
AWS_CLOUDDIRECTORY_API BatchAttachObject & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchAttachObject & WithParentReference(const ObjectReference &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue