AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetResourcePolicyResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/glue/Glue_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Glue {
24namespace Model {
26 public:
27 AWS_GLUE_API GetResourcePolicyResult() = default;
30
32
35 inline const Aws::String& GetPolicyInJson() const { return m_policyInJson; }
36 template <typename PolicyInJsonT = Aws::String>
37 void SetPolicyInJson(PolicyInJsonT&& value) {
38 m_policyInJsonHasBeenSet = true;
39 m_policyInJson = std::forward<PolicyInJsonT>(value);
40 }
41 template <typename PolicyInJsonT = Aws::String>
42 GetResourcePolicyResult& WithPolicyInJson(PolicyInJsonT&& value) {
43 SetPolicyInJson(std::forward<PolicyInJsonT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetPolicyHash() const { return m_policyHash; }
53 template <typename PolicyHashT = Aws::String>
54 void SetPolicyHash(PolicyHashT&& value) {
55 m_policyHashHasBeenSet = true;
56 m_policyHash = std::forward<PolicyHashT>(value);
57 }
58 template <typename PolicyHashT = Aws::String>
60 SetPolicyHash(std::forward<PolicyHashT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
70 template <typename CreateTimeT = Aws::Utils::DateTime>
71 void SetCreateTime(CreateTimeT&& value) {
72 m_createTimeHasBeenSet = true;
73 m_createTime = std::forward<CreateTimeT>(value);
74 }
75 template <typename CreateTimeT = Aws::Utils::DateTime>
77 SetCreateTime(std::forward<CreateTimeT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
87 template <typename UpdateTimeT = Aws::Utils::DateTime>
88 void SetUpdateTime(UpdateTimeT&& value) {
89 m_updateTimeHasBeenSet = true;
90 m_updateTime = std::forward<UpdateTimeT>(value);
91 }
92 template <typename UpdateTimeT = Aws::Utils::DateTime>
94 SetUpdateTime(std::forward<UpdateTimeT>(value));
95 return *this;
96 }
98
100
101 inline const Aws::String& GetRequestId() const { return m_requestId; }
102 template <typename RequestIdT = Aws::String>
103 void SetRequestId(RequestIdT&& value) {
104 m_requestIdHasBeenSet = true;
105 m_requestId = std::forward<RequestIdT>(value);
106 }
107 template <typename RequestIdT = Aws::String>
109 SetRequestId(std::forward<RequestIdT>(value));
110 return *this;
111 }
113 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
114
115 private:
116 Aws::String m_policyInJson;
117
118 Aws::String m_policyHash;
119
120 Aws::Utils::DateTime m_createTime{};
121
122 Aws::Utils::DateTime m_updateTime{};
123
124 Aws::String m_requestId;
125 Aws::Http::HttpResponseCode m_HttpResponseCode;
126 bool m_policyInJsonHasBeenSet = false;
127 bool m_policyHashHasBeenSet = false;
128 bool m_createTimeHasBeenSet = false;
129 bool m_updateTimeHasBeenSet = false;
130 bool m_requestIdHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace Glue
135} // 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::Http::HttpResponseCode GetHttpResponseCode() const
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