AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
AttachObjectRequest.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectoryRequest.h>
8#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
9#include <aws/clouddirectory/model/ObjectReference.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CloudDirectory {
16namespace Model {
17
21 public:
22 AWS_CLOUDDIRECTORY_API AttachObjectRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "AttachObject"; }
29
30 AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override;
31
32 AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
39 inline const Aws::String& GetDirectoryArn() const { return m_directoryArn; }
40 inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; }
41 template <typename DirectoryArnT = Aws::String>
42 void SetDirectoryArn(DirectoryArnT&& value) {
43 m_directoryArnHasBeenSet = true;
44 m_directoryArn = std::forward<DirectoryArnT>(value);
45 }
46 template <typename DirectoryArnT = Aws::String>
47 AttachObjectRequest& WithDirectoryArn(DirectoryArnT&& value) {
48 SetDirectoryArn(std::forward<DirectoryArnT>(value));
49 return *this;
50 }
52
54
57 inline const ObjectReference& GetParentReference() const { return m_parentReference; }
58 inline bool ParentReferenceHasBeenSet() const { return m_parentReferenceHasBeenSet; }
59 template <typename ParentReferenceT = ObjectReference>
60 void SetParentReference(ParentReferenceT&& value) {
61 m_parentReferenceHasBeenSet = true;
62 m_parentReference = std::forward<ParentReferenceT>(value);
63 }
64 template <typename ParentReferenceT = ObjectReference>
65 AttachObjectRequest& WithParentReference(ParentReferenceT&& value) {
66 SetParentReference(std::forward<ParentReferenceT>(value));
67 return *this;
68 }
70
72
75 inline const ObjectReference& GetChildReference() const { return m_childReference; }
76 inline bool ChildReferenceHasBeenSet() const { return m_childReferenceHasBeenSet; }
77 template <typename ChildReferenceT = ObjectReference>
78 void SetChildReference(ChildReferenceT&& value) {
79 m_childReferenceHasBeenSet = true;
80 m_childReference = std::forward<ChildReferenceT>(value);
81 }
82 template <typename ChildReferenceT = ObjectReference>
83 AttachObjectRequest& WithChildReference(ChildReferenceT&& value) {
84 SetChildReference(std::forward<ChildReferenceT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetLinkName() const { return m_linkName; }
94 inline bool LinkNameHasBeenSet() const { return m_linkNameHasBeenSet; }
95 template <typename LinkNameT = Aws::String>
96 void SetLinkName(LinkNameT&& value) {
97 m_linkNameHasBeenSet = true;
98 m_linkName = std::forward<LinkNameT>(value);
99 }
100 template <typename LinkNameT = Aws::String>
101 AttachObjectRequest& WithLinkName(LinkNameT&& value) {
102 SetLinkName(std::forward<LinkNameT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_directoryArn;
108
109 ObjectReference m_parentReference;
110
111 ObjectReference m_childReference;
112
113 Aws::String m_linkName;
114 bool m_directoryArnHasBeenSet = false;
115 bool m_parentReferenceHasBeenSet = false;
116 bool m_childReferenceHasBeenSet = false;
117 bool m_linkNameHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace CloudDirectory
122} // namespace Aws
AWS_CLOUDDIRECTORY_API AttachObjectRequest()=default
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AttachObjectRequest & WithDirectoryArn(DirectoryArnT &&value)
const ObjectReference & GetChildReference() const
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
AttachObjectRequest & WithParentReference(ParentReferenceT &&value)
virtual const char * GetServiceRequestName() const override
const ObjectReference & GetParentReference() const
AttachObjectRequest & WithChildReference(ChildReferenceT &&value)
AttachObjectRequest & WithLinkName(LinkNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String