AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
DeleteResourcePolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/eventbridgev2/EventBridgeV2Request.h>
9#include <aws/eventbridgev2/EventBridgeV2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EventBridgeV2 {
15namespace Model {
16
20 public:
21 AWS_EVENTBRIDGEV2_API DeleteResourcePolicyRequest() = 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 "DeleteResourcePolicy"; }
28
29 AWS_EVENTBRIDGEV2_API Aws::String SerializePayload() const override;
30
31 AWS_EVENTBRIDGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
36 AWS_EVENTBRIDGEV2_API EndpointParameters GetEndpointContextParams() const override;
37
39
40 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
41 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
42 template <typename ResourceArnT = Aws::String>
43 void SetResourceArn(ResourceArnT&& value) {
44 m_resourceArnHasBeenSet = true;
45 m_resourceArn = std::forward<ResourceArnT>(value);
46 }
47 template <typename ResourceArnT = Aws::String>
49 SetResourceArn(std::forward<ResourceArnT>(value));
50 return *this;
51 }
53
55
64 inline const Aws::String& GetPolicyName() const { return m_policyName; }
65 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
66 template <typename PolicyNameT = Aws::String>
67 void SetPolicyName(PolicyNameT&& value) {
68 m_policyNameHasBeenSet = true;
69 m_policyName = std::forward<PolicyNameT>(value);
70 }
71 template <typename PolicyNameT = Aws::String>
73 SetPolicyName(std::forward<PolicyNameT>(value));
74 return *this;
75 }
77
79
89 inline const Aws::String& GetExpectedRevisionId() const { return m_expectedRevisionId; }
90 inline bool ExpectedRevisionIdHasBeenSet() const { return m_expectedRevisionIdHasBeenSet; }
91 template <typename ExpectedRevisionIdT = Aws::String>
92 void SetExpectedRevisionId(ExpectedRevisionIdT&& value) {
93 m_expectedRevisionIdHasBeenSet = true;
94 m_expectedRevisionId = std::forward<ExpectedRevisionIdT>(value);
95 }
96 template <typename ExpectedRevisionIdT = Aws::String>
98 SetExpectedRevisionId(std::forward<ExpectedRevisionIdT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_resourceArn;
104
105 Aws::String m_policyName;
106
107 Aws::String m_expectedRevisionId;
108 bool m_resourceArnHasBeenSet = false;
109 bool m_policyNameHasBeenSet = false;
110 bool m_expectedRevisionIdHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace EventBridgeV2
115} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
AWS_EVENTBRIDGEV2_API Aws::String SerializePayload() const override
AWS_EVENTBRIDGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_EVENTBRIDGEV2_API DeleteResourcePolicyRequest()=default
DeleteResourcePolicyRequest & WithExpectedRevisionId(ExpectedRevisionIdT &&value)
AWS_EVENTBRIDGEV2_API EndpointParameters GetEndpointContextParams() const override
DeleteResourcePolicyRequest & WithPolicyName(PolicyNameT &&value)
DeleteResourcePolicyRequest & WithResourceArn(ResourceArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String