AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetResourcePolicyResult.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Glue
25{
26namespace Model
27{
29 {
30 public:
31 AWS_GLUE_API GetResourcePolicyResult() = default;
34
35
37
40 inline const Aws::String& GetPolicyInJson() const { return m_policyInJson; }
41 template<typename PolicyInJsonT = Aws::String>
42 void SetPolicyInJson(PolicyInJsonT&& value) { m_policyInJsonHasBeenSet = true; m_policyInJson = std::forward<PolicyInJsonT>(value); }
43 template<typename PolicyInJsonT = Aws::String>
44 GetResourcePolicyResult& WithPolicyInJson(PolicyInJsonT&& value) { SetPolicyInJson(std::forward<PolicyInJsonT>(value)); return *this;}
46
48
51 inline const Aws::String& GetPolicyHash() const { return m_policyHash; }
52 template<typename PolicyHashT = Aws::String>
53 void SetPolicyHash(PolicyHashT&& value) { m_policyHashHasBeenSet = true; m_policyHash = std::forward<PolicyHashT>(value); }
54 template<typename PolicyHashT = Aws::String>
55 GetResourcePolicyResult& WithPolicyHash(PolicyHashT&& value) { SetPolicyHash(std::forward<PolicyHashT>(value)); return *this;}
57
59
62 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
63 template<typename CreateTimeT = Aws::Utils::DateTime>
64 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
65 template<typename CreateTimeT = Aws::Utils::DateTime>
66 GetResourcePolicyResult& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
68
70
73 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
74 template<typename UpdateTimeT = Aws::Utils::DateTime>
75 void SetUpdateTime(UpdateTimeT&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::forward<UpdateTimeT>(value); }
76 template<typename UpdateTimeT = Aws::Utils::DateTime>
77 GetResourcePolicyResult& WithUpdateTime(UpdateTimeT&& value) { SetUpdateTime(std::forward<UpdateTimeT>(value)); return *this;}
79
81
82 inline const Aws::String& GetRequestId() const { return m_requestId; }
83 template<typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
85 template<typename RequestIdT = Aws::String>
86 GetResourcePolicyResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
88 private:
89
90 Aws::String m_policyInJson;
91 bool m_policyInJsonHasBeenSet = false;
92
93 Aws::String m_policyHash;
94 bool m_policyHashHasBeenSet = false;
95
96 Aws::Utils::DateTime m_createTime{};
97 bool m_createTimeHasBeenSet = false;
98
99 Aws::Utils::DateTime m_updateTime{};
100 bool m_updateTimeHasBeenSet = false;
101
102 Aws::String m_requestId;
103 bool m_requestIdHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Glue
108} // 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