AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AttachToIndexRequest.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 AttachToIndexRequest();
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 "AttachToIndex"; }
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 AttachToIndexRequest& WithDirectoryArn(const Aws::String& value) { SetDirectoryArn(value); return *this;}
49 inline AttachToIndexRequest& WithDirectoryArn(Aws::String&& value) { SetDirectoryArn(std::move(value)); return *this;}
50 inline AttachToIndexRequest& WithDirectoryArn(const char* value) { SetDirectoryArn(value); return *this;}
52
54
57 inline const ObjectReference& GetIndexReference() const{ return m_indexReference; }
58 inline bool IndexReferenceHasBeenSet() const { return m_indexReferenceHasBeenSet; }
59 inline void SetIndexReference(const ObjectReference& value) { m_indexReferenceHasBeenSet = true; m_indexReference = value; }
60 inline void SetIndexReference(ObjectReference&& value) { m_indexReferenceHasBeenSet = true; m_indexReference = std::move(value); }
61 inline AttachToIndexRequest& WithIndexReference(const ObjectReference& value) { SetIndexReference(value); return *this;}
62 inline AttachToIndexRequest& WithIndexReference(ObjectReference&& value) { SetIndexReference(std::move(value)); return *this;}
64
66
69 inline const ObjectReference& GetTargetReference() const{ return m_targetReference; }
70 inline bool TargetReferenceHasBeenSet() const { return m_targetReferenceHasBeenSet; }
71 inline void SetTargetReference(const ObjectReference& value) { m_targetReferenceHasBeenSet = true; m_targetReference = value; }
72 inline void SetTargetReference(ObjectReference&& value) { m_targetReferenceHasBeenSet = true; m_targetReference = std::move(value); }
73 inline AttachToIndexRequest& WithTargetReference(const ObjectReference& value) { SetTargetReference(value); return *this;}
74 inline AttachToIndexRequest& WithTargetReference(ObjectReference&& value) { SetTargetReference(std::move(value)); return *this;}
76 private:
77
78 Aws::String m_directoryArn;
79 bool m_directoryArnHasBeenSet = false;
80
81 ObjectReference m_indexReference;
82 bool m_indexReferenceHasBeenSet = false;
83
84 ObjectReference m_targetReference;
85 bool m_targetReferenceHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace CloudDirectory
90} // namespace Aws
AttachToIndexRequest & WithTargetReference(const ObjectReference &value)
AttachToIndexRequest & WithIndexReference(ObjectReference &&value)
AttachToIndexRequest & WithDirectoryArn(const Aws::String &value)
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
AttachToIndexRequest & WithTargetReference(ObjectReference &&value)
AttachToIndexRequest & WithDirectoryArn(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetTargetReference(const ObjectReference &value)
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AttachToIndexRequest & WithDirectoryArn(const char *value)
AttachToIndexRequest & WithIndexReference(const ObjectReference &value)
void SetIndexReference(const ObjectReference &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String