AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = 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 "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 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 DetachObjectRequest& WithDirectoryArn(DirectoryArnT&& value) { SetDirectoryArn(std::forward<DirectoryArnT>(value)); return *this;}
50
52
56 inline const ObjectReference& GetParentReference() const { return m_parentReference; }
57 inline bool ParentReferenceHasBeenSet() const { return m_parentReferenceHasBeenSet; }
58 template<typename ParentReferenceT = ObjectReference>
59 void SetParentReference(ParentReferenceT&& value) { m_parentReferenceHasBeenSet = true; m_parentReference = std::forward<ParentReferenceT>(value); }
60 template<typename ParentReferenceT = ObjectReference>
61 DetachObjectRequest& WithParentReference(ParentReferenceT&& value) { SetParentReference(std::forward<ParentReferenceT>(value)); return *this;}
63
65
68 inline const Aws::String& GetLinkName() const { return m_linkName; }
69 inline bool LinkNameHasBeenSet() const { return m_linkNameHasBeenSet; }
70 template<typename LinkNameT = Aws::String>
71 void SetLinkName(LinkNameT&& value) { m_linkNameHasBeenSet = true; m_linkName = std::forward<LinkNameT>(value); }
72 template<typename LinkNameT = Aws::String>
73 DetachObjectRequest& WithLinkName(LinkNameT&& value) { SetLinkName(std::forward<LinkNameT>(value)); return *this;}
75 private:
76
77 Aws::String m_directoryArn;
78 bool m_directoryArnHasBeenSet = false;
79
80 ObjectReference m_parentReference;
81 bool m_parentReferenceHasBeenSet = false;
82
83 Aws::String m_linkName;
84 bool m_linkNameHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace CloudDirectory
89} // namespace Aws
AWS_CLOUDDIRECTORY_API DetachObjectRequest()=default
DetachObjectRequest & WithParentReference(ParentReferenceT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
const ObjectReference & GetParentReference() const
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DetachObjectRequest & WithLinkName(LinkNameT &&value)
DetachObjectRequest & WithDirectoryArn(DirectoryArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String