AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Archive.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eventbridge/model/ArchiveState.h>
10#include <aws/core/utils/DateTime.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
34 class Archive
35 {
36 public:
37 AWS_EVENTBRIDGE_API Archive() = default;
38 AWS_EVENTBRIDGE_API Archive(Aws::Utils::Json::JsonView jsonValue);
39 AWS_EVENTBRIDGE_API Archive& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetArchiveName() const { return m_archiveName; }
48 inline bool ArchiveNameHasBeenSet() const { return m_archiveNameHasBeenSet; }
49 template<typename ArchiveNameT = Aws::String>
50 void SetArchiveName(ArchiveNameT&& value) { m_archiveNameHasBeenSet = true; m_archiveName = std::forward<ArchiveNameT>(value); }
51 template<typename ArchiveNameT = Aws::String>
52 Archive& WithArchiveName(ArchiveNameT&& value) { SetArchiveName(std::forward<ArchiveNameT>(value)); return *this;}
54
56
60 inline const Aws::String& GetEventSourceArn() const { return m_eventSourceArn; }
61 inline bool EventSourceArnHasBeenSet() const { return m_eventSourceArnHasBeenSet; }
62 template<typename EventSourceArnT = Aws::String>
63 void SetEventSourceArn(EventSourceArnT&& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = std::forward<EventSourceArnT>(value); }
64 template<typename EventSourceArnT = Aws::String>
65 Archive& WithEventSourceArn(EventSourceArnT&& value) { SetEventSourceArn(std::forward<EventSourceArnT>(value)); return *this;}
67
69
72 inline ArchiveState GetState() const { return m_state; }
73 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
74 inline void SetState(ArchiveState value) { m_stateHasBeenSet = true; m_state = value; }
75 inline Archive& WithState(ArchiveState value) { SetState(value); return *this;}
77
79
82 inline const Aws::String& GetStateReason() const { return m_stateReason; }
83 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
84 template<typename StateReasonT = Aws::String>
85 void SetStateReason(StateReasonT&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::forward<StateReasonT>(value); }
86 template<typename StateReasonT = Aws::String>
87 Archive& WithStateReason(StateReasonT&& value) { SetStateReason(std::forward<StateReasonT>(value)); return *this;}
89
91
95 inline int GetRetentionDays() const { return m_retentionDays; }
96 inline bool RetentionDaysHasBeenSet() const { return m_retentionDaysHasBeenSet; }
97 inline void SetRetentionDays(int value) { m_retentionDaysHasBeenSet = true; m_retentionDays = value; }
98 inline Archive& WithRetentionDays(int value) { SetRetentionDays(value); return *this;}
100
102
105 inline long long GetSizeBytes() const { return m_sizeBytes; }
106 inline bool SizeBytesHasBeenSet() const { return m_sizeBytesHasBeenSet; }
107 inline void SetSizeBytes(long long value) { m_sizeBytesHasBeenSet = true; m_sizeBytes = value; }
108 inline Archive& WithSizeBytes(long long value) { SetSizeBytes(value); return *this;}
110
112
115 inline long long GetEventCount() const { return m_eventCount; }
116 inline bool EventCountHasBeenSet() const { return m_eventCountHasBeenSet; }
117 inline void SetEventCount(long long value) { m_eventCountHasBeenSet = true; m_eventCount = value; }
118 inline Archive& WithEventCount(long long value) { SetEventCount(value); return *this;}
120
122
125 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
126 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
127 template<typename CreationTimeT = Aws::Utils::DateTime>
128 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
129 template<typename CreationTimeT = Aws::Utils::DateTime>
130 Archive& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
132 private:
133
134 Aws::String m_archiveName;
135 bool m_archiveNameHasBeenSet = false;
136
137 Aws::String m_eventSourceArn;
138 bool m_eventSourceArnHasBeenSet = false;
139
141 bool m_stateHasBeenSet = false;
142
143 Aws::String m_stateReason;
144 bool m_stateReasonHasBeenSet = false;
145
146 int m_retentionDays{0};
147 bool m_retentionDaysHasBeenSet = false;
148
149 long long m_sizeBytes{0};
150 bool m_sizeBytesHasBeenSet = false;
151
152 long long m_eventCount{0};
153 bool m_eventCountHasBeenSet = false;
154
155 Aws::Utils::DateTime m_creationTime{};
156 bool m_creationTimeHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace EventBridge
161} // namespace Aws
Archive & WithEventCount(long long value)
Definition Archive.h:118
Archive & WithState(ArchiveState value)
Definition Archive.h:75
bool CreationTimeHasBeenSet() const
Definition Archive.h:126
const Aws::String & GetStateReason() const
Definition Archive.h:82
bool RetentionDaysHasBeenSet() const
Definition Archive.h:96
bool EventSourceArnHasBeenSet() const
Definition Archive.h:61
bool ArchiveNameHasBeenSet() const
Definition Archive.h:48
const Aws::String & GetEventSourceArn() const
Definition Archive.h:60
AWS_EVENTBRIDGE_API Archive(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArchiveName() const
Definition Archive.h:47
const Aws::Utils::DateTime & GetCreationTime() const
Definition Archive.h:125
void SetSizeBytes(long long value)
Definition Archive.h:107
ArchiveState GetState() const
Definition Archive.h:72
long long GetSizeBytes() const
Definition Archive.h:105
void SetCreationTime(CreationTimeT &&value)
Definition Archive.h:128
Archive & WithRetentionDays(int value)
Definition Archive.h:98
void SetState(ArchiveState value)
Definition Archive.h:74
Archive & WithEventSourceArn(EventSourceArnT &&value)
Definition Archive.h:65
void SetEventSourceArn(EventSourceArnT &&value)
Definition Archive.h:63
void SetArchiveName(ArchiveNameT &&value)
Definition Archive.h:50
long long GetEventCount() const
Definition Archive.h:115
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
Archive & WithStateReason(StateReasonT &&value)
Definition Archive.h:87
AWS_EVENTBRIDGE_API Archive & operator=(Aws::Utils::Json::JsonView jsonValue)
Archive & WithArchiveName(ArchiveNameT &&value)
Definition Archive.h:52
void SetRetentionDays(int value)
Definition Archive.h:97
void SetEventCount(long long value)
Definition Archive.h:117
bool StateReasonHasBeenSet() const
Definition Archive.h:83
AWS_EVENTBRIDGE_API Archive()=default
Archive & WithCreationTime(CreationTimeT &&value)
Definition Archive.h:130
void SetStateReason(StateReasonT &&value)
Definition Archive.h:85
Archive & WithSizeBytes(long long value)
Definition Archive.h:108
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue