AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
DetachFromIndexRequest.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 DetachFromIndexRequest() = 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 "DetachFromIndex"; }
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 DetachFromIndexRequest& WithDirectoryArn(DirectoryArnT&& value) {
48 SetDirectoryArn(std::forward<DirectoryArnT>(value));
49 return *this;
50 }
52
54
57 inline const ObjectReference& GetIndexReference() const { return m_indexReference; }
58 inline bool IndexReferenceHasBeenSet() const { return m_indexReferenceHasBeenSet; }
59 template <typename IndexReferenceT = ObjectReference>
60 void SetIndexReference(IndexReferenceT&& value) {
61 m_indexReferenceHasBeenSet = true;
62 m_indexReference = std::forward<IndexReferenceT>(value);
63 }
64 template <typename IndexReferenceT = ObjectReference>
65 DetachFromIndexRequest& WithIndexReference(IndexReferenceT&& value) {
66 SetIndexReference(std::forward<IndexReferenceT>(value));
67 return *this;
68 }
70
72
75 inline const ObjectReference& GetTargetReference() const { return m_targetReference; }
76 inline bool TargetReferenceHasBeenSet() const { return m_targetReferenceHasBeenSet; }
77 template <typename TargetReferenceT = ObjectReference>
78 void SetTargetReference(TargetReferenceT&& value) {
79 m_targetReferenceHasBeenSet = true;
80 m_targetReference = std::forward<TargetReferenceT>(value);
81 }
82 template <typename TargetReferenceT = ObjectReference>
83 DetachFromIndexRequest& WithTargetReference(TargetReferenceT&& value) {
84 SetTargetReference(std::forward<TargetReferenceT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_directoryArn;
90
91 ObjectReference m_indexReference;
92
93 ObjectReference m_targetReference;
94 bool m_directoryArnHasBeenSet = false;
95 bool m_indexReferenceHasBeenSet = false;
96 bool m_targetReferenceHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace CloudDirectory
101} // namespace Aws
DetachFromIndexRequest & WithIndexReference(IndexReferenceT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
DetachFromIndexRequest & WithTargetReference(TargetReferenceT &&value)
DetachFromIndexRequest & WithDirectoryArn(DirectoryArnT &&value)
AWS_CLOUDDIRECTORY_API DetachFromIndexRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String