AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EventSource.h
1
6#pragma once
7#include <aws/events/CloudWatchEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/events/model/EventSourceState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CloudWatchEvents
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_CLOUDWATCHEVENTS_API EventSource() = default;
40 AWS_CLOUDWATCHEVENTS_API EventSource(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLOUDWATCHEVENTS_API EventSource& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetArn() const { return m_arn; }
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 template<typename ArnT = Aws::String>
52 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
53 template<typename ArnT = Aws::String>
54 EventSource& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
56
58
61 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
62 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
63 template<typename CreatedByT = Aws::String>
64 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
65 template<typename CreatedByT = Aws::String>
66 EventSource& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
68
70
73 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
74 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
75 template<typename CreationTimeT = Aws::Utils::DateTime>
76 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
77 template<typename CreationTimeT = Aws::Utils::DateTime>
78 EventSource& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
80
82
86 inline const Aws::Utils::DateTime& GetExpirationTime() const { return m_expirationTime; }
87 inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; }
88 template<typename ExpirationTimeT = Aws::Utils::DateTime>
89 void SetExpirationTime(ExpirationTimeT&& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = std::forward<ExpirationTimeT>(value); }
90 template<typename ExpirationTimeT = Aws::Utils::DateTime>
91 EventSource& WithExpirationTime(ExpirationTimeT&& value) { SetExpirationTime(std::forward<ExpirationTimeT>(value)); return *this;}
93
95
98 inline const Aws::String& GetName() const { return m_name; }
99 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
100 template<typename NameT = Aws::String>
101 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
102 template<typename NameT = Aws::String>
103 EventSource& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
105
107
114 inline EventSourceState GetState() const { return m_state; }
115 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
116 inline void SetState(EventSourceState value) { m_stateHasBeenSet = true; m_state = value; }
117 inline EventSource& WithState(EventSourceState value) { SetState(value); return *this;}
119 private:
120
121 Aws::String m_arn;
122 bool m_arnHasBeenSet = false;
123
124 Aws::String m_createdBy;
125 bool m_createdByHasBeenSet = false;
126
127 Aws::Utils::DateTime m_creationTime{};
128 bool m_creationTimeHasBeenSet = false;
129
130 Aws::Utils::DateTime m_expirationTime{};
131 bool m_expirationTimeHasBeenSet = false;
132
133 Aws::String m_name;
134 bool m_nameHasBeenSet = false;
135
137 bool m_stateHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace CloudWatchEvents
142} // namespace Aws
const Aws::String & GetName() const
Definition EventSource.h:98
void SetCreatedBy(CreatedByT &&value)
Definition EventSource.h:64
EventSource & WithState(EventSourceState value)
const Aws::String & GetArn() const
Definition EventSource.h:49
const Aws::String & GetCreatedBy() const
Definition EventSource.h:61
AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
EventSource & WithName(NameT &&value)
const Aws::Utils::DateTime & GetExpirationTime() const
Definition EventSource.h:86
AWS_CLOUDWATCHEVENTS_API EventSource()=default
EventSource & WithCreatedBy(CreatedByT &&value)
Definition EventSource.h:66
void SetCreationTime(CreationTimeT &&value)
Definition EventSource.h:76
void SetState(EventSourceState value)
EventSource & WithCreationTime(CreationTimeT &&value)
Definition EventSource.h:78
void SetExpirationTime(ExpirationTimeT &&value)
Definition EventSource.h:89
AWS_CLOUDWATCHEVENTS_API EventSource(Aws::Utils::Json::JsonView jsonValue)
EventSource & WithExpirationTime(ExpirationTimeT &&value)
Definition EventSource.h:91
AWS_CLOUDWATCHEVENTS_API EventSource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreationTime() const
Definition EventSource.h:73
EventSource & WithArn(ArnT &&value)
Definition EventSource.h:54
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue