AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EventBus.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_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 EventBridge
23{
24namespace Model
25{
26
39 {
40 public:
41 AWS_EVENTBRIDGE_API EventBus();
42 AWS_EVENTBRIDGE_API EventBus(Aws::Utils::Json::JsonView jsonValue);
43 AWS_EVENTBRIDGE_API EventBus& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetName() const{ return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
55 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
56 inline EventBus& WithName(const Aws::String& value) { SetName(value); return *this;}
57 inline EventBus& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
58 inline EventBus& WithName(const char* value) { SetName(value); return *this;}
60
62
65 inline const Aws::String& GetArn() const{ return m_arn; }
66 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
67 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
68 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
69 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
70 inline EventBus& WithArn(const Aws::String& value) { SetArn(value); return *this;}
71 inline EventBus& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
72 inline EventBus& WithArn(const char* value) { SetArn(value); return *this;}
74
76
79 inline const Aws::String& GetDescription() const{ return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
82 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
83 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
84 inline EventBus& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
85 inline EventBus& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
86 inline EventBus& WithDescription(const char* value) { SetDescription(value); return *this;}
88
90
94 inline const Aws::String& GetPolicy() const{ return m_policy; }
95 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
96 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
97 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
98 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
99 inline EventBus& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
100 inline EventBus& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
101 inline EventBus& WithPolicy(const char* value) { SetPolicy(value); return *this;}
103
105
108 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
109 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
110 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
111 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
112 inline EventBus& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
113 inline EventBus& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
115
117
120 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
121 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
122 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
123 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
124 inline EventBus& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
125 inline EventBus& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
127 private:
128
129 Aws::String m_name;
130 bool m_nameHasBeenSet = false;
131
132 Aws::String m_arn;
133 bool m_arnHasBeenSet = false;
134
135 Aws::String m_description;
136 bool m_descriptionHasBeenSet = false;
137
138 Aws::String m_policy;
139 bool m_policyHasBeenSet = false;
140
141 Aws::Utils::DateTime m_creationTime;
142 bool m_creationTimeHasBeenSet = false;
143
144 Aws::Utils::DateTime m_lastModifiedTime;
145 bool m_lastModifiedTimeHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace EventBridge
150} // namespace Aws
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition EventBus.h:111
bool LastModifiedTimeHasBeenSet() const
Definition EventBus.h:121
void SetDescription(const char *value)
Definition EventBus.h:83
const Aws::String & GetPolicy() const
Definition EventBus.h:94
const Aws::String & GetArn() const
Definition EventBus.h:65
EventBus & WithLastModifiedTime(Aws::Utils::DateTime &&value)
Definition EventBus.h:125
AWS_EVENTBRIDGE_API EventBus(Aws::Utils::Json::JsonView jsonValue)
AWS_EVENTBRIDGE_API EventBus & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(const Aws::String &value)
Definition EventBus.h:81
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreationTime() const
Definition EventBus.h:108
void SetName(const char *value)
Definition EventBus.h:55
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition EventBus.h:110
EventBus & WithArn(const char *value)
Definition EventBus.h:72
EventBus & WithArn(Aws::String &&value)
Definition EventBus.h:71
EventBus & WithCreationTime(const Aws::Utils::DateTime &value)
Definition EventBus.h:112
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
Definition EventBus.h:123
void SetPolicy(const Aws::String &value)
Definition EventBus.h:96
AWS_EVENTBRIDGE_API EventBus()
void SetArn(Aws::String &&value)
Definition EventBus.h:68
void SetName(const Aws::String &value)
Definition EventBus.h:53
EventBus & WithDescription(Aws::String &&value)
Definition EventBus.h:85
EventBus & WithDescription(const char *value)
Definition EventBus.h:86
EventBus & WithName(const char *value)
Definition EventBus.h:58
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition EventBus.h:120
EventBus & WithArn(const Aws::String &value)
Definition EventBus.h:70
const Aws::String & GetDescription() const
Definition EventBus.h:79
EventBus & WithCreationTime(Aws::Utils::DateTime &&value)
Definition EventBus.h:113
void SetArn(const char *value)
Definition EventBus.h:69
EventBus & WithPolicy(const Aws::String &value)
Definition EventBus.h:99
EventBus & WithLastModifiedTime(const Aws::Utils::DateTime &value)
Definition EventBus.h:124
EventBus & WithPolicy(const char *value)
Definition EventBus.h:101
EventBus & WithPolicy(Aws::String &&value)
Definition EventBus.h:100
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
Definition EventBus.h:122
const Aws::String & GetName() const
Definition EventBus.h:51
EventBus & WithName(const Aws::String &value)
Definition EventBus.h:56
void SetPolicy(Aws::String &&value)
Definition EventBus.h:97
EventBus & WithName(Aws::String &&value)
Definition EventBus.h:57
void SetName(Aws::String &&value)
Definition EventBus.h:54
void SetDescription(Aws::String &&value)
Definition EventBus.h:82
EventBus & WithDescription(const Aws::String &value)
Definition EventBus.h:84
void SetPolicy(const char *value)
Definition EventBus.h:98
void SetArn(const Aws::String &value)
Definition EventBus.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue