AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
GetResourcePolicyResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/secretsmanager/SecretsManager_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13template <typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils {
17namespace Json {
18class JsonValue;
19} // namespace Json
20} // namespace Utils
21namespace SecretsManager {
22namespace Model {
24 public:
25 AWS_SECRETSMANAGER_API GetResourcePolicyResult() = default;
28
30
33 inline const Aws::String& GetARN() const { return m_aRN; }
34 template <typename ARNT = Aws::String>
35 void SetARN(ARNT&& value) {
36 m_aRNHasBeenSet = true;
37 m_aRN = std::forward<ARNT>(value);
38 }
39 template <typename ARNT = Aws::String>
41 SetARN(std::forward<ARNT>(value));
42 return *this;
43 }
45
47
50 inline const Aws::String& GetName() const { return m_name; }
51 template <typename NameT = Aws::String>
52 void SetName(NameT&& value) {
53 m_nameHasBeenSet = true;
54 m_name = std::forward<NameT>(value);
55 }
56 template <typename NameT = Aws::String>
58 SetName(std::forward<NameT>(value));
59 return *this;
60 }
62
64
70 inline const Aws::String& GetResourcePolicy() const { return m_resourcePolicy; }
71 template <typename ResourcePolicyT = Aws::String>
72 void SetResourcePolicy(ResourcePolicyT&& value) {
73 m_resourcePolicyHasBeenSet = true;
74 m_resourcePolicy = std::forward<ResourcePolicyT>(value);
75 }
76 template <typename ResourcePolicyT = Aws::String>
77 GetResourcePolicyResult& WithResourcePolicy(ResourcePolicyT&& value) {
78 SetResourcePolicy(std::forward<ResourcePolicyT>(value));
79 return *this;
80 }
82
84
85 inline const Aws::String& GetRequestId() const { return m_requestId; }
86 template <typename RequestIdT = Aws::String>
87 void SetRequestId(RequestIdT&& value) {
88 m_requestIdHasBeenSet = true;
89 m_requestId = std::forward<RequestIdT>(value);
90 }
91 template <typename RequestIdT = Aws::String>
93 SetRequestId(std::forward<RequestIdT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_aRN;
99
100 Aws::String m_name;
101
102 Aws::String m_resourcePolicy;
103
104 Aws::String m_requestId;
105 bool m_aRNHasBeenSet = false;
106 bool m_nameHasBeenSet = false;
107 bool m_resourcePolicyHasBeenSet = false;
108 bool m_requestIdHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace SecretsManager
113} // namespace Aws
GetResourcePolicyResult & WithName(NameT &&value)
GetResourcePolicyResult & WithRequestId(RequestIdT &&value)
GetResourcePolicyResult & WithResourcePolicy(ResourcePolicyT &&value)
AWS_SECRETSMANAGER_API GetResourcePolicyResult()=default
AWS_SECRETSMANAGER_API GetResourcePolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_SECRETSMANAGER_API GetResourcePolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue