AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
35
36
38
41 inline const Aws::String& GetArchiveArn() const{ return m_archiveArn; }
42 inline void SetArchiveArn(const Aws::String& value) { m_archiveArn = value; }
43 inline void SetArchiveArn(Aws::String&& value) { m_archiveArn = std::move(value); }
44 inline void SetArchiveArn(const char* value) { m_archiveArn.assign(value); }
45 inline UpdateArchiveResult& WithArchiveArn(const Aws::String& value) { SetArchiveArn(value); return *this;}
46 inline UpdateArchiveResult& WithArchiveArn(Aws::String&& value) { SetArchiveArn(std::move(value)); return *this;}
47 inline UpdateArchiveResult& WithArchiveArn(const char* value) { SetArchiveArn(value); return *this;}
49
51
54 inline const ArchiveState& GetState() const{ return m_state; }
55 inline void SetState(const ArchiveState& value) { m_state = value; }
56 inline void SetState(ArchiveState&& value) { m_state = std::move(value); }
57 inline UpdateArchiveResult& WithState(const ArchiveState& value) { SetState(value); return *this;}
58 inline UpdateArchiveResult& WithState(ArchiveState&& value) { SetState(std::move(value)); return *this;}
60
62
65 inline const Aws::String& GetStateReason() const{ return m_stateReason; }
66 inline void SetStateReason(const Aws::String& value) { m_stateReason = value; }
67 inline void SetStateReason(Aws::String&& value) { m_stateReason = std::move(value); }
68 inline void SetStateReason(const char* value) { m_stateReason.assign(value); }
69 inline UpdateArchiveResult& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
70 inline UpdateArchiveResult& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;}
71 inline UpdateArchiveResult& WithStateReason(const char* value) { SetStateReason(value); return *this;}
73
75
78 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
79 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
80 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); }
81 inline UpdateArchiveResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
82 inline UpdateArchiveResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
84
86
87 inline const Aws::String& GetRequestId() const{ return m_requestId; }
88 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
89 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
90 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
91 inline UpdateArchiveResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
92 inline UpdateArchiveResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
93 inline UpdateArchiveResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
95 private:
96
97 Aws::String m_archiveArn;
98
99 ArchiveState m_state;
100
101 Aws::String m_stateReason;
102
103 Aws::Utils::DateTime m_creationTime;
104
105 Aws::String m_requestId;
106 };
107
108} // namespace Model
109} // namespace EventBridge
110} // namespace Aws
UpdateArchiveResult & WithState(const ArchiveState &value)
UpdateArchiveResult & WithCreationTime(const Aws::Utils::DateTime &value)
UpdateArchiveResult & WithStateReason(const Aws::String &value)
UpdateArchiveResult & WithStateReason(Aws::String &&value)
UpdateArchiveResult & WithState(ArchiveState &&value)
UpdateArchiveResult & WithCreationTime(Aws::Utils::DateTime &&value)
UpdateArchiveResult & WithArchiveArn(const char *value)
UpdateArchiveResult & WithRequestId(const char *value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetCreationTime(Aws::Utils::DateTime &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
UpdateArchiveResult & WithRequestId(Aws::String &&value)
UpdateArchiveResult & WithStateReason(const char *value)
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 & WithArchiveArn(const Aws::String &value)
UpdateArchiveResult & WithRequestId(const Aws::String &value)
void SetStateReason(const Aws::String &value)
UpdateArchiveResult & WithArchiveArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue