AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
GetPolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/verifiedpermissions/VerifiedPermissionsRequest.h>
9#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace VerifiedPermissions {
15namespace Model {
16
20 public:
21 AWS_VERIFIEDPERMISSIONS_API GetPolicyRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "GetPolicy"; }
28
29 AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override;
30
31 AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
38 inline const Aws::String& GetPolicyStoreId() const { return m_policyStoreId; }
39 inline bool PolicyStoreIdHasBeenSet() const { return m_policyStoreIdHasBeenSet; }
40 template <typename PolicyStoreIdT = Aws::String>
41 void SetPolicyStoreId(PolicyStoreIdT&& value) {
42 m_policyStoreIdHasBeenSet = true;
43 m_policyStoreId = std::forward<PolicyStoreIdT>(value);
44 }
45 template <typename PolicyStoreIdT = Aws::String>
46 GetPolicyRequest& WithPolicyStoreId(PolicyStoreIdT&& value) {
47 SetPolicyStoreId(std::forward<PolicyStoreIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetPolicyId() const { return m_policyId; }
57 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
58 template <typename PolicyIdT = Aws::String>
59 void SetPolicyId(PolicyIdT&& value) {
60 m_policyIdHasBeenSet = true;
61 m_policyId = std::forward<PolicyIdT>(value);
62 }
63 template <typename PolicyIdT = Aws::String>
64 GetPolicyRequest& WithPolicyId(PolicyIdT&& value) {
65 SetPolicyId(std::forward<PolicyIdT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_policyStoreId;
71
72 Aws::String m_policyId;
73 bool m_policyStoreIdHasBeenSet = false;
74 bool m_policyIdHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace VerifiedPermissions
79} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override
AWS_VERIFIEDPERMISSIONS_API GetPolicyRequest()=default
AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetPolicyRequest & WithPolicyStoreId(PolicyStoreIdT &&value)
GetPolicyRequest & WithPolicyId(PolicyIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String