AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GluePolicy.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 {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glue {
21namespace Model {
22
29 public:
30 AWS_GLUE_API GluePolicy() = default;
31 AWS_GLUE_API GluePolicy(Aws::Utils::Json::JsonView jsonValue);
34
36
39 inline const Aws::String& GetPolicyInJson() const { return m_policyInJson; }
40 inline bool PolicyInJsonHasBeenSet() const { return m_policyInJsonHasBeenSet; }
41 template <typename PolicyInJsonT = Aws::String>
42 void SetPolicyInJson(PolicyInJsonT&& value) {
43 m_policyInJsonHasBeenSet = true;
44 m_policyInJson = std::forward<PolicyInJsonT>(value);
45 }
46 template <typename PolicyInJsonT = Aws::String>
47 GluePolicy& WithPolicyInJson(PolicyInJsonT&& value) {
48 SetPolicyInJson(std::forward<PolicyInJsonT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetPolicyHash() const { return m_policyHash; }
58 inline bool PolicyHashHasBeenSet() const { return m_policyHashHasBeenSet; }
59 template <typename PolicyHashT = Aws::String>
60 void SetPolicyHash(PolicyHashT&& value) {
61 m_policyHashHasBeenSet = true;
62 m_policyHash = std::forward<PolicyHashT>(value);
63 }
64 template <typename PolicyHashT = Aws::String>
65 GluePolicy& WithPolicyHash(PolicyHashT&& value) {
66 SetPolicyHash(std::forward<PolicyHashT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
76 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
77 template <typename CreateTimeT = Aws::Utils::DateTime>
78 void SetCreateTime(CreateTimeT&& value) {
79 m_createTimeHasBeenSet = true;
80 m_createTime = std::forward<CreateTimeT>(value);
81 }
82 template <typename CreateTimeT = Aws::Utils::DateTime>
83 GluePolicy& WithCreateTime(CreateTimeT&& value) {
84 SetCreateTime(std::forward<CreateTimeT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
94 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
95 template <typename UpdateTimeT = Aws::Utils::DateTime>
96 void SetUpdateTime(UpdateTimeT&& value) {
97 m_updateTimeHasBeenSet = true;
98 m_updateTime = std::forward<UpdateTimeT>(value);
99 }
100 template <typename UpdateTimeT = Aws::Utils::DateTime>
101 GluePolicy& WithUpdateTime(UpdateTimeT&& value) {
102 SetUpdateTime(std::forward<UpdateTimeT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_policyInJson;
108
109 Aws::String m_policyHash;
110
111 Aws::Utils::DateTime m_createTime{};
112
113 Aws::Utils::DateTime m_updateTime{};
114 bool m_policyInJsonHasBeenSet = false;
115 bool m_policyHashHasBeenSet = false;
116 bool m_createTimeHasBeenSet = false;
117 bool m_updateTimeHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace Glue
122} // namespace Aws
GluePolicy & WithPolicyHash(PolicyHashT &&value)
Definition GluePolicy.h:65
AWS_GLUE_API GluePolicy()=default
void SetPolicyHash(PolicyHashT &&value)
Definition GluePolicy.h:60
AWS_GLUE_API GluePolicy(Aws::Utils::Json::JsonView jsonValue)
void SetPolicyInJson(PolicyInJsonT &&value)
Definition GluePolicy.h:42
void SetCreateTime(CreateTimeT &&value)
Definition GluePolicy.h:78
GluePolicy & WithPolicyInJson(PolicyInJsonT &&value)
Definition GluePolicy.h:47
AWS_GLUE_API GluePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
GluePolicy & WithCreateTime(CreateTimeT &&value)
Definition GluePolicy.h:83
bool CreateTimeHasBeenSet() const
Definition GluePolicy.h:76
bool PolicyInJsonHasBeenSet() const
Definition GluePolicy.h:40
bool UpdateTimeHasBeenSet() const
Definition GluePolicy.h:94
GluePolicy & WithUpdateTime(UpdateTimeT &&value)
Definition GluePolicy.h:101
bool PolicyHashHasBeenSet() const
Definition GluePolicy.h:58
const Aws::Utils::DateTime & GetCreateTime() const
Definition GluePolicy.h:75
const Aws::String & GetPolicyInJson() const
Definition GluePolicy.h:39
const Aws::String & GetPolicyHash() const
Definition GluePolicy.h:57
void SetUpdateTime(UpdateTimeT &&value)
Definition GluePolicy.h:96
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetUpdateTime() const
Definition GluePolicy.h:93
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue