AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EventSource.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 <aws/eventbridge/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 EventBridge
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_EVENTBRIDGE_API EventSource();
40 AWS_EVENTBRIDGE_API EventSource(Aws::Utils::Json::JsonView jsonValue);
41 AWS_EVENTBRIDGE_API EventSource& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_EVENTBRIDGE_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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
52 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
53 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
54 inline EventSource& WithArn(const Aws::String& value) { SetArn(value); return *this;}
55 inline EventSource& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
56 inline EventSource& WithArn(const char* value) { SetArn(value); return *this;}
58
60
63 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
64 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
65 inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
66 inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
67 inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); }
68 inline EventSource& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
69 inline EventSource& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
70 inline EventSource& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
72
74
77 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
78 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
79 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
80 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
81 inline EventSource& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
82 inline EventSource& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
84
86
90 inline const Aws::Utils::DateTime& GetExpirationTime() const{ return m_expirationTime; }
91 inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; }
92 inline void SetExpirationTime(const Aws::Utils::DateTime& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = value; }
93 inline void SetExpirationTime(Aws::Utils::DateTime&& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = std::move(value); }
94 inline EventSource& WithExpirationTime(const Aws::Utils::DateTime& value) { SetExpirationTime(value); return *this;}
95 inline EventSource& WithExpirationTime(Aws::Utils::DateTime&& value) { SetExpirationTime(std::move(value)); return *this;}
97
99
102 inline const Aws::String& GetName() const{ return m_name; }
103 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
104 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
105 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
106 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
107 inline EventSource& WithName(const Aws::String& value) { SetName(value); return *this;}
108 inline EventSource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
109 inline EventSource& WithName(const char* value) { SetName(value); return *this;}
111
113
120 inline const EventSourceState& GetState() const{ return m_state; }
121 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
122 inline void SetState(const EventSourceState& value) { m_stateHasBeenSet = true; m_state = value; }
123 inline void SetState(EventSourceState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
124 inline EventSource& WithState(const EventSourceState& value) { SetState(value); return *this;}
125 inline EventSource& WithState(EventSourceState&& value) { SetState(std::move(value)); return *this;}
127 private:
128
129 Aws::String m_arn;
130 bool m_arnHasBeenSet = false;
131
132 Aws::String m_createdBy;
133 bool m_createdByHasBeenSet = false;
134
135 Aws::Utils::DateTime m_creationTime;
136 bool m_creationTimeHasBeenSet = false;
137
138 Aws::Utils::DateTime m_expirationTime;
139 bool m_expirationTimeHasBeenSet = false;
140
141 Aws::String m_name;
142 bool m_nameHasBeenSet = false;
143
144 EventSourceState m_state;
145 bool m_stateHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace EventBridge
150} // namespace Aws
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
EventSource & WithState(EventSourceState &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition EventSource.h:79
EventSource & WithCreationTime(Aws::Utils::DateTime &&value)
Definition EventSource.h:82
AWS_EVENTBRIDGE_API EventSource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetState(EventSourceState &&value)
void SetState(const EventSourceState &value)
void SetName(const char *value)
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition EventSource.h:80
EventSource & WithExpirationTime(const Aws::Utils::DateTime &value)
Definition EventSource.h:94
void SetName(Aws::String &&value)
void SetArn(const char *value)
Definition EventSource.h:53
const EventSourceState & GetState() const
EventSource & WithCreatedBy(Aws::String &&value)
Definition EventSource.h:69
EventSource & WithExpirationTime(Aws::Utils::DateTime &&value)
Definition EventSource.h:95
void SetName(const Aws::String &value)
EventSource & WithCreatedBy(const Aws::String &value)
Definition EventSource.h:68
void SetArn(Aws::String &&value)
Definition EventSource.h:52
const Aws::Utils::DateTime & GetCreationTime() const
Definition EventSource.h:77
EventSource & WithArn(const Aws::String &value)
Definition EventSource.h:54
AWS_EVENTBRIDGE_API EventSource(Aws::Utils::Json::JsonView jsonValue)
void SetExpirationTime(const Aws::Utils::DateTime &value)
Definition EventSource.h:92
EventSource & WithCreatedBy(const char *value)
Definition EventSource.h:70
EventSource & WithName(Aws::String &&value)
EventSource & WithArn(Aws::String &&value)
Definition EventSource.h:55
AWS_EVENTBRIDGE_API EventSource()
EventSource & WithArn(const char *value)
Definition EventSource.h:56
const Aws::String & GetName() const
const Aws::String & GetArn() const
Definition EventSource.h:49
void SetCreatedBy(Aws::String &&value)
Definition EventSource.h:66
void SetCreatedBy(const Aws::String &value)
Definition EventSource.h:65
EventSource & WithName(const Aws::String &value)
void SetArn(const Aws::String &value)
Definition EventSource.h:51
const Aws::String & GetCreatedBy() const
Definition EventSource.h:63
void SetCreatedBy(const char *value)
Definition EventSource.h:67
EventSource & WithState(const EventSourceState &value)
void SetExpirationTime(Aws::Utils::DateTime &&value)
Definition EventSource.h:93
const Aws::Utils::DateTime & GetExpirationTime() const
Definition EventSource.h:90
EventSource & WithName(const char *value)
EventSource & WithCreationTime(const Aws::Utils::DateTime &value)
Definition EventSource.h:81
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue