AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LookupPolicyRequest.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 LookupPolicyRequest() = 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 "LookupPolicy"; }
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 LookupPolicyRequest& WithDirectoryArn(DirectoryArnT&& value) { SetDirectoryArn(std::forward<DirectoryArnT>(value)); return *this;}
50
52
55 inline const ObjectReference& GetObjectReference() const { return m_objectReference; }
56 inline bool ObjectReferenceHasBeenSet() const { return m_objectReferenceHasBeenSet; }
57 template<typename ObjectReferenceT = ObjectReference>
58 void SetObjectReference(ObjectReferenceT&& value) { m_objectReferenceHasBeenSet = true; m_objectReference = std::forward<ObjectReferenceT>(value); }
59 template<typename ObjectReferenceT = ObjectReference>
60 LookupPolicyRequest& WithObjectReference(ObjectReferenceT&& value) { SetObjectReference(std::forward<ObjectReferenceT>(value)); return *this;}
62
64
67 inline const Aws::String& GetNextToken() const { return m_nextToken; }
68 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
69 template<typename NextTokenT = Aws::String>
70 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
71 template<typename NextTokenT = Aws::String>
72 LookupPolicyRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
74
76
80 inline int GetMaxResults() const { return m_maxResults; }
81 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
82 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
83 inline LookupPolicyRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
85 private:
86
87 Aws::String m_directoryArn;
88 bool m_directoryArnHasBeenSet = false;
89
90 ObjectReference m_objectReference;
91 bool m_objectReferenceHasBeenSet = false;
92
93 Aws::String m_nextToken;
94 bool m_nextTokenHasBeenSet = false;
95
96 int m_maxResults{0};
97 bool m_maxResultsHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace CloudDirectory
102} // 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 & WithMaxResults(int value)
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