AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeCommandsResult.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/opsworks/model/Command.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace OpsWorks
26{
27namespace Model
28{
36 {
37 public:
38 AWS_OPSWORKS_API DescribeCommandsResult() = default;
41
42
44
48 inline const Aws::Vector<Command>& GetCommands() const { return m_commands; }
49 template<typename CommandsT = Aws::Vector<Command>>
50 void SetCommands(CommandsT&& value) { m_commandsHasBeenSet = true; m_commands = std::forward<CommandsT>(value); }
51 template<typename CommandsT = Aws::Vector<Command>>
52 DescribeCommandsResult& WithCommands(CommandsT&& value) { SetCommands(std::forward<CommandsT>(value)); return *this;}
53 template<typename CommandsT = Command>
54 DescribeCommandsResult& AddCommands(CommandsT&& value) { m_commandsHasBeenSet = true; m_commands.emplace_back(std::forward<CommandsT>(value)); return *this; }
56
58
59 inline const Aws::String& GetRequestId() const { return m_requestId; }
60 template<typename RequestIdT = Aws::String>
61 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
62 template<typename RequestIdT = Aws::String>
63 DescribeCommandsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
65 private:
66
67 Aws::Vector<Command> m_commands;
68 bool m_commandsHasBeenSet = false;
69
70 Aws::String m_requestId;
71 bool m_requestIdHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace OpsWorks
76} // namespace Aws
DescribeCommandsResult & WithCommands(CommandsT &&value)
AWS_OPSWORKS_API DescribeCommandsResult()=default
AWS_OPSWORKS_API DescribeCommandsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeCommandsResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< Command > & GetCommands() const
AWS_OPSWORKS_API DescribeCommandsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeCommandsResult & AddCommands(CommandsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue