AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeArchiveResult.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{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace EventBridge
26{
27namespace Model
28{
30 {
31 public:
32 AWS_EVENTBRIDGE_API DescribeArchiveResult() = default;
35
36
38
41 inline const Aws::String& GetArchiveArn() const { return m_archiveArn; }
42 template<typename ArchiveArnT = Aws::String>
43 void SetArchiveArn(ArchiveArnT&& value) { m_archiveArnHasBeenSet = true; m_archiveArn = std::forward<ArchiveArnT>(value); }
44 template<typename ArchiveArnT = Aws::String>
45 DescribeArchiveResult& WithArchiveArn(ArchiveArnT&& value) { SetArchiveArn(std::forward<ArchiveArnT>(value)); return *this;}
47
49
52 inline const Aws::String& GetArchiveName() const { return m_archiveName; }
53 template<typename ArchiveNameT = Aws::String>
54 void SetArchiveName(ArchiveNameT&& value) { m_archiveNameHasBeenSet = true; m_archiveName = std::forward<ArchiveNameT>(value); }
55 template<typename ArchiveNameT = Aws::String>
56 DescribeArchiveResult& WithArchiveName(ArchiveNameT&& value) { SetArchiveName(std::forward<ArchiveNameT>(value)); return *this;}
58
60
63 inline const Aws::String& GetEventSourceArn() const { return m_eventSourceArn; }
64 template<typename EventSourceArnT = Aws::String>
65 void SetEventSourceArn(EventSourceArnT&& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = std::forward<EventSourceArnT>(value); }
66 template<typename EventSourceArnT = Aws::String>
67 DescribeArchiveResult& WithEventSourceArn(EventSourceArnT&& value) { SetEventSourceArn(std::forward<EventSourceArnT>(value)); return *this;}
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 template<typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
77 template<typename DescriptionT = Aws::String>
78 DescribeArchiveResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
80
82
85 inline const Aws::String& GetEventPattern() const { return m_eventPattern; }
86 template<typename EventPatternT = Aws::String>
87 void SetEventPattern(EventPatternT&& value) { m_eventPatternHasBeenSet = true; m_eventPattern = std::forward<EventPatternT>(value); }
88 template<typename EventPatternT = Aws::String>
89 DescribeArchiveResult& WithEventPattern(EventPatternT&& value) { SetEventPattern(std::forward<EventPatternT>(value)); return *this;}
91
93
96 inline ArchiveState GetState() const { return m_state; }
97 inline void SetState(ArchiveState value) { m_stateHasBeenSet = true; m_state = value; }
98 inline DescribeArchiveResult& WithState(ArchiveState value) { SetState(value); return *this;}
100
102
105 inline const Aws::String& GetStateReason() const { return m_stateReason; }
106 template<typename StateReasonT = Aws::String>
107 void SetStateReason(StateReasonT&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::forward<StateReasonT>(value); }
108 template<typename StateReasonT = Aws::String>
109 DescribeArchiveResult& WithStateReason(StateReasonT&& value) { SetStateReason(std::forward<StateReasonT>(value)); return *this;}
111
113
120 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
121 template<typename KmsKeyIdentifierT = Aws::String>
122 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) { m_kmsKeyIdentifierHasBeenSet = true; m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value); }
123 template<typename KmsKeyIdentifierT = Aws::String>
124 DescribeArchiveResult& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) { SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value)); return *this;}
126
128
131 inline int GetRetentionDays() const { return m_retentionDays; }
132 inline void SetRetentionDays(int value) { m_retentionDaysHasBeenSet = true; m_retentionDays = value; }
133 inline DescribeArchiveResult& WithRetentionDays(int value) { SetRetentionDays(value); return *this;}
135
137
140 inline long long GetSizeBytes() const { return m_sizeBytes; }
141 inline void SetSizeBytes(long long value) { m_sizeBytesHasBeenSet = true; m_sizeBytes = value; }
142 inline DescribeArchiveResult& WithSizeBytes(long long value) { SetSizeBytes(value); return *this;}
144
146
149 inline long long GetEventCount() const { return m_eventCount; }
150 inline void SetEventCount(long long value) { m_eventCountHasBeenSet = true; m_eventCount = value; }
151 inline DescribeArchiveResult& WithEventCount(long long value) { SetEventCount(value); return *this;}
153
155
158 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
159 template<typename CreationTimeT = Aws::Utils::DateTime>
160 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
161 template<typename CreationTimeT = Aws::Utils::DateTime>
162 DescribeArchiveResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
164
166
167 inline const Aws::String& GetRequestId() const { return m_requestId; }
168 template<typename RequestIdT = Aws::String>
169 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
170 template<typename RequestIdT = Aws::String>
171 DescribeArchiveResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
173 private:
174
175 Aws::String m_archiveArn;
176 bool m_archiveArnHasBeenSet = false;
177
178 Aws::String m_archiveName;
179 bool m_archiveNameHasBeenSet = false;
180
181 Aws::String m_eventSourceArn;
182 bool m_eventSourceArnHasBeenSet = false;
183
184 Aws::String m_description;
185 bool m_descriptionHasBeenSet = false;
186
187 Aws::String m_eventPattern;
188 bool m_eventPatternHasBeenSet = false;
189
191 bool m_stateHasBeenSet = false;
192
193 Aws::String m_stateReason;
194 bool m_stateReasonHasBeenSet = false;
195
196 Aws::String m_kmsKeyIdentifier;
197 bool m_kmsKeyIdentifierHasBeenSet = false;
198
199 int m_retentionDays{0};
200 bool m_retentionDaysHasBeenSet = false;
201
202 long long m_sizeBytes{0};
203 bool m_sizeBytesHasBeenSet = false;
204
205 long long m_eventCount{0};
206 bool m_eventCountHasBeenSet = false;
207
208 Aws::Utils::DateTime m_creationTime{};
209 bool m_creationTimeHasBeenSet = false;
210
211 Aws::String m_requestId;
212 bool m_requestIdHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace EventBridge
217} // namespace Aws
DescribeArchiveResult & WithEventSourceArn(EventSourceArnT &&value)
DescribeArchiveResult & WithRequestId(RequestIdT &&value)
AWS_EVENTBRIDGE_API DescribeArchiveResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeArchiveResult & WithArchiveName(ArchiveNameT &&value)
DescribeArchiveResult & WithEventCount(long long value)
DescribeArchiveResult & WithSizeBytes(long long value)
DescribeArchiveResult & WithDescription(DescriptionT &&value)
AWS_EVENTBRIDGE_API DescribeArchiveResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeArchiveResult & WithState(ArchiveState value)
DescribeArchiveResult & WithStateReason(StateReasonT &&value)
AWS_EVENTBRIDGE_API DescribeArchiveResult()=default
DescribeArchiveResult & WithEventPattern(EventPatternT &&value)
DescribeArchiveResult & WithArchiveArn(ArchiveArnT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
DescribeArchiveResult & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
DescribeArchiveResult & WithCreationTime(CreationTimeT &&value)
DescribeArchiveResult & WithRetentionDays(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue