AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDirectoryArn(const Aws::String& value) { m_directoryArnHasBeenSet = true; m_directoryArn = value; }
46 inline void SetDirectoryArn(Aws::String&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = std::move(value); }
47 inline void SetDirectoryArn(const char* value) { m_directoryArnHasBeenSet = true; m_directoryArn.assign(value); }
48 inline AttachObjectRequest& WithDirectoryArn(const Aws::String& value) { SetDirectoryArn(value); return *this;}
49 inline AttachObjectRequest& WithDirectoryArn(Aws::String&& value) { SetDirectoryArn(std::move(value)); return *this;}
50 inline AttachObjectRequest& WithDirectoryArn(const char* value) { SetDirectoryArn(value); return *this;}
52
54
57 inline const ObjectReference& GetParentReference() const{ return m_parentReference; }
58 inline bool ParentReferenceHasBeenSet() const { return m_parentReferenceHasBeenSet; }
59 inline void SetParentReference(const ObjectReference& value) { m_parentReferenceHasBeenSet = true; m_parentReference = value; }
60 inline void SetParentReference(ObjectReference&& value) { m_parentReferenceHasBeenSet = true; m_parentReference = std::move(value); }
61 inline AttachObjectRequest& WithParentReference(const ObjectReference& value) { SetParentReference(value); return *this;}
62 inline AttachObjectRequest& WithParentReference(ObjectReference&& value) { SetParentReference(std::move(value)); return *this;}
64
66
69 inline const ObjectReference& GetChildReference() const{ return m_childReference; }
70 inline bool ChildReferenceHasBeenSet() const { return m_childReferenceHasBeenSet; }
71 inline void SetChildReference(const ObjectReference& value) { m_childReferenceHasBeenSet = true; m_childReference = value; }
72 inline void SetChildReference(ObjectReference&& value) { m_childReferenceHasBeenSet = true; m_childReference = std::move(value); }
73 inline AttachObjectRequest& WithChildReference(const ObjectReference& value) { SetChildReference(value); return *this;}
74 inline AttachObjectRequest& WithChildReference(ObjectReference&& value) { SetChildReference(std::move(value)); return *this;}
76
78
81 inline const Aws::String& GetLinkName() const{ return m_linkName; }
82 inline bool LinkNameHasBeenSet() const { return m_linkNameHasBeenSet; }
83 inline void SetLinkName(const Aws::String& value) { m_linkNameHasBeenSet = true; m_linkName = value; }
84 inline void SetLinkName(Aws::String&& value) { m_linkNameHasBeenSet = true; m_linkName = std::move(value); }
85 inline void SetLinkName(const char* value) { m_linkNameHasBeenSet = true; m_linkName.assign(value); }
86 inline AttachObjectRequest& WithLinkName(const Aws::String& value) { SetLinkName(value); return *this;}
87 inline AttachObjectRequest& WithLinkName(Aws::String&& value) { SetLinkName(std::move(value)); return *this;}
88 inline AttachObjectRequest& WithLinkName(const char* value) { SetLinkName(value); return *this;}
90 private:
91
92 Aws::String m_directoryArn;
93 bool m_directoryArnHasBeenSet = false;
94
95 ObjectReference m_parentReference;
96 bool m_parentReferenceHasBeenSet = false;
97
98 ObjectReference m_childReference;
99 bool m_childReferenceHasBeenSet = false;
100
101 Aws::String m_linkName;
102 bool m_linkNameHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace CloudDirectory
107} // namespace Aws
AttachObjectRequest & WithLinkName(const Aws::String &value)
AttachObjectRequest & WithParentReference(ObjectReference &&value)
AttachObjectRequest & WithLinkName(Aws::String &&value)
void SetChildReference(const ObjectReference &value)
AttachObjectRequest & WithParentReference(const ObjectReference &value)
AttachObjectRequest & WithDirectoryArn(const Aws::String &value)
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AttachObjectRequest & WithLinkName(const char *value)
const ObjectReference & GetChildReference() const
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
AttachObjectRequest & WithChildReference(ObjectReference &&value)
AttachObjectRequest & WithChildReference(const ObjectReference &value)
AttachObjectRequest & WithDirectoryArn(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetParentReference(const ObjectReference &value)
AttachObjectRequest & WithDirectoryArn(const char *value)
const ObjectReference & GetParentReference() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String