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/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() = 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
116 inline int GetRetentionDays() const { return m_retentionDays; }
117 inline void SetRetentionDays(int value) { m_retentionDaysHasBeenSet = true; m_retentionDays = value; }
118 inline DescribeArchiveResult& WithRetentionDays(int value) { SetRetentionDays(value); return *this;}
120
122
125 inline long long GetSizeBytes() const { return m_sizeBytes; }
126 inline void SetSizeBytes(long long value) { m_sizeBytesHasBeenSet = true; m_sizeBytes = value; }
127 inline DescribeArchiveResult& WithSizeBytes(long long value) { SetSizeBytes(value); return *this;}
129
131
134 inline long long GetEventCount() const { return m_eventCount; }
135 inline void SetEventCount(long long value) { m_eventCountHasBeenSet = true; m_eventCount = value; }
136 inline DescribeArchiveResult& WithEventCount(long long value) { SetEventCount(value); return *this;}
138
140
143 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
144 template<typename CreationTimeT = Aws::Utils::DateTime>
145 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
146 template<typename CreationTimeT = Aws::Utils::DateTime>
147 DescribeArchiveResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
149
151
152 inline const Aws::String& GetRequestId() const { return m_requestId; }
153 template<typename RequestIdT = Aws::String>
154 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
155 template<typename RequestIdT = Aws::String>
156 DescribeArchiveResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
158 private:
159
160 Aws::String m_archiveArn;
161 bool m_archiveArnHasBeenSet = false;
162
163 Aws::String m_archiveName;
164 bool m_archiveNameHasBeenSet = false;
165
166 Aws::String m_eventSourceArn;
167 bool m_eventSourceArnHasBeenSet = false;
168
169 Aws::String m_description;
170 bool m_descriptionHasBeenSet = false;
171
172 Aws::String m_eventPattern;
173 bool m_eventPatternHasBeenSet = false;
174
176 bool m_stateHasBeenSet = false;
177
178 Aws::String m_stateReason;
179 bool m_stateReasonHasBeenSet = false;
180
181 int m_retentionDays{0};
182 bool m_retentionDaysHasBeenSet = false;
183
184 long long m_sizeBytes{0};
185 bool m_sizeBytesHasBeenSet = false;
186
187 long long m_eventCount{0};
188 bool m_eventCountHasBeenSet = false;
189
190 Aws::Utils::DateTime m_creationTime{};
191 bool m_creationTimeHasBeenSet = false;
192
193 Aws::String m_requestId;
194 bool m_requestIdHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace CloudWatchEvents
199} // namespace Aws
DescribeArchiveResult & WithArchiveArn(ArchiveArnT &&value)
DescribeArchiveResult & WithCreationTime(CreationTimeT &&value)
DescribeArchiveResult & WithState(ArchiveState value)
DescribeArchiveResult & WithEventCount(long long value)
DescribeArchiveResult & WithEventSourceArn(EventSourceArnT &&value)
AWS_CLOUDWATCHEVENTS_API DescribeArchiveResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeArchiveResult & WithStateReason(StateReasonT &&value)
DescribeArchiveResult & WithRequestId(RequestIdT &&value)
AWS_CLOUDWATCHEVENTS_API DescribeArchiveResult()=default
DescribeArchiveResult & WithDescription(DescriptionT &&value)
DescribeArchiveResult & WithSizeBytes(long long value)
DescribeArchiveResult & WithArchiveName(ArchiveNameT &&value)
DescribeArchiveResult & WithEventPattern(EventPatternT &&value)
AWS_CLOUDWATCHEVENTS_API DescribeArchiveResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue