AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GluePolicy.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{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glue
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_GLUE_API GluePolicy() = default;
36 AWS_GLUE_API GluePolicy(Aws::Utils::Json::JsonView jsonValue);
39
40
42
45 inline const Aws::String& GetPolicyInJson() const { return m_policyInJson; }
46 inline bool PolicyInJsonHasBeenSet() const { return m_policyInJsonHasBeenSet; }
47 template<typename PolicyInJsonT = Aws::String>
48 void SetPolicyInJson(PolicyInJsonT&& value) { m_policyInJsonHasBeenSet = true; m_policyInJson = std::forward<PolicyInJsonT>(value); }
49 template<typename PolicyInJsonT = Aws::String>
50 GluePolicy& WithPolicyInJson(PolicyInJsonT&& value) { SetPolicyInJson(std::forward<PolicyInJsonT>(value)); return *this;}
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) { m_policyHashHasBeenSet = true; m_policyHash = std::forward<PolicyHashT>(value); }
61 template<typename PolicyHashT = Aws::String>
62 GluePolicy& WithPolicyHash(PolicyHashT&& value) { SetPolicyHash(std::forward<PolicyHashT>(value)); return *this;}
64
66
69 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
70 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
71 template<typename CreateTimeT = Aws::Utils::DateTime>
72 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
73 template<typename CreateTimeT = Aws::Utils::DateTime>
74 GluePolicy& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
76
78
81 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
82 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
83 template<typename UpdateTimeT = Aws::Utils::DateTime>
84 void SetUpdateTime(UpdateTimeT&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::forward<UpdateTimeT>(value); }
85 template<typename UpdateTimeT = Aws::Utils::DateTime>
86 GluePolicy& WithUpdateTime(UpdateTimeT&& value) { SetUpdateTime(std::forward<UpdateTimeT>(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
103} // namespace Model
104} // namespace Glue
105} // namespace Aws
GluePolicy & WithPolicyHash(PolicyHashT &&value)
Definition GluePolicy.h:62
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:48
void SetCreateTime(CreateTimeT &&value)
Definition GluePolicy.h:72
GluePolicy & WithPolicyInJson(PolicyInJsonT &&value)
Definition GluePolicy.h:50
AWS_GLUE_API GluePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
GluePolicy & WithCreateTime(CreateTimeT &&value)
Definition GluePolicy.h:74
bool CreateTimeHasBeenSet() const
Definition GluePolicy.h:70
bool PolicyInJsonHasBeenSet() const
Definition GluePolicy.h:46
bool UpdateTimeHasBeenSet() const
Definition GluePolicy.h:82
GluePolicy & WithUpdateTime(UpdateTimeT &&value)
Definition GluePolicy.h:86
bool PolicyHashHasBeenSet() const
Definition GluePolicy.h:58
const Aws::Utils::DateTime & GetCreateTime() const
Definition GluePolicy.h:69
const Aws::String & GetPolicyInJson() const
Definition GluePolicy.h:45
const Aws::String & GetPolicyHash() const
Definition GluePolicy.h:57
void SetUpdateTime(UpdateTimeT &&value)
Definition GluePolicy.h:84
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetUpdateTime() const
Definition GluePolicy.h:81
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue