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

(Optional) A list of all invocations.

*/ inline const Aws::Vector& GetCommandInvocations() const{ return m_commandInvocations; } /** *

(Optional) A list of all invocations.

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

(Optional) A list of all invocations.

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

(Optional) A list of all invocations.

*/ inline ListCommandInvocationsResult& WithCommandInvocations(const Aws::Vector& value) { SetCommandInvocations(value); return *this;} /** *

(Optional) A list of all invocations.

*/ inline ListCommandInvocationsResult& WithCommandInvocations(Aws::Vector&& value) { SetCommandInvocations(std::move(value)); return *this;} /** *

(Optional) A list of all invocations.

*/ inline ListCommandInvocationsResult& AddCommandInvocations(const CommandInvocation& value) { m_commandInvocations.push_back(value); return *this; } /** *

(Optional) A list of all invocations.

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