AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
CreateInstancesFromSnapshotResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lightsail/Lightsail_EXPORTS.h>
11#include <aws/lightsail/model/Operation.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Lightsail {
25namespace Model {
27 public:
28 AWS_LIGHTSAIL_API CreateInstancesFromSnapshotResult() = default;
31
33
38 inline const Aws::Vector<Operation>& GetOperations() const { return m_operations; }
39 template <typename OperationsT = Aws::Vector<Operation>>
40 void SetOperations(OperationsT&& value) {
41 m_operationsHasBeenSet = true;
42 m_operations = std::forward<OperationsT>(value);
43 }
44 template <typename OperationsT = Aws::Vector<Operation>>
46 SetOperations(std::forward<OperationsT>(value));
47 return *this;
48 }
49 template <typename OperationsT = Operation>
51 m_operationsHasBeenSet = true;
52 m_operations.emplace_back(std::forward<OperationsT>(value));
53 return *this;
54 }
56
58
59 inline const Aws::String& GetRequestId() const { return m_requestId; }
60 template <typename RequestIdT = Aws::String>
61 void SetRequestId(RequestIdT&& value) {
62 m_requestIdHasBeenSet = true;
63 m_requestId = std::forward<RequestIdT>(value);
64 }
65 template <typename RequestIdT = Aws::String>
67 SetRequestId(std::forward<RequestIdT>(value));
68 return *this;
69 }
71 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
72
73 private:
74 Aws::Vector<Operation> m_operations;
75
76 Aws::String m_requestId;
77 Aws::Http::HttpResponseCode m_HttpResponseCode;
78 bool m_operationsHasBeenSet = false;
79 bool m_requestIdHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace Lightsail
84} // namespace Aws
AWS_LIGHTSAIL_API CreateInstancesFromSnapshotResult()=default
AWS_LIGHTSAIL_API CreateInstancesFromSnapshotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateInstancesFromSnapshotResult & WithRequestId(RequestIdT &&value)
CreateInstancesFromSnapshotResult & AddOperations(OperationsT &&value)
CreateInstancesFromSnapshotResult & WithOperations(OperationsT &&value)
AWS_LIGHTSAIL_API CreateInstancesFromSnapshotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue