AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeAgentVersionsResult.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/opsworks/model/AgentVersion.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace OpsWorks
26{
27namespace Model
28{
36 {
37 public:
38 AWS_OPSWORKS_API DescribeAgentVersionsResult();
41
42
44
49 inline const Aws::Vector<AgentVersion>& GetAgentVersions() const{ return m_agentVersions; }
50 inline void SetAgentVersions(const Aws::Vector<AgentVersion>& value) { m_agentVersions = value; }
51 inline void SetAgentVersions(Aws::Vector<AgentVersion>&& value) { m_agentVersions = std::move(value); }
54 inline DescribeAgentVersionsResult& AddAgentVersions(const AgentVersion& value) { m_agentVersions.push_back(value); return *this; }
55 inline DescribeAgentVersionsResult& AddAgentVersions(AgentVersion&& value) { m_agentVersions.push_back(std::move(value)); return *this; }
57
59
60 inline const Aws::String& GetRequestId() const{ return m_requestId; }
61 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
62 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
63 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
64 inline DescribeAgentVersionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
65 inline DescribeAgentVersionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
66 inline DescribeAgentVersionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
68 private:
69
70 Aws::Vector<AgentVersion> m_agentVersions;
71
72 Aws::String m_requestId;
73 };
74
75} // namespace Model
76} // namespace OpsWorks
77} // namespace Aws
DescribeAgentVersionsResult & WithRequestId(Aws::String &&value)
void SetAgentVersions(const Aws::Vector< AgentVersion > &value)
void SetAgentVersions(Aws::Vector< AgentVersion > &&value)
DescribeAgentVersionsResult & WithAgentVersions(Aws::Vector< AgentVersion > &&value)
DescribeAgentVersionsResult & WithRequestId(const char *value)
DescribeAgentVersionsResult & AddAgentVersions(AgentVersion &&value)
AWS_OPSWORKS_API DescribeAgentVersionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_OPSWORKS_API DescribeAgentVersionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< AgentVersion > & GetAgentVersions() const
DescribeAgentVersionsResult & WithRequestId(const Aws::String &value)
DescribeAgentVersionsResult & WithAgentVersions(const Aws::Vector< AgentVersion > &value)
DescribeAgentVersionsResult & AddAgentVersions(const AgentVersion &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue