AWS SDK for C++  1.9.20
AWS SDK for C++
RebootInstanceResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace Lightsail
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
41  inline const Aws::Vector<Operation>& GetOperations() const{ return m_operations; }
42 
48  inline void SetOperations(const Aws::Vector<Operation>& value) { m_operations = value; }
49 
55  inline void SetOperations(Aws::Vector<Operation>&& value) { m_operations = std::move(value); }
56 
62  inline RebootInstanceResult& WithOperations(const Aws::Vector<Operation>& value) { SetOperations(value); return *this;}
63 
69  inline RebootInstanceResult& WithOperations(Aws::Vector<Operation>&& value) { SetOperations(std::move(value)); return *this;}
70 
76  inline RebootInstanceResult& AddOperations(const Operation& value) { m_operations.push_back(value); return *this; }
77 
83  inline RebootInstanceResult& AddOperations(Operation&& value) { m_operations.push_back(std::move(value)); return *this; }
84 
85  private:
86 
87  Aws::Vector<Operation> m_operations;
88  };
89 
90 } // namespace Model
91 } // namespace Lightsail
92 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Lightsail::Model::RebootInstanceResult::AddOperations
RebootInstanceResult & AddOperations(Operation &&value)
Definition: RebootInstanceResult.h:83
Aws::Lightsail::Model::RebootInstanceResult::RebootInstanceResult
RebootInstanceResult()
Aws::Lightsail::Model::RebootInstanceResult::SetOperations
void SetOperations(Aws::Vector< Operation > &&value)
Definition: RebootInstanceResult.h:55
Aws::Lightsail::Model::RebootInstanceResult::WithOperations
RebootInstanceResult & WithOperations(const Aws::Vector< Operation > &value)
Definition: RebootInstanceResult.h:62
Aws::Lightsail::Model::Operation
Definition: Operation.h:37
Aws::Lightsail::Model::RebootInstanceResult::RebootInstanceResult
RebootInstanceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Lightsail::Model::RebootInstanceResult
Definition: RebootInstanceResult.h:29
Lightsail_EXPORTS.h
Aws::Lightsail::Model::RebootInstanceResult::GetOperations
const Aws::Vector< Operation > & GetOperations() const
Definition: RebootInstanceResult.h:41
Aws::Lightsail::Model::RebootInstanceResult::WithOperations
RebootInstanceResult & WithOperations(Aws::Vector< Operation > &&value)
Definition: RebootInstanceResult.h:69
Aws::Lightsail::Model::RebootInstanceResult::AddOperations
RebootInstanceResult & AddOperations(const Operation &value)
Definition: RebootInstanceResult.h:76
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::RebootInstanceResult::SetOperations
void SetOperations(const Aws::Vector< Operation > &value)
Definition: RebootInstanceResult.h:48
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Operation.h
Aws::Lightsail::Model::RebootInstanceResult::operator=
RebootInstanceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)