AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeArchiveResult.h
1
6#pragma once
7#include <aws/events/CloudWatchEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/events/model/ArchiveState.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CloudWatchEvents
26{
27namespace Model
28{
30 {
31 public:
32 AWS_CLOUDWATCHEVENTS_API DescribeArchiveResult();
35
36
38
41 inline const Aws::String& GetArchiveArn() const{ return m_archiveArn; }
42 inline void SetArchiveArn(const Aws::String& value) { m_archiveArn = value; }
43 inline void SetArchiveArn(Aws::String&& value) { m_archiveArn = std::move(value); }
44 inline void SetArchiveArn(const char* value) { m_archiveArn.assign(value); }
45 inline DescribeArchiveResult& WithArchiveArn(const Aws::String& value) { SetArchiveArn(value); return *this;}
46 inline DescribeArchiveResult& WithArchiveArn(Aws::String&& value) { SetArchiveArn(std::move(value)); return *this;}
47 inline DescribeArchiveResult& WithArchiveArn(const char* value) { SetArchiveArn(value); return *this;}
49
51
54 inline const Aws::String& GetArchiveName() const{ return m_archiveName; }
55 inline void SetArchiveName(const Aws::String& value) { m_archiveName = value; }
56 inline void SetArchiveName(Aws::String&& value) { m_archiveName = std::move(value); }
57 inline void SetArchiveName(const char* value) { m_archiveName.assign(value); }
58 inline DescribeArchiveResult& WithArchiveName(const Aws::String& value) { SetArchiveName(value); return *this;}
59 inline DescribeArchiveResult& WithArchiveName(Aws::String&& value) { SetArchiveName(std::move(value)); return *this;}
60 inline DescribeArchiveResult& WithArchiveName(const char* value) { SetArchiveName(value); return *this;}
62
64
67 inline const Aws::String& GetEventSourceArn() const{ return m_eventSourceArn; }
68 inline void SetEventSourceArn(const Aws::String& value) { m_eventSourceArn = value; }
69 inline void SetEventSourceArn(Aws::String&& value) { m_eventSourceArn = std::move(value); }
70 inline void SetEventSourceArn(const char* value) { m_eventSourceArn.assign(value); }
71 inline DescribeArchiveResult& WithEventSourceArn(const Aws::String& value) { SetEventSourceArn(value); return *this;}
72 inline DescribeArchiveResult& WithEventSourceArn(Aws::String&& value) { SetEventSourceArn(std::move(value)); return *this;}
73 inline DescribeArchiveResult& WithEventSourceArn(const char* value) { SetEventSourceArn(value); return *this;}
75
77
80 inline const Aws::String& GetDescription() const{ return m_description; }
81 inline void SetDescription(const Aws::String& value) { m_description = value; }
82 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
83 inline void SetDescription(const char* value) { m_description.assign(value); }
84 inline DescribeArchiveResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
85 inline DescribeArchiveResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
86 inline DescribeArchiveResult& WithDescription(const char* value) { SetDescription(value); return *this;}
88
90
93 inline const Aws::String& GetEventPattern() const{ return m_eventPattern; }
94 inline void SetEventPattern(const Aws::String& value) { m_eventPattern = value; }
95 inline void SetEventPattern(Aws::String&& value) { m_eventPattern = std::move(value); }
96 inline void SetEventPattern(const char* value) { m_eventPattern.assign(value); }
97 inline DescribeArchiveResult& WithEventPattern(const Aws::String& value) { SetEventPattern(value); return *this;}
98 inline DescribeArchiveResult& WithEventPattern(Aws::String&& value) { SetEventPattern(std::move(value)); return *this;}
99 inline DescribeArchiveResult& WithEventPattern(const char* value) { SetEventPattern(value); return *this;}
101
103
106 inline const ArchiveState& GetState() const{ return m_state; }
107 inline void SetState(const ArchiveState& value) { m_state = value; }
108 inline void SetState(ArchiveState&& value) { m_state = std::move(value); }
109 inline DescribeArchiveResult& WithState(const ArchiveState& value) { SetState(value); return *this;}
110 inline DescribeArchiveResult& WithState(ArchiveState&& value) { SetState(std::move(value)); return *this;}
112
114
117 inline const Aws::String& GetStateReason() const{ return m_stateReason; }
118 inline void SetStateReason(const Aws::String& value) { m_stateReason = value; }
119 inline void SetStateReason(Aws::String&& value) { m_stateReason = std::move(value); }
120 inline void SetStateReason(const char* value) { m_stateReason.assign(value); }
121 inline DescribeArchiveResult& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
122 inline DescribeArchiveResult& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;}
123 inline DescribeArchiveResult& WithStateReason(const char* value) { SetStateReason(value); return *this;}
125
127
130 inline int GetRetentionDays() const{ return m_retentionDays; }
131 inline void SetRetentionDays(int value) { m_retentionDays = value; }
132 inline DescribeArchiveResult& WithRetentionDays(int value) { SetRetentionDays(value); return *this;}
134
136
139 inline long long GetSizeBytes() const{ return m_sizeBytes; }
140 inline void SetSizeBytes(long long value) { m_sizeBytes = value; }
141 inline DescribeArchiveResult& WithSizeBytes(long long value) { SetSizeBytes(value); return *this;}
143
145
148 inline long long GetEventCount() const{ return m_eventCount; }
149 inline void SetEventCount(long long value) { m_eventCount = value; }
150 inline DescribeArchiveResult& WithEventCount(long long value) { SetEventCount(value); return *this;}
152
154
157 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
158 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
159 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); }
160 inline DescribeArchiveResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
161 inline DescribeArchiveResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
163
165
166 inline const Aws::String& GetRequestId() const{ return m_requestId; }
167 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
168 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
169 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
170 inline DescribeArchiveResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
171 inline DescribeArchiveResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
172 inline DescribeArchiveResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
174 private:
175
176 Aws::String m_archiveArn;
177
178 Aws::String m_archiveName;
179
180 Aws::String m_eventSourceArn;
181
182 Aws::String m_description;
183
184 Aws::String m_eventPattern;
185
186 ArchiveState m_state;
187
188 Aws::String m_stateReason;
189
190 int m_retentionDays;
191
192 long long m_sizeBytes;
193
194 long long m_eventCount;
195
196 Aws::Utils::DateTime m_creationTime;
197
198 Aws::String m_requestId;
199 };
200
201} // namespace Model
202} // namespace CloudWatchEvents
203} // namespace Aws
DescribeArchiveResult & WithRequestId(const char *value)
DescribeArchiveResult & WithState(const ArchiveState &value)
DescribeArchiveResult & WithState(ArchiveState &&value)
DescribeArchiveResult & WithArchiveArn(const Aws::String &value)
void SetCreationTime(const Aws::Utils::DateTime &value)
DescribeArchiveResult & WithArchiveName(const Aws::String &value)
DescribeArchiveResult & WithArchiveArn(const char *value)
DescribeArchiveResult & WithStateReason(const Aws::String &value)
DescribeArchiveResult & WithEventCount(long long value)
DescribeArchiveResult & WithRequestId(const Aws::String &value)
DescribeArchiveResult & WithDescription(const char *value)
AWS_CLOUDWATCHEVENTS_API DescribeArchiveResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeArchiveResult & WithCreationTime(const Aws::Utils::DateTime &value)
DescribeArchiveResult & WithStateReason(const char *value)
DescribeArchiveResult & WithSizeBytes(long long value)
DescribeArchiveResult & WithCreationTime(Aws::Utils::DateTime &&value)
DescribeArchiveResult & WithDescription(Aws::String &&value)
DescribeArchiveResult & WithRequestId(Aws::String &&value)
DescribeArchiveResult & WithStateReason(Aws::String &&value)
DescribeArchiveResult & WithEventPattern(const char *value)
DescribeArchiveResult & WithEventSourceArn(const char *value)
DescribeArchiveResult & WithEventPattern(const Aws::String &value)
DescribeArchiveResult & WithEventSourceArn(const Aws::String &value)
DescribeArchiveResult & WithArchiveName(Aws::String &&value)
DescribeArchiveResult & WithArchiveArn(Aws::String &&value)
DescribeArchiveResult & WithEventPattern(Aws::String &&value)
DescribeArchiveResult & WithEventSourceArn(Aws::String &&value)
AWS_CLOUDWATCHEVENTS_API DescribeArchiveResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeArchiveResult & WithArchiveName(const char *value)
DescribeArchiveResult & WithDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue