AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
GetPolicyResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/entityresolution/EntityResolution_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 EntityResolution {
22namespace Model {
24 public:
25 AWS_ENTITYRESOLUTION_API GetPolicyResult() = 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>
40 GetPolicyResult& WithArn(ArnT&& value) {
41 SetArn(std::forward<ArnT>(value));
42 return *this;
43 }
45
47
50 inline const Aws::String& GetToken() const { return m_token; }
51 template <typename TokenT = Aws::String>
52 void SetToken(TokenT&& value) {
53 m_tokenHasBeenSet = true;
54 m_token = std::forward<TokenT>(value);
55 }
56 template <typename TokenT = Aws::String>
57 GetPolicyResult& WithToken(TokenT&& value) {
58 SetToken(std::forward<TokenT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetPolicy() const { return m_policy; }
68 template <typename PolicyT = Aws::String>
69 void SetPolicy(PolicyT&& value) {
70 m_policyHasBeenSet = true;
71 m_policy = std::forward<PolicyT>(value);
72 }
73 template <typename PolicyT = Aws::String>
74 GetPolicyResult& WithPolicy(PolicyT&& value) {
75 SetPolicy(std::forward<PolicyT>(value));
76 return *this;
77 }
79
81
82 inline const Aws::String& GetRequestId() const { return m_requestId; }
83 template <typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) {
85 m_requestIdHasBeenSet = true;
86 m_requestId = std::forward<RequestIdT>(value);
87 }
88 template <typename RequestIdT = Aws::String>
89 GetPolicyResult& WithRequestId(RequestIdT&& value) {
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_arn;
96
97 Aws::String m_token;
98
99 Aws::String m_policy;
100
101 Aws::String m_requestId;
102 bool m_arnHasBeenSet = false;
103 bool m_tokenHasBeenSet = false;
104 bool m_policyHasBeenSet = false;
105 bool m_requestIdHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace EntityResolution
110} // namespace Aws
AWS_ENTITYRESOLUTION_API GetPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPolicyResult & WithRequestId(RequestIdT &&value)
AWS_ENTITYRESOLUTION_API GetPolicyResult()=default
GetPolicyResult & WithToken(TokenT &&value)
GetPolicyResult & WithPolicy(PolicyT &&value)
GetPolicyResult & WithArn(ArnT &&value)
AWS_ENTITYRESOLUTION_API GetPolicyResult & 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