AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
GetResourcePolicyRequest.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 GetResourcePolicyRequest() = 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 "GetResourcePolicy"; }
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
65 inline const Aws::String& GetPolicyName() const { return m_policyName; }
66 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
67 template <typename PolicyNameT = Aws::String>
68 void SetPolicyName(PolicyNameT&& value) {
69 m_policyNameHasBeenSet = true;
70 m_policyName = std::forward<PolicyNameT>(value);
71 }
72 template <typename PolicyNameT = Aws::String>
74 SetPolicyName(std::forward<PolicyNameT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_resourceArn;
80
81 Aws::String m_policyName;
82 bool m_resourceArnHasBeenSet = false;
83 bool m_policyNameHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace EventBridgeV2
88} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
AWS_EVENTBRIDGEV2_API GetResourcePolicyRequest()=default
virtual const char * GetServiceRequestName() const override
GetResourcePolicyRequest & WithPolicyName(PolicyNameT &&value)
AWS_EVENTBRIDGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetResourcePolicyRequest & WithResourceArn(ResourceArnT &&value)
AWS_EVENTBRIDGEV2_API EndpointParameters GetEndpointContextParams() const override
AWS_EVENTBRIDGEV2_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String