1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/ssm/SSM_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSVector.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/ssm/model/Command.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 template<typename RESULT_TYPE> 16 class AmazonWebServiceResult; 17 18 namespace Utils 19 { 20 namespace Json 21 { 22 class JsonValue; 23 } // namespace Json 24 } // namespace Utils 25 namespace SSM 26 { 27 namespace Model 28 { 29 class AWS_SSM_API ListCommandsResult 30 { 31 public: 32 ListCommandsResult(); 33 ListCommandsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 ListCommandsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 35 36 37 /** 38 * <p>(Optional) The list of commands requested by the user. </p> 39 */ GetCommands()40 inline const Aws::Vector<Command>& GetCommands() const{ return m_commands; } 41 42 /** 43 * <p>(Optional) The list of commands requested by the user. </p> 44 */ SetCommands(const Aws::Vector<Command> & value)45 inline void SetCommands(const Aws::Vector<Command>& value) { m_commands = value; } 46 47 /** 48 * <p>(Optional) The list of commands requested by the user. </p> 49 */ SetCommands(Aws::Vector<Command> && value)50 inline void SetCommands(Aws::Vector<Command>&& value) { m_commands = std::move(value); } 51 52 /** 53 * <p>(Optional) The list of commands requested by the user. </p> 54 */ WithCommands(const Aws::Vector<Command> & value)55 inline ListCommandsResult& WithCommands(const Aws::Vector<Command>& value) { SetCommands(value); return *this;} 56 57 /** 58 * <p>(Optional) The list of commands requested by the user. </p> 59 */ WithCommands(Aws::Vector<Command> && value)60 inline ListCommandsResult& WithCommands(Aws::Vector<Command>&& value) { SetCommands(std::move(value)); return *this;} 61 62 /** 63 * <p>(Optional) The list of commands requested by the user. </p> 64 */ AddCommands(const Command & value)65 inline ListCommandsResult& AddCommands(const Command& value) { m_commands.push_back(value); return *this; } 66 67 /** 68 * <p>(Optional) The list of commands requested by the user. </p> 69 */ AddCommands(Command && value)70 inline ListCommandsResult& AddCommands(Command&& value) { m_commands.push_back(std::move(value)); return *this; } 71 72 73 /** 74 * <p>(Optional) The token for the next set of items to return. (You received this 75 * token from a previous call.)</p> 76 */ GetNextToken()77 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 78 79 /** 80 * <p>(Optional) The token for the next set of items to return. (You received this 81 * token from a previous call.)</p> 82 */ SetNextToken(const Aws::String & value)83 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } 84 85 /** 86 * <p>(Optional) The token for the next set of items to return. (You received this 87 * token from a previous call.)</p> 88 */ SetNextToken(Aws::String && value)89 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } 90 91 /** 92 * <p>(Optional) The token for the next set of items to return. (You received this 93 * token from a previous call.)</p> 94 */ SetNextToken(const char * value)95 inline void SetNextToken(const char* value) { m_nextToken.assign(value); } 96 97 /** 98 * <p>(Optional) The token for the next set of items to return. (You received this 99 * token from a previous call.)</p> 100 */ WithNextToken(const Aws::String & value)101 inline ListCommandsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 102 103 /** 104 * <p>(Optional) The token for the next set of items to return. (You received this 105 * token from a previous call.)</p> 106 */ WithNextToken(Aws::String && value)107 inline ListCommandsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 108 109 /** 110 * <p>(Optional) The token for the next set of items to return. (You received this 111 * token from a previous call.)</p> 112 */ WithNextToken(const char * value)113 inline ListCommandsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} 114 115 private: 116 117 Aws::Vector<Command> m_commands; 118 119 Aws::String m_nextToken; 120 }; 121 122 } // namespace Model 123 } // namespace SSM 124 } // namespace Aws 125