AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPolicyInJson(const Aws::String& value) { m_policyInJsonHasBeenSet = true; m_policyInJson = value; }
48 inline void SetPolicyInJson(Aws::String&& value) { m_policyInJsonHasBeenSet = true; m_policyInJson = std::move(value); }
49 inline void SetPolicyInJson(const char* value) { m_policyInJsonHasBeenSet = true; m_policyInJson.assign(value); }
50 inline GluePolicy& WithPolicyInJson(const Aws::String& value) { SetPolicyInJson(value); return *this;}
51 inline GluePolicy& WithPolicyInJson(Aws::String&& value) { SetPolicyInJson(std::move(value)); return *this;}
52 inline GluePolicy& WithPolicyInJson(const char* value) { SetPolicyInJson(value); return *this;}
54
56
59 inline const Aws::String& GetPolicyHash() const{ return m_policyHash; }
60 inline bool PolicyHashHasBeenSet() const { return m_policyHashHasBeenSet; }
61 inline void SetPolicyHash(const Aws::String& value) { m_policyHashHasBeenSet = true; m_policyHash = value; }
62 inline void SetPolicyHash(Aws::String&& value) { m_policyHashHasBeenSet = true; m_policyHash = std::move(value); }
63 inline void SetPolicyHash(const char* value) { m_policyHashHasBeenSet = true; m_policyHash.assign(value); }
64 inline GluePolicy& WithPolicyHash(const Aws::String& value) { SetPolicyHash(value); return *this;}
65 inline GluePolicy& WithPolicyHash(Aws::String&& value) { SetPolicyHash(std::move(value)); return *this;}
66 inline GluePolicy& WithPolicyHash(const char* value) { SetPolicyHash(value); return *this;}
68
70
73 inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
74 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
75 inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
76 inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
77 inline GluePolicy& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
78 inline GluePolicy& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
80
82
85 inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; }
86 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
87 inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; }
88 inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::move(value); }
89 inline GluePolicy& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;}
90 inline GluePolicy& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(value)); return *this;}
92 private:
93
94 Aws::String m_policyInJson;
95 bool m_policyInJsonHasBeenSet = false;
96
97 Aws::String m_policyHash;
98 bool m_policyHashHasBeenSet = false;
99
100 Aws::Utils::DateTime m_createTime;
101 bool m_createTimeHasBeenSet = false;
102
103 Aws::Utils::DateTime m_updateTime;
104 bool m_updateTimeHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace Glue
109} // namespace Aws
GluePolicy & WithCreateTime(const Aws::Utils::DateTime &value)
Definition GluePolicy.h:77
GluePolicy & WithPolicyHash(Aws::String &&value)
Definition GluePolicy.h:65
AWS_GLUE_API GluePolicy(Aws::Utils::Json::JsonView jsonValue)
GluePolicy & WithUpdateTime(const Aws::Utils::DateTime &value)
Definition GluePolicy.h:89
AWS_GLUE_API GluePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
bool CreateTimeHasBeenSet() const
Definition GluePolicy.h:74
GluePolicy & WithPolicyHash(const Aws::String &value)
Definition GluePolicy.h:64
bool PolicyInJsonHasBeenSet() const
Definition GluePolicy.h:46
bool UpdateTimeHasBeenSet() const
Definition GluePolicy.h:86
void SetPolicyHash(Aws::String &&value)
Definition GluePolicy.h:62
void SetCreateTime(Aws::Utils::DateTime &&value)
Definition GluePolicy.h:76
GluePolicy & WithPolicyInJson(const Aws::String &value)
Definition GluePolicy.h:50
GluePolicy & WithUpdateTime(Aws::Utils::DateTime &&value)
Definition GluePolicy.h:90
bool PolicyHashHasBeenSet() const
Definition GluePolicy.h:60
GluePolicy & WithPolicyInJson(Aws::String &&value)
Definition GluePolicy.h:51
void SetPolicyHash(const char *value)
Definition GluePolicy.h:63
void SetPolicyInJson(const char *value)
Definition GluePolicy.h:49
GluePolicy & WithCreateTime(Aws::Utils::DateTime &&value)
Definition GluePolicy.h:78
const Aws::Utils::DateTime & GetCreateTime() const
Definition GluePolicy.h:73
void SetPolicyHash(const Aws::String &value)
Definition GluePolicy.h:61
const Aws::String & GetPolicyInJson() const
Definition GluePolicy.h:45
const Aws::String & GetPolicyHash() const
Definition GluePolicy.h:59
void SetUpdateTime(Aws::Utils::DateTime &&value)
Definition GluePolicy.h:88
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPolicyInJson(Aws::String &&value)
Definition GluePolicy.h:48
const Aws::Utils::DateTime & GetUpdateTime() const
Definition GluePolicy.h:85
void SetUpdateTime(const Aws::Utils::DateTime &value)
Definition GluePolicy.h:87
void SetPolicyInJson(const Aws::String &value)
Definition GluePolicy.h:47
GluePolicy & WithPolicyHash(const char *value)
Definition GluePolicy.h:66
GluePolicy & WithPolicyInJson(const char *value)
Definition GluePolicy.h:52
void SetCreateTime(const Aws::Utils::DateTime &value)
Definition GluePolicy.h:75
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue