AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetResourcePolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mpa/MPARequest.h>
9#include <aws/mpa/MPA_EXPORTS.h>
10#include <aws/mpa/model/PolicyType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace MPA {
16namespace Model {
17
21 public:
22 AWS_MPA_API GetResourcePolicyRequest() = 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 "GetResourcePolicy"; }
29
30 AWS_MPA_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
37 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
38 template <typename ResourceArnT = Aws::String>
39 void SetResourceArn(ResourceArnT&& value) {
40 m_resourceArnHasBeenSet = true;
41 m_resourceArn = std::forward<ResourceArnT>(value);
42 }
43 template <typename ResourceArnT = Aws::String>
45 SetResourceArn(std::forward<ResourceArnT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetPolicyName() const { return m_policyName; }
55 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
56 template <typename PolicyNameT = Aws::String>
57 void SetPolicyName(PolicyNameT&& value) {
58 m_policyNameHasBeenSet = true;
59 m_policyName = std::forward<PolicyNameT>(value);
60 }
61 template <typename PolicyNameT = Aws::String>
63 SetPolicyName(std::forward<PolicyNameT>(value));
64 return *this;
65 }
67
69
72 inline PolicyType GetPolicyType() const { return m_policyType; }
73 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
74 inline void SetPolicyType(PolicyType value) {
75 m_policyTypeHasBeenSet = true;
76 m_policyType = value;
77 }
79 SetPolicyType(value);
80 return *this;
81 }
83 private:
84 Aws::String m_resourceArn;
85
86 Aws::String m_policyName;
87
88 PolicyType m_policyType{PolicyType::NOT_SET};
89 bool m_resourceArnHasBeenSet = false;
90 bool m_policyNameHasBeenSet = false;
91 bool m_policyTypeHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace MPA
96} // namespace Aws
AWS_MPA_API GetResourcePolicyRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_MPA_API Aws::String SerializePayload() const override
GetResourcePolicyRequest & WithPolicyName(PolicyNameT &&value)
GetResourcePolicyRequest & WithPolicyType(PolicyType value)
GetResourcePolicyRequest & WithResourceArn(ResourceArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String