AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AttachObjectRequest.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/CloudDirectoryRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/clouddirectory/model/ObjectReference.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CloudDirectory
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CLOUDDIRECTORY_API AttachObjectRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "AttachObject"; }
32
33 AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override;
34
35 AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
43 inline const Aws::String& GetDirectoryArn() const { return m_directoryArn; }
44 inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; }
45 template<typename DirectoryArnT = Aws::String>
46 void SetDirectoryArn(DirectoryArnT&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = std::forward<DirectoryArnT>(value); }
47 template<typename DirectoryArnT = Aws::String>
48 AttachObjectRequest& WithDirectoryArn(DirectoryArnT&& value) { SetDirectoryArn(std::forward<DirectoryArnT>(value)); return *this;}
50
52
55 inline const ObjectReference& GetParentReference() const { return m_parentReference; }
56 inline bool ParentReferenceHasBeenSet() const { return m_parentReferenceHasBeenSet; }
57 template<typename ParentReferenceT = ObjectReference>
58 void SetParentReference(ParentReferenceT&& value) { m_parentReferenceHasBeenSet = true; m_parentReference = std::forward<ParentReferenceT>(value); }
59 template<typename ParentReferenceT = ObjectReference>
60 AttachObjectRequest& WithParentReference(ParentReferenceT&& value) { SetParentReference(std::forward<ParentReferenceT>(value)); return *this;}
62
64
67 inline const ObjectReference& GetChildReference() const { return m_childReference; }
68 inline bool ChildReferenceHasBeenSet() const { return m_childReferenceHasBeenSet; }
69 template<typename ChildReferenceT = ObjectReference>
70 void SetChildReference(ChildReferenceT&& value) { m_childReferenceHasBeenSet = true; m_childReference = std::forward<ChildReferenceT>(value); }
71 template<typename ChildReferenceT = ObjectReference>
72 AttachObjectRequest& WithChildReference(ChildReferenceT&& value) { SetChildReference(std::forward<ChildReferenceT>(value)); return *this;}
74
76
79 inline const Aws::String& GetLinkName() const { return m_linkName; }
80 inline bool LinkNameHasBeenSet() const { return m_linkNameHasBeenSet; }
81 template<typename LinkNameT = Aws::String>
82 void SetLinkName(LinkNameT&& value) { m_linkNameHasBeenSet = true; m_linkName = std::forward<LinkNameT>(value); }
83 template<typename LinkNameT = Aws::String>
84 AttachObjectRequest& WithLinkName(LinkNameT&& value) { SetLinkName(std::forward<LinkNameT>(value)); return *this;}
86 private:
87
88 Aws::String m_directoryArn;
89 bool m_directoryArnHasBeenSet = false;
90
91 ObjectReference m_parentReference;
92 bool m_parentReferenceHasBeenSet = false;
93
94 ObjectReference m_childReference;
95 bool m_childReferenceHasBeenSet = false;
96
97 Aws::String m_linkName;
98 bool m_linkNameHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace CloudDirectory
103} // 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