AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetResourcePolicyRequest.h
1
6#pragma once
7#include <aws/mpa/MPA_EXPORTS.h>
8#include <aws/mpa/MPARequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mpa/model/PolicyType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace MPA
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_MPA_API GetResourcePolicyRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetResourcePolicy"; }
32
33 AWS_MPA_API Aws::String SerializePayload() const override;
34
35
37
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) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
44 template<typename ResourceArnT = Aws::String>
45 GetResourcePolicyRequest& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
47
49
52 inline const Aws::String& GetPolicyName() const { return m_policyName; }
53 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
54 template<typename PolicyNameT = Aws::String>
55 void SetPolicyName(PolicyNameT&& value) { m_policyNameHasBeenSet = true; m_policyName = std::forward<PolicyNameT>(value); }
56 template<typename PolicyNameT = Aws::String>
57 GetResourcePolicyRequest& WithPolicyName(PolicyNameT&& value) { SetPolicyName(std::forward<PolicyNameT>(value)); return *this;}
59
61
64 inline PolicyType GetPolicyType() const { return m_policyType; }
65 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
66 inline void SetPolicyType(PolicyType value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
67 inline GetResourcePolicyRequest& WithPolicyType(PolicyType value) { SetPolicyType(value); return *this;}
69 private:
70
71 Aws::String m_resourceArn;
72 bool m_resourceArnHasBeenSet = false;
73
74 Aws::String m_policyName;
75 bool m_policyNameHasBeenSet = false;
76
77 PolicyType m_policyType{PolicyType::NOT_SET};
78 bool m_policyTypeHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace MPA
83} // 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