AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateArchiveResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eventbridge/EventBridge_EXPORTS.h>
10#include <aws/eventbridge/model/ArchiveState.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace EventBridge {
24namespace Model {
26 public:
27 AWS_EVENTBRIDGE_API UpdateArchiveResult() = default;
30
32
35 inline const Aws::String& GetArchiveArn() const { return m_archiveArn; }
36 template <typename ArchiveArnT = Aws::String>
37 void SetArchiveArn(ArchiveArnT&& value) {
38 m_archiveArnHasBeenSet = true;
39 m_archiveArn = std::forward<ArchiveArnT>(value);
40 }
41 template <typename ArchiveArnT = Aws::String>
42 UpdateArchiveResult& WithArchiveArn(ArchiveArnT&& value) {
43 SetArchiveArn(std::forward<ArchiveArnT>(value));
44 return *this;
45 }
47
49
52 inline ArchiveState GetState() const { return m_state; }
53 inline void SetState(ArchiveState value) {
54 m_stateHasBeenSet = true;
55 m_state = value;
56 }
58 SetState(value);
59 return *this;
60 }
62
64
67 inline const Aws::String& GetStateReason() const { return m_stateReason; }
68 template <typename StateReasonT = Aws::String>
69 void SetStateReason(StateReasonT&& value) {
70 m_stateReasonHasBeenSet = true;
71 m_stateReason = std::forward<StateReasonT>(value);
72 }
73 template <typename StateReasonT = Aws::String>
74 UpdateArchiveResult& WithStateReason(StateReasonT&& value) {
75 SetStateReason(std::forward<StateReasonT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
85 template <typename CreationTimeT = Aws::Utils::DateTime>
86 void SetCreationTime(CreationTimeT&& value) {
87 m_creationTimeHasBeenSet = true;
88 m_creationTime = std::forward<CreationTimeT>(value);
89 }
90 template <typename CreationTimeT = Aws::Utils::DateTime>
91 UpdateArchiveResult& WithCreationTime(CreationTimeT&& value) {
92 SetCreationTime(std::forward<CreationTimeT>(value));
93 return *this;
94 }
96
98
99 inline const Aws::String& GetRequestId() const { return m_requestId; }
100 template <typename RequestIdT = Aws::String>
101 void SetRequestId(RequestIdT&& value) {
102 m_requestIdHasBeenSet = true;
103 m_requestId = std::forward<RequestIdT>(value);
104 }
105 template <typename RequestIdT = Aws::String>
106 UpdateArchiveResult& WithRequestId(RequestIdT&& value) {
107 SetRequestId(std::forward<RequestIdT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_archiveArn;
113
115
116 Aws::String m_stateReason;
117
118 Aws::Utils::DateTime m_creationTime{};
119
120 Aws::String m_requestId;
121 bool m_archiveArnHasBeenSet = false;
122 bool m_stateHasBeenSet = false;
123 bool m_stateReasonHasBeenSet = false;
124 bool m_creationTimeHasBeenSet = false;
125 bool m_requestIdHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace EventBridge
130} // namespace Aws
UpdateArchiveResult & WithRequestId(RequestIdT &&value)
UpdateArchiveResult & WithState(ArchiveState value)
UpdateArchiveResult & WithArchiveArn(ArchiveArnT &&value)
UpdateArchiveResult & WithStateReason(StateReasonT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
AWS_EVENTBRIDGE_API UpdateArchiveResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_EVENTBRIDGE_API UpdateArchiveResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateArchiveResult & WithCreationTime(CreationTimeT &&value)
AWS_EVENTBRIDGE_API UpdateArchiveResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue