AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AttachPolicyRequest.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 AttachPolicyRequest();
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 "AttachPolicy"; }
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 AttachPolicyRequest& WithDirectoryArn(const Aws::String& value) { SetDirectoryArn(value); return *this;}
49 inline AttachPolicyRequest& WithDirectoryArn(Aws::String&& value) { SetDirectoryArn(std::move(value)); return *this;}
50 inline AttachPolicyRequest& WithDirectoryArn(const char* value) { SetDirectoryArn(value); return *this;}
52
54
57 inline const ObjectReference& GetPolicyReference() const{ return m_policyReference; }
58 inline bool PolicyReferenceHasBeenSet() const { return m_policyReferenceHasBeenSet; }
59 inline void SetPolicyReference(const ObjectReference& value) { m_policyReferenceHasBeenSet = true; m_policyReference = value; }
60 inline void SetPolicyReference(ObjectReference&& value) { m_policyReferenceHasBeenSet = true; m_policyReference = std::move(value); }
61 inline AttachPolicyRequest& WithPolicyReference(const ObjectReference& value) { SetPolicyReference(value); return *this;}
62 inline AttachPolicyRequest& WithPolicyReference(ObjectReference&& value) { SetPolicyReference(std::move(value)); return *this;}
64
66
70 inline const ObjectReference& GetObjectReference() const{ return m_objectReference; }
71 inline bool ObjectReferenceHasBeenSet() const { return m_objectReferenceHasBeenSet; }
72 inline void SetObjectReference(const ObjectReference& value) { m_objectReferenceHasBeenSet = true; m_objectReference = value; }
73 inline void SetObjectReference(ObjectReference&& value) { m_objectReferenceHasBeenSet = true; m_objectReference = std::move(value); }
74 inline AttachPolicyRequest& WithObjectReference(const ObjectReference& value) { SetObjectReference(value); return *this;}
75 inline AttachPolicyRequest& WithObjectReference(ObjectReference&& value) { SetObjectReference(std::move(value)); return *this;}
77 private:
78
79 Aws::String m_directoryArn;
80 bool m_directoryArnHasBeenSet = false;
81
82 ObjectReference m_policyReference;
83 bool m_policyReferenceHasBeenSet = false;
84
85 ObjectReference m_objectReference;
86 bool m_objectReferenceHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace CloudDirectory
91} // namespace Aws
AttachPolicyRequest & WithDirectoryArn(const Aws::String &value)
AttachPolicyRequest & WithObjectReference(const ObjectReference &value)
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetObjectReference(const ObjectReference &value)
AttachPolicyRequest & WithDirectoryArn(const char *value)
virtual const char * GetServiceRequestName() const override
void SetPolicyReference(const ObjectReference &value)
const ObjectReference & GetObjectReference() const
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
AttachPolicyRequest & WithPolicyReference(const ObjectReference &value)
const ObjectReference & GetPolicyReference() const
AttachPolicyRequest & WithPolicyReference(ObjectReference &&value)
AttachPolicyRequest & WithObjectReference(ObjectReference &&value)
AttachPolicyRequest & WithDirectoryArn(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String