AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LaunchConfig.h
1
6#pragma once
7#include <aws/robomaker/RoboMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/robomaker/model/PortForwardingConfig.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace RoboMaker
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_ROBOMAKER_API LaunchConfig() = default;
38 AWS_ROBOMAKER_API LaunchConfig(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ROBOMAKER_API LaunchConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetPackageName() const { return m_packageName; }
48 inline bool PackageNameHasBeenSet() const { return m_packageNameHasBeenSet; }
49 template<typename PackageNameT = Aws::String>
50 void SetPackageName(PackageNameT&& value) { m_packageNameHasBeenSet = true; m_packageName = std::forward<PackageNameT>(value); }
51 template<typename PackageNameT = Aws::String>
52 LaunchConfig& WithPackageName(PackageNameT&& value) { SetPackageName(std::forward<PackageNameT>(value)); return *this;}
54
56
59 inline const Aws::String& GetLaunchFile() const { return m_launchFile; }
60 inline bool LaunchFileHasBeenSet() const { return m_launchFileHasBeenSet; }
61 template<typename LaunchFileT = Aws::String>
62 void SetLaunchFile(LaunchFileT&& value) { m_launchFileHasBeenSet = true; m_launchFile = std::forward<LaunchFileT>(value); }
63 template<typename LaunchFileT = Aws::String>
64 LaunchConfig& WithLaunchFile(LaunchFileT&& value) { SetLaunchFile(std::forward<LaunchFileT>(value)); return *this;}
66
68
71 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const { return m_environmentVariables; }
72 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
73 template<typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
74 void SetEnvironmentVariables(EnvironmentVariablesT&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = std::forward<EnvironmentVariablesT>(value); }
75 template<typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
76 LaunchConfig& WithEnvironmentVariables(EnvironmentVariablesT&& value) { SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value)); return *this;}
77 template<typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
78 LaunchConfig& AddEnvironmentVariables(EnvironmentVariablesKeyT&& key, EnvironmentVariablesValueT&& value) {
79 m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value)); return *this;
80 }
82
84
87 inline const PortForwardingConfig& GetPortForwardingConfig() const { return m_portForwardingConfig; }
88 inline bool PortForwardingConfigHasBeenSet() const { return m_portForwardingConfigHasBeenSet; }
89 template<typename PortForwardingConfigT = PortForwardingConfig>
90 void SetPortForwardingConfig(PortForwardingConfigT&& value) { m_portForwardingConfigHasBeenSet = true; m_portForwardingConfig = std::forward<PortForwardingConfigT>(value); }
91 template<typename PortForwardingConfigT = PortForwardingConfig>
92 LaunchConfig& WithPortForwardingConfig(PortForwardingConfigT&& value) { SetPortForwardingConfig(std::forward<PortForwardingConfigT>(value)); return *this;}
94
96
103 inline bool GetStreamUI() const { return m_streamUI; }
104 inline bool StreamUIHasBeenSet() const { return m_streamUIHasBeenSet; }
105 inline void SetStreamUI(bool value) { m_streamUIHasBeenSet = true; m_streamUI = value; }
106 inline LaunchConfig& WithStreamUI(bool value) { SetStreamUI(value); return *this;}
108
110
118 inline const Aws::Vector<Aws::String>& GetCommand() const { return m_command; }
119 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
120 template<typename CommandT = Aws::Vector<Aws::String>>
121 void SetCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command = std::forward<CommandT>(value); }
122 template<typename CommandT = Aws::Vector<Aws::String>>
123 LaunchConfig& WithCommand(CommandT&& value) { SetCommand(std::forward<CommandT>(value)); return *this;}
124 template<typename CommandT = Aws::String>
125 LaunchConfig& AddCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command.emplace_back(std::forward<CommandT>(value)); return *this; }
127 private:
128
129 Aws::String m_packageName;
130 bool m_packageNameHasBeenSet = false;
131
132 Aws::String m_launchFile;
133 bool m_launchFileHasBeenSet = false;
134
135 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
136 bool m_environmentVariablesHasBeenSet = false;
137
138 PortForwardingConfig m_portForwardingConfig;
139 bool m_portForwardingConfigHasBeenSet = false;
140
141 bool m_streamUI{false};
142 bool m_streamUIHasBeenSet = false;
143
144 Aws::Vector<Aws::String> m_command;
145 bool m_commandHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace RoboMaker
150} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
LaunchConfig & WithEnvironmentVariables(EnvironmentVariablesT &&value)
LaunchConfig & WithPortForwardingConfig(PortForwardingConfigT &&value)
void SetPackageName(PackageNameT &&value)
AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ROBOMAKER_API LaunchConfig()=default
const Aws::String & GetLaunchFile() const
AWS_ROBOMAKER_API LaunchConfig(Aws::Utils::Json::JsonView jsonValue)
LaunchConfig & AddCommand(CommandT &&value)
LaunchConfig & WithCommand(CommandT &&value)
void SetCommand(CommandT &&value)
void SetEnvironmentVariables(EnvironmentVariablesT &&value)
const Aws::Vector< Aws::String > & GetCommand() const
LaunchConfig & WithLaunchFile(LaunchFileT &&value)
void SetLaunchFile(LaunchFileT &&value)
LaunchConfig & WithPackageName(PackageNameT &&value)
const Aws::String & GetPackageName() const
void SetPortForwardingConfig(PortForwardingConfigT &&value)
const PortForwardingConfig & GetPortForwardingConfig() const
LaunchConfig & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
LaunchConfig & WithStreamUI(bool value)
AWS_ROBOMAKER_API LaunchConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue