AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DeletePolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/fms/FMSRequest.h>
9#include <aws/fms/FMS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace FMS {
15namespace Model {
16
20 public:
21 AWS_FMS_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_FMS_API Aws::String SerializePayload() const override;
30
32
34
38 inline const Aws::String& GetPolicyId() const { return m_policyId; }
39 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
40 template <typename PolicyIdT = Aws::String>
41 void SetPolicyId(PolicyIdT&& value) {
42 m_policyIdHasBeenSet = true;
43 m_policyId = std::forward<PolicyIdT>(value);
44 }
45 template <typename PolicyIdT = Aws::String>
46 DeletePolicyRequest& WithPolicyId(PolicyIdT&& value) {
47 SetPolicyId(std::forward<PolicyIdT>(value));
48 return *this;
49 }
51
53
75 inline bool GetDeleteAllPolicyResources() const { return m_deleteAllPolicyResources; }
76 inline bool DeleteAllPolicyResourcesHasBeenSet() const { return m_deleteAllPolicyResourcesHasBeenSet; }
77 inline void SetDeleteAllPolicyResources(bool value) {
78 m_deleteAllPolicyResourcesHasBeenSet = true;
79 m_deleteAllPolicyResources = value;
80 }
83 return *this;
84 }
86 private:
87 Aws::String m_policyId;
88
89 bool m_deleteAllPolicyResources{false};
90 bool m_policyIdHasBeenSet = false;
91 bool m_deleteAllPolicyResourcesHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace FMS
96} // namespace Aws
AWS_FMS_API DeletePolicyRequest()=default
virtual const char * GetServiceRequestName() const override
DeletePolicyRequest & WithPolicyId(PolicyIdT &&value)
AWS_FMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DeletePolicyRequest & WithDeleteAllPolicyResources(bool value)
AWS_FMS_API Aws::String SerializePayload() const override
const Aws::String & GetPolicyId() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String