AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateArchiveResult.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 UpdateArchiveResult() = 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 UpdateArchiveResult& WithArchiveArn(ArchiveArnT&& value) { SetArchiveArn(std::forward<ArchiveArnT>(value)); return *this;}
47
49
52 inline ArchiveState GetState() const { return m_state; }
53 inline void SetState(ArchiveState value) { m_stateHasBeenSet = true; m_state = value; }
54 inline UpdateArchiveResult& WithState(ArchiveState value) { SetState(value); return *this;}
56
58
61 inline const Aws::String& GetStateReason() const { return m_stateReason; }
62 template<typename StateReasonT = Aws::String>
63 void SetStateReason(StateReasonT&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::forward<StateReasonT>(value); }
64 template<typename StateReasonT = Aws::String>
65 UpdateArchiveResult& WithStateReason(StateReasonT&& value) { SetStateReason(std::forward<StateReasonT>(value)); return *this;}
67
69
72 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
73 template<typename CreationTimeT = Aws::Utils::DateTime>
74 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
75 template<typename CreationTimeT = Aws::Utils::DateTime>
76 UpdateArchiveResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
78
80
81 inline const Aws::String& GetRequestId() const { return m_requestId; }
82 template<typename RequestIdT = Aws::String>
83 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
84 template<typename RequestIdT = Aws::String>
85 UpdateArchiveResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
87 private:
88
89 Aws::String m_archiveArn;
90 bool m_archiveArnHasBeenSet = false;
91
93 bool m_stateHasBeenSet = false;
94
95 Aws::String m_stateReason;
96 bool m_stateReasonHasBeenSet = false;
97
98 Aws::Utils::DateTime m_creationTime{};
99 bool m_creationTimeHasBeenSet = false;
100
101 Aws::String m_requestId;
102 bool m_requestIdHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace EventBridge
107} // 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