AWS SDK for C++  1.9.16
AWS SDK for C++
GetInstancePortStatesResult.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 
40  inline const Aws::Vector<InstancePortState>& GetPortStates() const{ return m_portStates; }
41 
46  inline void SetPortStates(const Aws::Vector<InstancePortState>& value) { m_portStates = value; }
47 
52  inline void SetPortStates(Aws::Vector<InstancePortState>&& value) { m_portStates = std::move(value); }
53 
58  inline GetInstancePortStatesResult& WithPortStates(const Aws::Vector<InstancePortState>& value) { SetPortStates(value); return *this;}
59 
64  inline GetInstancePortStatesResult& WithPortStates(Aws::Vector<InstancePortState>&& value) { SetPortStates(std::move(value)); return *this;}
65 
70  inline GetInstancePortStatesResult& AddPortStates(const InstancePortState& value) { m_portStates.push_back(value); return *this; }
71 
76  inline GetInstancePortStatesResult& AddPortStates(InstancePortState&& value) { m_portStates.push_back(std::move(value)); return *this; }
77 
78  private:
79 
80  Aws::Vector<InstancePortState> m_portStates;
81  };
82 
83 } // namespace Model
84 } // namespace Lightsail
85 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Lightsail::Model::GetInstancePortStatesResult::WithPortStates
GetInstancePortStatesResult & WithPortStates(Aws::Vector< InstancePortState > &&value)
Definition: GetInstancePortStatesResult.h:64
Aws::Lightsail::Model::GetInstancePortStatesResult
Definition: GetInstancePortStatesResult.h:29
Aws::Lightsail::Model::GetInstancePortStatesResult::AddPortStates
GetInstancePortStatesResult & AddPortStates(InstancePortState &&value)
Definition: GetInstancePortStatesResult.h:76
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Lightsail::Model::GetInstancePortStatesResult::GetPortStates
const Aws::Vector< InstancePortState > & GetPortStates() const
Definition: GetInstancePortStatesResult.h:40
Aws::Lightsail::Model::GetInstancePortStatesResult::SetPortStates
void SetPortStates(const Aws::Vector< InstancePortState > &value)
Definition: GetInstancePortStatesResult.h:46
Aws::Lightsail::Model::InstancePortState
Definition: InstancePortState.h:36
Lightsail_EXPORTS.h
Aws::Lightsail::Model::GetInstancePortStatesResult::WithPortStates
GetInstancePortStatesResult & WithPortStates(const Aws::Vector< InstancePortState > &value)
Definition: GetInstancePortStatesResult.h:58
Aws::Lightsail::Model::GetInstancePortStatesResult::GetInstancePortStatesResult
GetInstancePortStatesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::GetInstancePortStatesResult::GetInstancePortStatesResult
GetInstancePortStatesResult()
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::GetInstancePortStatesResult::AddPortStates
GetInstancePortStatesResult & AddPortStates(const InstancePortState &value)
Definition: GetInstancePortStatesResult.h:70
Aws::Lightsail::Model::GetInstancePortStatesResult::SetPortStates
void SetPortStates(Aws::Vector< InstancePortState > &&value)
Definition: GetInstancePortStatesResult.h:52
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
InstancePortState.h
Aws::Lightsail::Model::GetInstancePortStatesResult::operator=
GetInstancePortStatesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)