AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
54 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
55 template<typename NameT = Aws::String>
56 EventBus& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
58
60
63 inline const Aws::String& GetArn() const { return m_arn; }
64 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
65 template<typename ArnT = Aws::String>
66 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
67 template<typename ArnT = Aws::String>
68 EventBus& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
70
72
75 inline const Aws::String& GetDescription() const { return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 template<typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
79 template<typename DescriptionT = Aws::String>
80 EventBus& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
82
84
88 inline const Aws::String& GetPolicy() const { return m_policy; }
89 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
90 template<typename PolicyT = Aws::String>
91 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet = true; m_policy = std::forward<PolicyT>(value); }
92 template<typename PolicyT = Aws::String>
93 EventBus& WithPolicy(PolicyT&& value) { SetPolicy(std::forward<PolicyT>(value)); return *this;}
95
97
100 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
101 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
102 template<typename CreationTimeT = Aws::Utils::DateTime>
103 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
104 template<typename CreationTimeT = Aws::Utils::DateTime>
105 EventBus& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
107
109
112 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
113 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
114 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
115 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
116 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
117 EventBus& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
119 private:
120
121 Aws::String m_name;
122 bool m_nameHasBeenSet = false;
123
124 Aws::String m_arn;
125 bool m_arnHasBeenSet = false;
126
127 Aws::String m_description;
128 bool m_descriptionHasBeenSet = false;
129
130 Aws::String m_policy;
131 bool m_policyHasBeenSet = false;
132
133 Aws::Utils::DateTime m_creationTime{};
134 bool m_creationTimeHasBeenSet = false;
135
136 Aws::Utils::DateTime m_lastModifiedTime{};
137 bool m_lastModifiedTimeHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace EventBridge
142} // namespace Aws
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition EventBus.h:115
bool LastModifiedTimeHasBeenSet() const
Definition EventBus.h:113
const Aws::String & GetPolicy() const
Definition EventBus.h:88
const Aws::String & GetArn() const
Definition EventBus.h:63
AWS_EVENTBRIDGE_API EventBus(Aws::Utils::Json::JsonView jsonValue)
AWS_EVENTBRIDGE_API EventBus & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPolicy(PolicyT &&value)
Definition EventBus.h:91
const Aws::Utils::DateTime & GetCreationTime() const
Definition EventBus.h:100
EventBus & WithCreationTime(CreationTimeT &&value)
Definition EventBus.h:105
EventBus & WithArn(ArnT &&value)
Definition EventBus.h:68
AWS_EVENTBRIDGE_API EventBus()=default
void SetCreationTime(CreationTimeT &&value)
Definition EventBus.h:103
EventBus & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition EventBus.h:117
void SetArn(ArnT &&value)
Definition EventBus.h:66
EventBus & WithPolicy(PolicyT &&value)
Definition EventBus.h:93
EventBus & WithDescription(DescriptionT &&value)
Definition EventBus.h:80
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition EventBus.h:112
const Aws::String & GetDescription() const
Definition EventBus.h:75
const Aws::String & GetName() const
Definition EventBus.h:51
EventBus & WithName(NameT &&value)
Definition EventBus.h:56
void SetName(NameT &&value)
Definition EventBus.h:54
void SetDescription(DescriptionT &&value)
Definition EventBus.h:78
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue