AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
LookupPolicyRequest.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 LookupPolicyRequest() = 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 "LookupPolicy"; }
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 LookupPolicyRequest& WithDirectoryArn(DirectoryArnT&& value) {
48 SetDirectoryArn(std::forward<DirectoryArnT>(value));
49 return *this;
50 }
52
54
57 inline const ObjectReference& GetObjectReference() const { return m_objectReference; }
58 inline bool ObjectReferenceHasBeenSet() const { return m_objectReferenceHasBeenSet; }
59 template <typename ObjectReferenceT = ObjectReference>
60 void SetObjectReference(ObjectReferenceT&& value) {
61 m_objectReferenceHasBeenSet = true;
62 m_objectReference = std::forward<ObjectReferenceT>(value);
63 }
64 template <typename ObjectReferenceT = ObjectReference>
65 LookupPolicyRequest& WithObjectReference(ObjectReferenceT&& value) {
66 SetObjectReference(std::forward<ObjectReferenceT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetNextToken() const { return m_nextToken; }
76 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
77 template <typename NextTokenT = Aws::String>
78 void SetNextToken(NextTokenT&& value) {
79 m_nextTokenHasBeenSet = true;
80 m_nextToken = std::forward<NextTokenT>(value);
81 }
82 template <typename NextTokenT = Aws::String>
83 LookupPolicyRequest& WithNextToken(NextTokenT&& value) {
84 SetNextToken(std::forward<NextTokenT>(value));
85 return *this;
86 }
88
90
94 inline int GetMaxResults() const { return m_maxResults; }
95 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
96 inline void SetMaxResults(int value) {
97 m_maxResultsHasBeenSet = true;
98 m_maxResults = value;
99 }
101 SetMaxResults(value);
102 return *this;
103 }
105 private:
106 Aws::String m_directoryArn;
107
108 ObjectReference m_objectReference;
109
110 Aws::String m_nextToken;
111
112 int m_maxResults{0};
113 bool m_directoryArnHasBeenSet = false;
114 bool m_objectReferenceHasBeenSet = false;
115 bool m_nextTokenHasBeenSet = false;
116 bool m_maxResultsHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace CloudDirectory
121} // namespace Aws
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
LookupPolicyRequest & WithDirectoryArn(DirectoryArnT &&value)
const ObjectReference & GetObjectReference() const
LookupPolicyRequest & WithNextToken(NextTokenT &&value)
LookupPolicyRequest & WithObjectReference(ObjectReferenceT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CLOUDDIRECTORY_API LookupPolicyRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String