AWS SDK for C++  1.9.103
AWS SDK for C++
OpenInstancePublicPortsResult.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 Lightsail
24 {
25 namespace Model
26 {
28  {
29  public:
33 
34 
40  inline const Operation& GetOperation() const{ return m_operation; }
41 
47  inline void SetOperation(const Operation& value) { m_operation = value; }
48 
54  inline void SetOperation(Operation&& value) { m_operation = std::move(value); }
55 
61  inline OpenInstancePublicPortsResult& WithOperation(const Operation& value) { SetOperation(value); return *this;}
62 
68  inline OpenInstancePublicPortsResult& WithOperation(Operation&& value) { SetOperation(std::move(value)); return *this;}
69 
70  private:
71 
72  Operation m_operation;
73  };
74 
75 } // namespace Model
76 } // namespace Lightsail
77 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Lightsail::Model::OpenInstancePublicPortsResult::OpenInstancePublicPortsResult
OpenInstancePublicPortsResult()
Aws::Lightsail::Model::OpenInstancePublicPortsResult::OpenInstancePublicPortsResult
OpenInstancePublicPortsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::Operation
Definition: Operation.h:37
Aws::Lightsail::Model::OpenInstancePublicPortsResult::WithOperation
OpenInstancePublicPortsResult & WithOperation(const Operation &value)
Definition: OpenInstancePublicPortsResult.h:61
Aws::Lightsail::Model::OpenInstancePublicPortsResult::SetOperation
void SetOperation(const Operation &value)
Definition: OpenInstancePublicPortsResult.h:47
Aws::Lightsail::Model::OpenInstancePublicPortsResult::GetOperation
const Operation & GetOperation() const
Definition: OpenInstancePublicPortsResult.h:40
Lightsail_EXPORTS.h
Aws::Lightsail::Model::OpenInstancePublicPortsResult
Definition: OpenInstancePublicPortsResult.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::OpenInstancePublicPortsResult::WithOperation
OpenInstancePublicPortsResult & WithOperation(Operation &&value)
Definition: OpenInstancePublicPortsResult.h:68
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Operation.h
Aws::Lightsail::Model::OpenInstancePublicPortsResult::operator=
OpenInstancePublicPortsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::OpenInstancePublicPortsResult::SetOperation
void SetOperation(Operation &&value)
Definition: OpenInstancePublicPortsResult.h:54