AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
DeletePolicyRequest.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 DeletePolicyRequest() = 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 "DeletePolicy"; }
28
29 AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override;
30
31 AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
43 inline const Aws::String& GetPolicyStoreId() const { return m_policyStoreId; }
44 inline bool PolicyStoreIdHasBeenSet() const { return m_policyStoreIdHasBeenSet; }
45 template <typename PolicyStoreIdT = Aws::String>
46 void SetPolicyStoreId(PolicyStoreIdT&& value) {
47 m_policyStoreIdHasBeenSet = true;
48 m_policyStoreId = std::forward<PolicyStoreIdT>(value);
49 }
50 template <typename PolicyStoreIdT = Aws::String>
51 DeletePolicyRequest& WithPolicyStoreId(PolicyStoreIdT&& value) {
52 SetPolicyStoreId(std::forward<PolicyStoreIdT>(value));
53 return *this;
54 }
56
58
65 inline const Aws::String& GetPolicyId() const { return m_policyId; }
66 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
67 template <typename PolicyIdT = Aws::String>
68 void SetPolicyId(PolicyIdT&& value) {
69 m_policyIdHasBeenSet = true;
70 m_policyId = std::forward<PolicyIdT>(value);
71 }
72 template <typename PolicyIdT = Aws::String>
73 DeletePolicyRequest& WithPolicyId(PolicyIdT&& value) {
74 SetPolicyId(std::forward<PolicyIdT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_policyStoreId;
80
81 Aws::String m_policyId;
82 bool m_policyStoreIdHasBeenSet = false;
83 bool m_policyIdHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace VerifiedPermissions
88} // namespace Aws
AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override
DeletePolicyRequest & WithPolicyId(PolicyIdT &&value)
virtual const char * GetServiceRequestName() const override
DeletePolicyRequest & WithPolicyStoreId(PolicyStoreIdT &&value)
AWS_VERIFIEDPERMISSIONS_API DeletePolicyRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String