AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArchiveName(const Aws::String& value) { m_archiveNameHasBeenSet = true; m_archiveName = value; }
50 inline void SetArchiveName(Aws::String&& value) { m_archiveNameHasBeenSet = true; m_archiveName = std::move(value); }
51 inline void SetArchiveName(const char* value) { m_archiveNameHasBeenSet = true; m_archiveName.assign(value); }
52 inline Archive& WithArchiveName(const Aws::String& value) { SetArchiveName(value); return *this;}
53 inline Archive& WithArchiveName(Aws::String&& value) { SetArchiveName(std::move(value)); return *this;}
54 inline Archive& WithArchiveName(const char* value) { SetArchiveName(value); return *this;}
56
58
62 inline const Aws::String& GetEventSourceArn() const{ return m_eventSourceArn; }
63 inline bool EventSourceArnHasBeenSet() const { return m_eventSourceArnHasBeenSet; }
64 inline void SetEventSourceArn(const Aws::String& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = value; }
65 inline void SetEventSourceArn(Aws::String&& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = std::move(value); }
66 inline void SetEventSourceArn(const char* value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn.assign(value); }
67 inline Archive& WithEventSourceArn(const Aws::String& value) { SetEventSourceArn(value); return *this;}
68 inline Archive& WithEventSourceArn(Aws::String&& value) { SetEventSourceArn(std::move(value)); return *this;}
69 inline Archive& WithEventSourceArn(const char* value) { SetEventSourceArn(value); return *this;}
71
73
76 inline const ArchiveState& GetState() const{ return m_state; }
77 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
78 inline void SetState(const ArchiveState& value) { m_stateHasBeenSet = true; m_state = value; }
79 inline void SetState(ArchiveState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
80 inline Archive& WithState(const ArchiveState& value) { SetState(value); return *this;}
81 inline Archive& WithState(ArchiveState&& value) { SetState(std::move(value)); return *this;}
83
85
88 inline const Aws::String& GetStateReason() const{ return m_stateReason; }
89 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
90 inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
91 inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); }
92 inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); }
93 inline Archive& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
94 inline Archive& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;}
95 inline Archive& WithStateReason(const char* value) { SetStateReason(value); return *this;}
97
99
103 inline int GetRetentionDays() const{ return m_retentionDays; }
104 inline bool RetentionDaysHasBeenSet() const { return m_retentionDaysHasBeenSet; }
105 inline void SetRetentionDays(int value) { m_retentionDaysHasBeenSet = true; m_retentionDays = value; }
106 inline Archive& WithRetentionDays(int value) { SetRetentionDays(value); return *this;}
108
110
113 inline long long GetSizeBytes() const{ return m_sizeBytes; }
114 inline bool SizeBytesHasBeenSet() const { return m_sizeBytesHasBeenSet; }
115 inline void SetSizeBytes(long long value) { m_sizeBytesHasBeenSet = true; m_sizeBytes = value; }
116 inline Archive& WithSizeBytes(long long value) { SetSizeBytes(value); return *this;}
118
120
123 inline long long GetEventCount() const{ return m_eventCount; }
124 inline bool EventCountHasBeenSet() const { return m_eventCountHasBeenSet; }
125 inline void SetEventCount(long long value) { m_eventCountHasBeenSet = true; m_eventCount = value; }
126 inline Archive& WithEventCount(long long value) { SetEventCount(value); return *this;}
128
130
133 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
134 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
135 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
136 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
137 inline Archive& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
138 inline Archive& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
140 private:
141
142 Aws::String m_archiveName;
143 bool m_archiveNameHasBeenSet = false;
144
145 Aws::String m_eventSourceArn;
146 bool m_eventSourceArnHasBeenSet = false;
147
148 ArchiveState m_state;
149 bool m_stateHasBeenSet = false;
150
151 Aws::String m_stateReason;
152 bool m_stateReasonHasBeenSet = false;
153
154 int m_retentionDays;
155 bool m_retentionDaysHasBeenSet = false;
156
157 long long m_sizeBytes;
158 bool m_sizeBytesHasBeenSet = false;
159
160 long long m_eventCount;
161 bool m_eventCountHasBeenSet = false;
162
163 Aws::Utils::DateTime m_creationTime;
164 bool m_creationTimeHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace EventBridge
169} // namespace Aws
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Archive.h:135
Archive & WithEventCount(long long value)
Definition Archive.h:126
void SetEventSourceArn(const Aws::String &value)
Definition Archive.h:64
AWS_EVENTBRIDGE_API Archive()
Archive & WithArchiveName(const char *value)
Definition Archive.h:54
void SetStateReason(Aws::String &&value)
Definition Archive.h:91
bool CreationTimeHasBeenSet() const
Definition Archive.h:134
Archive & WithArchiveName(const Aws::String &value)
Definition Archive.h:52
Archive & WithEventSourceArn(const char *value)
Definition Archive.h:69
const Aws::String & GetStateReason() const
Definition Archive.h:88
void SetEventSourceArn(Aws::String &&value)
Definition Archive.h:65
bool RetentionDaysHasBeenSet() const
Definition Archive.h:104
bool EventSourceArnHasBeenSet() const
Definition Archive.h:63
bool ArchiveNameHasBeenSet() const
Definition Archive.h:48
const Aws::String & GetEventSourceArn() const
Definition Archive.h:62
void SetStateReason(const Aws::String &value)
Definition Archive.h:90
AWS_EVENTBRIDGE_API Archive(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArchiveName() const
Definition Archive.h:47
Archive & WithEventSourceArn(const Aws::String &value)
Definition Archive.h:67
Archive & WithState(ArchiveState &&value)
Definition Archive.h:81
const Aws::Utils::DateTime & GetCreationTime() const
Definition Archive.h:133
void SetArchiveName(const Aws::String &value)
Definition Archive.h:49
void SetSizeBytes(long long value)
Definition Archive.h:115
Archive & WithState(const ArchiveState &value)
Definition Archive.h:80
void SetArchiveName(const char *value)
Definition Archive.h:51
Archive & WithEventSourceArn(Aws::String &&value)
Definition Archive.h:68
long long GetSizeBytes() const
Definition Archive.h:113
void SetEventSourceArn(const char *value)
Definition Archive.h:66
Archive & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Archive.h:138
Archive & WithRetentionDays(int value)
Definition Archive.h:106
void SetState(const ArchiveState &value)
Definition Archive.h:78
Archive & WithStateReason(Aws::String &&value)
Definition Archive.h:94
Archive & WithStateReason(const char *value)
Definition Archive.h:95
void SetState(ArchiveState &&value)
Definition Archive.h:79
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Archive.h:136
void SetStateReason(const char *value)
Definition Archive.h:92
Archive & WithArchiveName(Aws::String &&value)
Definition Archive.h:53
void SetArchiveName(Aws::String &&value)
Definition Archive.h:50
long long GetEventCount() const
Definition Archive.h:123
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EVENTBRIDGE_API Archive & operator=(Aws::Utils::Json::JsonView jsonValue)
Archive & WithStateReason(const Aws::String &value)
Definition Archive.h:93
void SetRetentionDays(int value)
Definition Archive.h:105
void SetEventCount(long long value)
Definition Archive.h:125
const ArchiveState & GetState() const
Definition Archive.h:76
bool StateReasonHasBeenSet() const
Definition Archive.h:89
Archive & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Archive.h:137
Archive & WithSizeBytes(long long value)
Definition Archive.h:116
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue