AWS SDK for C++  1.9.104
AWS SDK for C++
TestAlarmResult.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 TestAlarmResult& WithOperations(const Aws::Vector<Operation>& value) { SetOperations(value); return *this;}
63 
69  inline TestAlarmResult& WithOperations(Aws::Vector<Operation>&& value) { SetOperations(std::move(value)); return *this;}
70 
76  inline TestAlarmResult& AddOperations(const Operation& value) { m_operations.push_back(value); return *this; }
77 
83  inline TestAlarmResult& 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::TestAlarmResult::GetOperations
const Aws::Vector< Operation > & GetOperations() const
Definition: TestAlarmResult.h:41
Aws::Lightsail::Model::Operation
Definition: Operation.h:37
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::TestAlarmResult
Definition: TestAlarmResult.h:29
AWSVector.h
Aws::Lightsail::Model::TestAlarmResult::WithOperations
TestAlarmResult & WithOperations(Aws::Vector< Operation > &&value)
Definition: TestAlarmResult.h:69
Aws::Lightsail::Model::TestAlarmResult::TestAlarmResult
TestAlarmResult()
Aws::Lightsail::Model::TestAlarmResult::AddOperations
TestAlarmResult & AddOperations(Operation &&value)
Definition: TestAlarmResult.h:83
Aws::Lightsail::Model::TestAlarmResult::operator=
TestAlarmResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::TestAlarmResult::TestAlarmResult
TestAlarmResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::TestAlarmResult::SetOperations
void SetOperations(Aws::Vector< Operation > &&value)
Definition: TestAlarmResult.h:55
Lightsail_EXPORTS.h
Aws::Lightsail::Model::TestAlarmResult::AddOperations
TestAlarmResult & AddOperations(const Operation &value)
Definition: TestAlarmResult.h:76
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::TestAlarmResult::WithOperations
TestAlarmResult & WithOperations(const Aws::Vector< Operation > &value)
Definition: TestAlarmResult.h:62
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Operation.h
Aws::Lightsail::Model::TestAlarmResult::SetOperations
void SetOperations(const Aws::Vector< Operation > &value)
Definition: TestAlarmResult.h:48