AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RestoreVolumeFromSnapshotResult.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/fsx/model/VolumeLifecycle.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/fsx/model/AdministrativeAction.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace FSx
27{
28namespace Model
29{
31 {
32 public:
36
37
39
42 inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
43 inline void SetVolumeId(const Aws::String& value) { m_volumeId = value; }
44 inline void SetVolumeId(Aws::String&& value) { m_volumeId = std::move(value); }
45 inline void SetVolumeId(const char* value) { m_volumeId.assign(value); }
46 inline RestoreVolumeFromSnapshotResult& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
47 inline RestoreVolumeFromSnapshotResult& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
48 inline RestoreVolumeFromSnapshotResult& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
50
52
55 inline const VolumeLifecycle& GetLifecycle() const{ return m_lifecycle; }
56 inline void SetLifecycle(const VolumeLifecycle& value) { m_lifecycle = value; }
57 inline void SetLifecycle(VolumeLifecycle&& value) { m_lifecycle = std::move(value); }
58 inline RestoreVolumeFromSnapshotResult& WithLifecycle(const VolumeLifecycle& value) { SetLifecycle(value); return *this;}
59 inline RestoreVolumeFromSnapshotResult& WithLifecycle(VolumeLifecycle&& value) { SetLifecycle(std::move(value)); return *this;}
61
63
68 inline const Aws::Vector<AdministrativeAction>& GetAdministrativeActions() const{ return m_administrativeActions; }
69 inline void SetAdministrativeActions(const Aws::Vector<AdministrativeAction>& value) { m_administrativeActions = value; }
70 inline void SetAdministrativeActions(Aws::Vector<AdministrativeAction>&& value) { m_administrativeActions = std::move(value); }
73 inline RestoreVolumeFromSnapshotResult& AddAdministrativeActions(const AdministrativeAction& value) { m_administrativeActions.push_back(value); return *this; }
74 inline RestoreVolumeFromSnapshotResult& AddAdministrativeActions(AdministrativeAction&& value) { m_administrativeActions.push_back(std::move(value)); return *this; }
76
78
79 inline const Aws::String& GetRequestId() const{ return m_requestId; }
80 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
81 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
82 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
83 inline RestoreVolumeFromSnapshotResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
84 inline RestoreVolumeFromSnapshotResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
85 inline RestoreVolumeFromSnapshotResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
87 private:
88
89 Aws::String m_volumeId;
90
91 VolumeLifecycle m_lifecycle;
92
93 Aws::Vector<AdministrativeAction> m_administrativeActions;
94
95 Aws::String m_requestId;
96 };
97
98} // namespace Model
99} // namespace FSx
100} // namespace Aws
RestoreVolumeFromSnapshotResult & WithLifecycle(VolumeLifecycle &&value)
RestoreVolumeFromSnapshotResult & WithLifecycle(const VolumeLifecycle &value)
RestoreVolumeFromSnapshotResult & WithAdministrativeActions(Aws::Vector< AdministrativeAction > &&value)
RestoreVolumeFromSnapshotResult & AddAdministrativeActions(const AdministrativeAction &value)
RestoreVolumeFromSnapshotResult & WithVolumeId(const char *value)
RestoreVolumeFromSnapshotResult & WithVolumeId(const Aws::String &value)
AWS_FSX_API RestoreVolumeFromSnapshotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
RestoreVolumeFromSnapshotResult & WithRequestId(const char *value)
RestoreVolumeFromSnapshotResult & WithRequestId(Aws::String &&value)
AWS_FSX_API RestoreVolumeFromSnapshotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
RestoreVolumeFromSnapshotResult & WithAdministrativeActions(const Aws::Vector< AdministrativeAction > &value)
const Aws::Vector< AdministrativeAction > & GetAdministrativeActions() const
void SetAdministrativeActions(Aws::Vector< AdministrativeAction > &&value)
RestoreVolumeFromSnapshotResult & WithVolumeId(Aws::String &&value)
RestoreVolumeFromSnapshotResult & WithRequestId(const Aws::String &value)
RestoreVolumeFromSnapshotResult & AddAdministrativeActions(AdministrativeAction &&value)
void SetAdministrativeActions(const Aws::Vector< AdministrativeAction > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue