AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateArchiveResult.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 CreateArchiveResult();
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 CreateArchiveResult& WithArchiveArn(const Aws::String& value) { SetArchiveArn(value); return *this;}
46 inline CreateArchiveResult& WithArchiveArn(Aws::String&& value) { SetArchiveArn(std::move(value)); return *this;}
47 inline CreateArchiveResult& 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 CreateArchiveResult& WithState(const ArchiveState& value) { SetState(value); return *this;}
58 inline CreateArchiveResult& 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 CreateArchiveResult& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
70 inline CreateArchiveResult& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;}
71 inline CreateArchiveResult& 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 CreateArchiveResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
82 inline CreateArchiveResult& 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 CreateArchiveResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
92 inline CreateArchiveResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
93 inline CreateArchiveResult& 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 CloudWatchEvents
110} // namespace Aws
CreateArchiveResult & WithCreationTime(const Aws::Utils::DateTime &value)
CreateArchiveResult & WithStateReason(const char *value)
CreateArchiveResult & WithStateReason(const Aws::String &value)
CreateArchiveResult & WithStateReason(Aws::String &&value)
CreateArchiveResult & WithRequestId(const char *value)
CreateArchiveResult & WithState(ArchiveState &&value)
CreateArchiveResult & WithArchiveArn(Aws::String &&value)
void SetCreationTime(Aws::Utils::DateTime &&value)
CreateArchiveResult & WithArchiveArn(const Aws::String &value)
CreateArchiveResult & WithArchiveArn(const char *value)
CreateArchiveResult & WithCreationTime(Aws::Utils::DateTime &&value)
AWS_CLOUDWATCHEVENTS_API CreateArchiveResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateArchiveResult & WithState(const ArchiveState &value)
void SetCreationTime(const Aws::Utils::DateTime &value)
CreateArchiveResult & WithRequestId(const Aws::String &value)
CreateArchiveResult & WithRequestId(Aws::String &&value)
const Aws::Utils::DateTime & GetCreationTime() const
AWS_CLOUDWATCHEVENTS_API CreateArchiveResult & operator=(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