AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
41
42
44
49 inline const Aws::Vector<AgentVersion>& GetAgentVersions() const { return m_agentVersions; }
50 template<typename AgentVersionsT = Aws::Vector<AgentVersion>>
51 void SetAgentVersions(AgentVersionsT&& value) { m_agentVersionsHasBeenSet = true; m_agentVersions = std::forward<AgentVersionsT>(value); }
52 template<typename AgentVersionsT = Aws::Vector<AgentVersion>>
53 DescribeAgentVersionsResult& WithAgentVersions(AgentVersionsT&& value) { SetAgentVersions(std::forward<AgentVersionsT>(value)); return *this;}
54 template<typename AgentVersionsT = AgentVersion>
55 DescribeAgentVersionsResult& AddAgentVersions(AgentVersionsT&& value) { m_agentVersionsHasBeenSet = true; m_agentVersions.emplace_back(std::forward<AgentVersionsT>(value)); return *this; }
57
59
60 inline const Aws::String& GetRequestId() const { return m_requestId; }
61 template<typename RequestIdT = Aws::String>
62 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
63 template<typename RequestIdT = Aws::String>
64 DescribeAgentVersionsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
66 private:
67
68 Aws::Vector<AgentVersion> m_agentVersions;
69 bool m_agentVersionsHasBeenSet = false;
70
71 Aws::String m_requestId;
72 bool m_requestIdHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace OpsWorks
77} // namespace Aws
DescribeAgentVersionsResult & WithRequestId(RequestIdT &&value)
AWS_OPSWORKS_API DescribeAgentVersionsResult()=default
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 & AddAgentVersions(AgentVersionsT &&value)
DescribeAgentVersionsResult & WithAgentVersions(AgentVersionsT &&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