/** * 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 SSM { namespace Model { class ListCommandsResult { public: AWS_SSM_API ListCommandsResult(); AWS_SSM_API ListCommandsResult(const Aws::AmazonWebServiceResult& result); AWS_SSM_API ListCommandsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

(Optional) The list of commands requested by the user.

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

(Optional) The list of commands requested by the user.

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

(Optional) The list of commands requested by the user.

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

(Optional) The list of commands requested by the user.

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

(Optional) The list of commands requested by the user.

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

(Optional) The list of commands requested by the user.

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

(Optional) The list of commands requested by the user.

*/ inline ListCommandsResult& AddCommands(Command&& value) { m_commands.push_back(std::move(value)); return *this; } /** *

(Optional) The token for the next set of items to return. (You received this * token from a previous call.)

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

(Optional) The token for the next set of items to return. (You received this * token from a previous call.)

*/ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** *

(Optional) The token for the next set of items to return. (You received this * token from a previous call.)

*/ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** *

(Optional) The token for the next set of items to return. (You received this * token from a previous call.)

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

(Optional) The token for the next set of items to return. (You received this * token from a previous call.)

*/ inline ListCommandsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

(Optional) The token for the next set of items to return. (You received this * token from a previous call.)

*/ inline ListCommandsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

(Optional) The token for the next set of items to return. (You received this * token from a previous call.)

*/ inline ListCommandsResult& WithNextToken(const char* value) { SetNextToken(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 ListCommandsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListCommandsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListCommandsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_commands; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace SSM } // namespace Aws