AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ExecuteCommandSessionConfiguration.h
1
6#pragma once
7#include <aws/codecatalyst/CodeCatalyst_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeCatalyst
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODECATALYST_API ExecuteCommandSessionConfiguration() = default;
39 AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetCommand() const { return m_command; }
48 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
49 template<typename CommandT = Aws::String>
50 void SetCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command = std::forward<CommandT>(value); }
51 template<typename CommandT = Aws::String>
52 ExecuteCommandSessionConfiguration& WithCommand(CommandT&& value) { SetCommand(std::forward<CommandT>(value)); return *this;}
54
56
59 inline const Aws::Vector<Aws::String>& GetArguments() const { return m_arguments; }
60 inline bool ArgumentsHasBeenSet() const { return m_argumentsHasBeenSet; }
61 template<typename ArgumentsT = Aws::Vector<Aws::String>>
62 void SetArguments(ArgumentsT&& value) { m_argumentsHasBeenSet = true; m_arguments = std::forward<ArgumentsT>(value); }
63 template<typename ArgumentsT = Aws::Vector<Aws::String>>
64 ExecuteCommandSessionConfiguration& WithArguments(ArgumentsT&& value) { SetArguments(std::forward<ArgumentsT>(value)); return *this;}
65 template<typename ArgumentsT = Aws::String>
66 ExecuteCommandSessionConfiguration& AddArguments(ArgumentsT&& value) { m_argumentsHasBeenSet = true; m_arguments.emplace_back(std::forward<ArgumentsT>(value)); return *this; }
68 private:
69
70 Aws::String m_command;
71 bool m_commandHasBeenSet = false;
72
73 Aws::Vector<Aws::String> m_arguments;
74 bool m_argumentsHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace CodeCatalyst
79} // namespace Aws
ExecuteCommandSessionConfiguration & AddArguments(ArgumentsT &&value)
AWS_CODECATALYST_API ExecuteCommandSessionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ExecuteCommandSessionConfiguration & WithCommand(CommandT &&value)
AWS_CODECATALYST_API ExecuteCommandSessionConfiguration(Aws::Utils::Json::JsonView jsonValue)
ExecuteCommandSessionConfiguration & WithArguments(ArgumentsT &&value)
AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODECATALYST_API ExecuteCommandSessionConfiguration()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue