/** * 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 DescribeCommands * request.

See Also:

AWS * API Reference

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

An array of Command objects that describe each of the specified * commands.

*/ inline const Aws::Vector& GetCommands() const{ return m_commands; } /** *

An array of Command objects that describe each of the specified * commands.

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

An array of Command objects that describe each of the specified * commands.

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

An array of Command objects that describe each of the specified * commands.

*/ inline DescribeCommandsResult& WithCommands(const Aws::Vector& value) { SetCommands(value); return *this;} /** *

An array of Command objects that describe each of the specified * commands.

*/ inline DescribeCommandsResult& WithCommands(Aws::Vector&& value) { SetCommands(std::move(value)); return *this;} /** *

An array of Command objects that describe each of the specified * commands.

*/ inline DescribeCommandsResult& AddCommands(const Command& value) { m_commands.push_back(value); return *this; } /** *

An array of Command objects that describe each of the specified * commands.

*/ inline DescribeCommandsResult& AddCommands(Command&& value) { m_commands.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 DescribeCommandsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeCommandsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeCommandsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_commands; Aws::String m_requestId; }; } // namespace Model } // namespace OpsWorks } // namespace Aws