AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DetachFromIndexRequest.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 DetachFromIndexRequest() = 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 "DetachFromIndex"; }
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 DetachFromIndexRequest& WithDirectoryArn(DirectoryArnT&& value) { SetDirectoryArn(std::forward<DirectoryArnT>(value)); return *this;}
50
52
55 inline const ObjectReference& GetIndexReference() const { return m_indexReference; }
56 inline bool IndexReferenceHasBeenSet() const { return m_indexReferenceHasBeenSet; }
57 template<typename IndexReferenceT = ObjectReference>
58 void SetIndexReference(IndexReferenceT&& value) { m_indexReferenceHasBeenSet = true; m_indexReference = std::forward<IndexReferenceT>(value); }
59 template<typename IndexReferenceT = ObjectReference>
60 DetachFromIndexRequest& WithIndexReference(IndexReferenceT&& value) { SetIndexReference(std::forward<IndexReferenceT>(value)); return *this;}
62
64
67 inline const ObjectReference& GetTargetReference() const { return m_targetReference; }
68 inline bool TargetReferenceHasBeenSet() const { return m_targetReferenceHasBeenSet; }
69 template<typename TargetReferenceT = ObjectReference>
70 void SetTargetReference(TargetReferenceT&& value) { m_targetReferenceHasBeenSet = true; m_targetReference = std::forward<TargetReferenceT>(value); }
71 template<typename TargetReferenceT = ObjectReference>
72 DetachFromIndexRequest& WithTargetReference(TargetReferenceT&& value) { SetTargetReference(std::forward<TargetReferenceT>(value)); return *this;}
74 private:
75
76 Aws::String m_directoryArn;
77 bool m_directoryArnHasBeenSet = false;
78
79 ObjectReference m_indexReference;
80 bool m_indexReferenceHasBeenSet = false;
81
82 ObjectReference m_targetReference;
83 bool m_targetReferenceHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace CloudDirectory
88} // 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