AWS SDK for C++  1.9.129
AWS SDK for C++
DescribeHostedConnectionsResult.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 DirectConnect
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const Aws::Vector<Connection>& GetConnections() const{ return m_connections; }
40 
44  inline void SetConnections(const Aws::Vector<Connection>& value) { m_connections = value; }
45 
49  inline void SetConnections(Aws::Vector<Connection>&& value) { m_connections = std::move(value); }
50 
54  inline DescribeHostedConnectionsResult& WithConnections(const Aws::Vector<Connection>& value) { SetConnections(value); return *this;}
55 
59  inline DescribeHostedConnectionsResult& WithConnections(Aws::Vector<Connection>&& value) { SetConnections(std::move(value)); return *this;}
60 
64  inline DescribeHostedConnectionsResult& AddConnections(const Connection& value) { m_connections.push_back(value); return *this; }
65 
69  inline DescribeHostedConnectionsResult& AddConnections(Connection&& value) { m_connections.push_back(std::move(value)); return *this; }
70 
71  private:
72 
73  Aws::Vector<Connection> m_connections;
74  };
75 
76 } // namespace Model
77 } // namespace DirectConnect
78 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::DirectConnect::Model::Connection
Definition: Connection.h:38
Aws::DirectConnect::Model::DescribeHostedConnectionsResult::operator=
DescribeHostedConnectionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::DirectConnect::Model::DescribeHostedConnectionsResult::SetConnections
void SetConnections(const Aws::Vector< Connection > &value)
Definition: DescribeHostedConnectionsResult.h:44
Aws::DirectConnect::Model::DescribeHostedConnectionsResult::WithConnections
DescribeHostedConnectionsResult & WithConnections(Aws::Vector< Connection > &&value)
Definition: DescribeHostedConnectionsResult.h:59
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
DirectConnect_EXPORTS.h
AWSVector.h
Aws::DirectConnect::Model::DescribeHostedConnectionsResult
Definition: DescribeHostedConnectionsResult.h:29
Aws::DirectConnect::Model::DescribeHostedConnectionsResult::AddConnections
DescribeHostedConnectionsResult & AddConnections(const Connection &value)
Definition: DescribeHostedConnectionsResult.h:64
Aws::DirectConnect::Model::DescribeHostedConnectionsResult::AddConnections
DescribeHostedConnectionsResult & AddConnections(Connection &&value)
Definition: DescribeHostedConnectionsResult.h:69
Aws::DirectConnect::Model::DescribeHostedConnectionsResult::DescribeHostedConnectionsResult
DescribeHostedConnectionsResult()
Aws::DirectConnect::Model::DescribeHostedConnectionsResult::DescribeHostedConnectionsResult
DescribeHostedConnectionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::DirectConnect::Model::DescribeHostedConnectionsResult::GetConnections
const Aws::Vector< Connection > & GetConnections() const
Definition: DescribeHostedConnectionsResult.h:39
Aws
Definition: AccessManagementClient.h:15
Connection.h
Aws::DirectConnect::Model::DescribeHostedConnectionsResult::WithConnections
DescribeHostedConnectionsResult & WithConnections(const Aws::Vector< Connection > &value)
Definition: DescribeHostedConnectionsResult.h:54
AWS_DIRECTCONNECT_API
#define AWS_DIRECTCONNECT_API
Definition: DirectConnect_EXPORTS.h:28
Aws::DirectConnect::Model::DescribeHostedConnectionsResult::SetConnections
void SetConnections(Aws::Vector< Connection > &&value)
Definition: DescribeHostedConnectionsResult.h:49