AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetResourcePolicyResult.h
1
6#pragma once
7#include <aws/billing/Billing_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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 Billing {
22namespace Model {
24 public:
25 AWS_BILLING_API GetResourcePolicyResult() = default;
28
30
34 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
35 template <typename ResourceArnT = Aws::String>
36 void SetResourceArn(ResourceArnT&& value) {
37 m_resourceArnHasBeenSet = true;
38 m_resourceArn = std::forward<ResourceArnT>(value);
39 }
40 template <typename ResourceArnT = Aws::String>
42 SetResourceArn(std::forward<ResourceArnT>(value));
43 return *this;
44 }
46
48
52 inline const Aws::String& GetPolicy() const { return m_policy; }
53 template <typename PolicyT = Aws::String>
54 void SetPolicy(PolicyT&& value) {
55 m_policyHasBeenSet = true;
56 m_policy = std::forward<PolicyT>(value);
57 }
58 template <typename PolicyT = Aws::String>
60 SetPolicy(std::forward<PolicyT>(value));
61 return *this;
62 }
64
66
67 inline const Aws::String& GetRequestId() const { return m_requestId; }
68 template <typename RequestIdT = Aws::String>
69 void SetRequestId(RequestIdT&& value) {
70 m_requestIdHasBeenSet = true;
71 m_requestId = std::forward<RequestIdT>(value);
72 }
73 template <typename RequestIdT = Aws::String>
75 SetRequestId(std::forward<RequestIdT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_resourceArn;
81
82 Aws::String m_policy;
83
84 Aws::String m_requestId;
85 bool m_resourceArnHasBeenSet = false;
86 bool m_policyHasBeenSet = false;
87 bool m_requestIdHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace Billing
92} // namespace Aws
GetResourcePolicyResult & WithResourceArn(ResourceArnT &&value)
GetResourcePolicyResult & WithPolicy(PolicyT &&value)
AWS_BILLING_API GetResourcePolicyResult()=default
GetResourcePolicyResult & WithRequestId(RequestIdT &&value)
AWS_BILLING_API GetResourcePolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_BILLING_API GetResourcePolicyResult(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