AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
CreateArchiveResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/eventbridge/EventBridge_EXPORTS.h>
11#include <aws/eventbridge/model/ArchiveState.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace EventBridge {
25namespace Model {
27 public:
28 AWS_EVENTBRIDGE_API CreateArchiveResult() = default;
31
33
36 inline const Aws::String& GetArchiveArn() const { return m_archiveArn; }
37 template <typename ArchiveArnT = Aws::String>
38 void SetArchiveArn(ArchiveArnT&& value) {
39 m_archiveArnHasBeenSet = true;
40 m_archiveArn = std::forward<ArchiveArnT>(value);
41 }
42 template <typename ArchiveArnT = Aws::String>
43 CreateArchiveResult& WithArchiveArn(ArchiveArnT&& value) {
44 SetArchiveArn(std::forward<ArchiveArnT>(value));
45 return *this;
46 }
48
50
53 inline ArchiveState GetState() const { return m_state; }
54 inline void SetState(ArchiveState value) {
55 m_stateHasBeenSet = true;
56 m_state = value;
57 }
59 SetState(value);
60 return *this;
61 }
63
65
68 inline const Aws::String& GetStateReason() const { return m_stateReason; }
69 template <typename StateReasonT = Aws::String>
70 void SetStateReason(StateReasonT&& value) {
71 m_stateReasonHasBeenSet = true;
72 m_stateReason = std::forward<StateReasonT>(value);
73 }
74 template <typename StateReasonT = Aws::String>
75 CreateArchiveResult& WithStateReason(StateReasonT&& value) {
76 SetStateReason(std::forward<StateReasonT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
86 template <typename CreationTimeT = Aws::Utils::DateTime>
87 void SetCreationTime(CreationTimeT&& value) {
88 m_creationTimeHasBeenSet = true;
89 m_creationTime = std::forward<CreationTimeT>(value);
90 }
91 template <typename CreationTimeT = Aws::Utils::DateTime>
92 CreateArchiveResult& WithCreationTime(CreationTimeT&& value) {
93 SetCreationTime(std::forward<CreationTimeT>(value));
94 return *this;
95 }
97
99
100 inline const Aws::String& GetRequestId() const { return m_requestId; }
101 template <typename RequestIdT = Aws::String>
102 void SetRequestId(RequestIdT&& value) {
103 m_requestIdHasBeenSet = true;
104 m_requestId = std::forward<RequestIdT>(value);
105 }
106 template <typename RequestIdT = Aws::String>
107 CreateArchiveResult& WithRequestId(RequestIdT&& value) {
108 SetRequestId(std::forward<RequestIdT>(value));
109 return *this;
110 }
112 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
113
114 private:
115 Aws::String m_archiveArn;
116
118
119 Aws::String m_stateReason;
120
121 Aws::Utils::DateTime m_creationTime{};
122
123 Aws::String m_requestId;
124 Aws::Http::HttpResponseCode m_HttpResponseCode;
125 bool m_archiveArnHasBeenSet = false;
126 bool m_stateHasBeenSet = false;
127 bool m_stateReasonHasBeenSet = false;
128 bool m_creationTimeHasBeenSet = false;
129 bool m_requestIdHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace EventBridge
134} // namespace Aws
AWS_EVENTBRIDGE_API CreateArchiveResult()=default
CreateArchiveResult & WithStateReason(StateReasonT &&value)
CreateArchiveResult & WithRequestId(RequestIdT &&value)
AWS_EVENTBRIDGE_API CreateArchiveResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateArchiveResult & WithState(ArchiveState value)
CreateArchiveResult & WithCreationTime(CreationTimeT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateArchiveResult & WithArchiveArn(ArchiveArnT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
AWS_EVENTBRIDGE_API CreateArchiveResult(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