AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
GetResourcePolicyResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/Glue_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace Glue {
23namespace Model {
25 public:
26 AWS_GLUE_API GetResourcePolicyResult() = default;
29
31
34 inline const Aws::String& GetPolicyInJson() const { return m_policyInJson; }
35 template <typename PolicyInJsonT = Aws::String>
36 void SetPolicyInJson(PolicyInJsonT&& value) {
37 m_policyInJsonHasBeenSet = true;
38 m_policyInJson = std::forward<PolicyInJsonT>(value);
39 }
40 template <typename PolicyInJsonT = Aws::String>
41 GetResourcePolicyResult& WithPolicyInJson(PolicyInJsonT&& value) {
42 SetPolicyInJson(std::forward<PolicyInJsonT>(value));
43 return *this;
44 }
46
48
51 inline const Aws::String& GetPolicyHash() const { return m_policyHash; }
52 template <typename PolicyHashT = Aws::String>
53 void SetPolicyHash(PolicyHashT&& value) {
54 m_policyHashHasBeenSet = true;
55 m_policyHash = std::forward<PolicyHashT>(value);
56 }
57 template <typename PolicyHashT = Aws::String>
59 SetPolicyHash(std::forward<PolicyHashT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
69 template <typename CreateTimeT = Aws::Utils::DateTime>
70 void SetCreateTime(CreateTimeT&& value) {
71 m_createTimeHasBeenSet = true;
72 m_createTime = std::forward<CreateTimeT>(value);
73 }
74 template <typename CreateTimeT = Aws::Utils::DateTime>
76 SetCreateTime(std::forward<CreateTimeT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
86 template <typename UpdateTimeT = Aws::Utils::DateTime>
87 void SetUpdateTime(UpdateTimeT&& value) {
88 m_updateTimeHasBeenSet = true;
89 m_updateTime = std::forward<UpdateTimeT>(value);
90 }
91 template <typename UpdateTimeT = Aws::Utils::DateTime>
93 SetUpdateTime(std::forward<UpdateTimeT>(value));
94 return *this;
95 }
97
99
100 inline const Aws::String& GetRequestId() const { return m_requestId; }
101 template <typename RequestIdT = Aws::String>
102 void SetRequestId(RequestIdT&& value) {
103 m_requestIdHasBeenSet = true;
104 m_requestId = std::forward<RequestIdT>(value);
105 }
106 template <typename RequestIdT = Aws::String>
108 SetRequestId(std::forward<RequestIdT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_policyInJson;
114 bool m_policyInJsonHasBeenSet = false;
115
116 Aws::String m_policyHash;
117 bool m_policyHashHasBeenSet = false;
118
119 Aws::Utils::DateTime m_createTime{};
120 bool m_createTimeHasBeenSet = false;
121
122 Aws::Utils::DateTime m_updateTime{};
123 bool m_updateTimeHasBeenSet = false;
124
125 Aws::String m_requestId;
126 bool m_requestIdHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace Glue
131} // namespace Aws
AWS_GLUE_API GetResourcePolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetResourcePolicyResult & WithUpdateTime(UpdateTimeT &&value)
GetResourcePolicyResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetUpdateTime() const
GetResourcePolicyResult & WithCreateTime(CreateTimeT &&value)
GetResourcePolicyResult & WithPolicyHash(PolicyHashT &&value)
AWS_GLUE_API GetResourcePolicyResult()=default
AWS_GLUE_API GetResourcePolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetResourcePolicyResult & WithPolicyInJson(PolicyInJsonT &&value)
const Aws::Utils::DateTime & GetCreateTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue