/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace OpsWorks { namespace Model { /** *

Contains the response to a DescribeAgentVersions * request.

See Also:

AWS * API Reference

*/ class DescribeAgentVersionsResult { public: AWS_OPSWORKS_API DescribeAgentVersionsResult(); AWS_OPSWORKS_API DescribeAgentVersionsResult(const Aws::AmazonWebServiceResult& result); AWS_OPSWORKS_API DescribeAgentVersionsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The agent versions for the specified stack or configuration manager. Note * that this value is the complete version number, not the abbreviated number used * by the console.

*/ inline const Aws::Vector& GetAgentVersions() const{ return m_agentVersions; } /** *

The agent versions for the specified stack or configuration manager. Note * that this value is the complete version number, not the abbreviated number used * by the console.

*/ inline void SetAgentVersions(const Aws::Vector& value) { m_agentVersions = value; } /** *

The agent versions for the specified stack or configuration manager. Note * that this value is the complete version number, not the abbreviated number used * by the console.

*/ inline void SetAgentVersions(Aws::Vector&& value) { m_agentVersions = std::move(value); } /** *

The agent versions for the specified stack or configuration manager. Note * that this value is the complete version number, not the abbreviated number used * by the console.

*/ inline DescribeAgentVersionsResult& WithAgentVersions(const Aws::Vector& value) { SetAgentVersions(value); return *this;} /** *

The agent versions for the specified stack or configuration manager. Note * that this value is the complete version number, not the abbreviated number used * by the console.

*/ inline DescribeAgentVersionsResult& WithAgentVersions(Aws::Vector&& value) { SetAgentVersions(std::move(value)); return *this;} /** *

The agent versions for the specified stack or configuration manager. Note * that this value is the complete version number, not the abbreviated number used * by the console.

*/ inline DescribeAgentVersionsResult& AddAgentVersions(const AgentVersion& value) { m_agentVersions.push_back(value); return *this; } /** *

The agent versions for the specified stack or configuration manager. Note * that this value is the complete version number, not the abbreviated number used * by the console.

*/ inline DescribeAgentVersionsResult& AddAgentVersions(AgentVersion&& value) { m_agentVersions.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeAgentVersionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeAgentVersionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeAgentVersionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_agentVersions; Aws::String m_requestId; }; } // namespace Model } // namespace OpsWorks } // namespace Aws