AWS SDK for C++

AWS SDK for C++ Version 1.11.916

Loading...
Searching...
No Matches
DeleteResourcePolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10#include <aws/ssm/model/DeletionMode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SSM {
16namespace Model {
17
21 public:
22 AWS_SSM_API DeleteResourcePolicyRequest() = 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 "DeleteResourcePolicy"; }
29
30 AWS_SSM_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
40 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
41 template <typename ResourceArnT = Aws::String>
42 void SetResourceArn(ResourceArnT&& value) {
43 m_resourceArnHasBeenSet = true;
44 m_resourceArn = std::forward<ResourceArnT>(value);
45 }
46 template <typename ResourceArnT = Aws::String>
48 SetResourceArn(std::forward<ResourceArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetPolicyId() const { return m_policyId; }
58 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
59 template <typename PolicyIdT = Aws::String>
60 void SetPolicyId(PolicyIdT&& value) {
61 m_policyIdHasBeenSet = true;
62 m_policyId = std::forward<PolicyIdT>(value);
63 }
64 template <typename PolicyIdT = Aws::String>
66 SetPolicyId(std::forward<PolicyIdT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetPolicyHash() const { return m_policyHash; }
77 inline bool PolicyHashHasBeenSet() const { return m_policyHashHasBeenSet; }
78 template <typename PolicyHashT = Aws::String>
79 void SetPolicyHash(PolicyHashT&& value) {
80 m_policyHashHasBeenSet = true;
81 m_policyHash = std::forward<PolicyHashT>(value);
82 }
83 template <typename PolicyHashT = Aws::String>
85 SetPolicyHash(std::forward<PolicyHashT>(value));
86 return *this;
87 }
89
91
100 inline DeletionMode GetDeletionMode() const { return m_deletionMode; }
101 inline bool DeletionModeHasBeenSet() const { return m_deletionModeHasBeenSet; }
102 inline void SetDeletionMode(DeletionMode value) {
103 m_deletionModeHasBeenSet = true;
104 m_deletionMode = value;
105 }
107 SetDeletionMode(value);
108 return *this;
109 }
111 private:
112 Aws::String m_resourceArn;
113
114 Aws::String m_policyId;
115
116 Aws::String m_policyHash;
117
118 DeletionMode m_deletionMode{DeletionMode::NOT_SET};
119 bool m_resourceArnHasBeenSet = false;
120 bool m_policyIdHasBeenSet = false;
121 bool m_policyHashHasBeenSet = false;
122 bool m_deletionModeHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace SSM
127} // namespace Aws
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SSM_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
DeleteResourcePolicyRequest & WithDeletionMode(DeletionMode value)
DeleteResourcePolicyRequest & WithPolicyHash(PolicyHashT &&value)
AWS_SSM_API DeleteResourcePolicyRequest()=default
DeleteResourcePolicyRequest & WithResourceArn(ResourceArnT &&value)
DeleteResourcePolicyRequest & WithPolicyId(PolicyIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String