AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DetachObjectRequest.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 DetachObjectRequest();
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 "DetachObject"; }
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 DetachObjectRequest& WithDirectoryArn(const Aws::String& value) { SetDirectoryArn(value); return *this;}
49 inline DetachObjectRequest& WithDirectoryArn(Aws::String&& value) { SetDirectoryArn(std::move(value)); return *this;}
50 inline DetachObjectRequest& WithDirectoryArn(const char* value) { SetDirectoryArn(value); return *this;}
52
54
58 inline const ObjectReference& GetParentReference() const{ return m_parentReference; }
59 inline bool ParentReferenceHasBeenSet() const { return m_parentReferenceHasBeenSet; }
60 inline void SetParentReference(const ObjectReference& value) { m_parentReferenceHasBeenSet = true; m_parentReference = value; }
61 inline void SetParentReference(ObjectReference&& value) { m_parentReferenceHasBeenSet = true; m_parentReference = std::move(value); }
62 inline DetachObjectRequest& WithParentReference(const ObjectReference& value) { SetParentReference(value); return *this;}
63 inline DetachObjectRequest& WithParentReference(ObjectReference&& value) { SetParentReference(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 DetachObjectRequest& WithLinkName(const Aws::String& value) { SetLinkName(value); return *this;}
76 inline DetachObjectRequest& WithLinkName(Aws::String&& value) { SetLinkName(std::move(value)); return *this;}
77 inline DetachObjectRequest& WithLinkName(const char* value) { SetLinkName(value); return *this;}
79 private:
80
81 Aws::String m_directoryArn;
82 bool m_directoryArnHasBeenSet = false;
83
84 ObjectReference m_parentReference;
85 bool m_parentReferenceHasBeenSet = false;
86
87 Aws::String m_linkName;
88 bool m_linkNameHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace CloudDirectory
93} // namespace Aws
DetachObjectRequest & WithLinkName(const char *value)
DetachObjectRequest & WithDirectoryArn(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
DetachObjectRequest & WithLinkName(Aws::String &&value)
DetachObjectRequest & WithParentReference(const ObjectReference &value)
void SetParentReference(const ObjectReference &value)
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
const ObjectReference & GetParentReference() const
DetachObjectRequest & WithParentReference(ObjectReference &&value)
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DetachObjectRequest & WithDirectoryArn(const char *value)
DetachObjectRequest & WithDirectoryArn(Aws::String &&value)
DetachObjectRequest & WithLinkName(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String