AWS SDK for C++  1.9.105
AWS SDK for C++
GetOperationResult.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 template<typename RESULT_TYPE>
14 class AmazonWebServiceResult;
15 
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21 } // namespace Json
22 } // namespace Utils
23 namespace ServiceDiscovery
24 {
25 namespace Model
26 {
28  {
29  public:
33 
34 
38  inline const Operation& GetOperation() const{ return m_operation; }
39 
43  inline void SetOperation(const Operation& value) { m_operation = value; }
44 
48  inline void SetOperation(Operation&& value) { m_operation = std::move(value); }
49 
53  inline GetOperationResult& WithOperation(const Operation& value) { SetOperation(value); return *this;}
54 
58  inline GetOperationResult& WithOperation(Operation&& value) { SetOperation(std::move(value)); return *this;}
59 
60  private:
61 
62  Operation m_operation;
63  };
64 
65 } // namespace Model
66 } // namespace ServiceDiscovery
67 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ServiceDiscovery::Model::GetOperationResult::WithOperation
GetOperationResult & WithOperation(const Operation &value)
Definition: GetOperationResult.h:53
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::GetOperationResult
Definition: GetOperationResult.h:28
Aws::ServiceDiscovery::Model::GetOperationResult::GetOperationResult
GetOperationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ServiceDiscovery::Model::GetOperationResult::SetOperation
void SetOperation(const Operation &value)
Definition: GetOperationResult.h:43
Aws::ServiceDiscovery::Model::GetOperationResult::operator=
GetOperationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ServiceDiscovery::Model::Operation
Definition: Operation.h:38
Aws::ServiceDiscovery::Model::GetOperationResult::GetOperationResult
GetOperationResult()
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::GetOperationResult::GetOperation
const Operation & GetOperation() const
Definition: GetOperationResult.h:38
Aws::ServiceDiscovery::Model::GetOperationResult::WithOperation
GetOperationResult & WithOperation(Operation &&value)
Definition: GetOperationResult.h:58
Aws::ServiceDiscovery::Model::GetOperationResult::SetOperation
void SetOperation(Operation &&value)
Definition: GetOperationResult.h:48
Operation.h