AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RestoreSnapshotTierResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/ec2/model/ResponseMetadata.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Xml
21{
22 class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace EC2
26{
27namespace Model
28{
30 {
31 public:
35
36
38
41 inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
42 inline void SetSnapshotId(const Aws::String& value) { m_snapshotId = value; }
43 inline void SetSnapshotId(Aws::String&& value) { m_snapshotId = std::move(value); }
44 inline void SetSnapshotId(const char* value) { m_snapshotId.assign(value); }
45 inline RestoreSnapshotTierResponse& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
46 inline RestoreSnapshotTierResponse& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
47 inline RestoreSnapshotTierResponse& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
49
51
54 inline const Aws::Utils::DateTime& GetRestoreStartTime() const{ return m_restoreStartTime; }
55 inline void SetRestoreStartTime(const Aws::Utils::DateTime& value) { m_restoreStartTime = value; }
56 inline void SetRestoreStartTime(Aws::Utils::DateTime&& value) { m_restoreStartTime = std::move(value); }
60
62
66 inline int GetRestoreDuration() const{ return m_restoreDuration; }
67 inline void SetRestoreDuration(int value) { m_restoreDuration = value; }
68 inline RestoreSnapshotTierResponse& WithRestoreDuration(int value) { SetRestoreDuration(value); return *this;}
70
72
77 inline bool GetIsPermanentRestore() const{ return m_isPermanentRestore; }
78 inline void SetIsPermanentRestore(bool value) { m_isPermanentRestore = value; }
81
83
84 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
85 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
86 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
88 inline RestoreSnapshotTierResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
90 private:
91
92 Aws::String m_snapshotId;
93
94 Aws::Utils::DateTime m_restoreStartTime;
95
96 int m_restoreDuration;
97
98 bool m_isPermanentRestore;
99
100 ResponseMetadata m_responseMetadata;
101 };
102
103} // namespace Model
104} // namespace EC2
105} // namespace Aws
RestoreSnapshotTierResponse & WithSnapshotId(Aws::String &&value)
RestoreSnapshotTierResponse & WithSnapshotId(const Aws::String &value)
void SetRestoreStartTime(Aws::Utils::DateTime &&value)
void SetRestoreStartTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetRestoreStartTime() const
RestoreSnapshotTierResponse & WithIsPermanentRestore(bool value)
RestoreSnapshotTierResponse & WithResponseMetadata(const ResponseMetadata &value)
RestoreSnapshotTierResponse & WithResponseMetadata(ResponseMetadata &&value)
RestoreSnapshotTierResponse & WithRestoreStartTime(Aws::Utils::DateTime &&value)
RestoreSnapshotTierResponse & WithRestoreDuration(int value)
AWS_EC2_API RestoreSnapshotTierResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_EC2_API RestoreSnapshotTierResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
RestoreSnapshotTierResponse & WithSnapshotId(const char *value)
void SetResponseMetadata(const ResponseMetadata &value)
RestoreSnapshotTierResponse & WithRestoreStartTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument