AWS SDK for C++  1.8.129
AWS SDK for C++
DescribeAgentVersionsResult.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 OpsWorks
25 {
26 namespace Model
27 {
35  {
36  public:
40 
41 
47  inline const Aws::Vector<AgentVersion>& GetAgentVersions() const{ return m_agentVersions; }
48 
54  inline void SetAgentVersions(const Aws::Vector<AgentVersion>& value) { m_agentVersions = value; }
55 
61  inline void SetAgentVersions(Aws::Vector<AgentVersion>&& value) { m_agentVersions = std::move(value); }
62 
68  inline DescribeAgentVersionsResult& WithAgentVersions(const Aws::Vector<AgentVersion>& value) { SetAgentVersions(value); return *this;}
69 
75  inline DescribeAgentVersionsResult& WithAgentVersions(Aws::Vector<AgentVersion>&& value) { SetAgentVersions(std::move(value)); return *this;}
76 
82  inline DescribeAgentVersionsResult& AddAgentVersions(const AgentVersion& value) { m_agentVersions.push_back(value); return *this; }
83 
89  inline DescribeAgentVersionsResult& AddAgentVersions(AgentVersion&& value) { m_agentVersions.push_back(std::move(value)); return *this; }
90 
91  private:
92 
93  Aws::Vector<AgentVersion> m_agentVersions;
94  };
95 
96 } // namespace Model
97 } // namespace OpsWorks
98 } // namespace Aws
Aws::OpsWorks::Model::DescribeAgentVersionsResult::DescribeAgentVersionsResult
DescribeAgentVersionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::OpsWorks::Model::DescribeAgentVersionsResult::SetAgentVersions
void SetAgentVersions(const Aws::Vector< AgentVersion > &value)
Definition: DescribeAgentVersionsResult.h:54
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::OpsWorks::Model::DescribeAgentVersionsResult::AddAgentVersions
DescribeAgentVersionsResult & AddAgentVersions(AgentVersion &&value)
Definition: DescribeAgentVersionsResult.h:89
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::DescribeAgentVersionsResult::WithAgentVersions
DescribeAgentVersionsResult & WithAgentVersions(const Aws::Vector< AgentVersion > &value)
Definition: DescribeAgentVersionsResult.h:68
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::OpsWorks::Model::DescribeAgentVersionsResult::GetAgentVersions
const Aws::Vector< AgentVersion > & GetAgentVersions() const
Definition: DescribeAgentVersionsResult.h:47
AWSVector.h
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::DescribeAgentVersionsResult::SetAgentVersions
void SetAgentVersions(Aws::Vector< AgentVersion > &&value)
Definition: DescribeAgentVersionsResult.h:61
Aws::OpsWorks::Model::DescribeAgentVersionsResult
Definition: DescribeAgentVersionsResult.h:35
AgentVersion.h
Aws::OpsWorks::Model::DescribeAgentVersionsResult::WithAgentVersions
DescribeAgentVersionsResult & WithAgentVersions(Aws::Vector< AgentVersion > &&value)
Definition: DescribeAgentVersionsResult.h:75
Aws::OpsWorks::Model::DescribeAgentVersionsResult::operator=
DescribeAgentVersionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::DescribeAgentVersionsResult::DescribeAgentVersionsResult
DescribeAgentVersionsResult()
Aws::OpsWorks::Model::DescribeAgentVersionsResult::AddAgentVersions
DescribeAgentVersionsResult & AddAgentVersions(const AgentVersion &value)
Definition: DescribeAgentVersionsResult.h:82
Aws::OpsWorks::Model::AgentVersion
Definition: AgentVersion.h:33