AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPackageName(const Aws::String& value) { m_packageNameHasBeenSet = true; m_packageName = value; }
50 inline void SetPackageName(Aws::String&& value) { m_packageNameHasBeenSet = true; m_packageName = std::move(value); }
51 inline void SetPackageName(const char* value) { m_packageNameHasBeenSet = true; m_packageName.assign(value); }
52 inline LaunchConfig& WithPackageName(const Aws::String& value) { SetPackageName(value); return *this;}
53 inline LaunchConfig& WithPackageName(Aws::String&& value) { SetPackageName(std::move(value)); return *this;}
54 inline LaunchConfig& WithPackageName(const char* value) { SetPackageName(value); return *this;}
56
58
61 inline const Aws::String& GetLaunchFile() const{ return m_launchFile; }
62 inline bool LaunchFileHasBeenSet() const { return m_launchFileHasBeenSet; }
63 inline void SetLaunchFile(const Aws::String& value) { m_launchFileHasBeenSet = true; m_launchFile = value; }
64 inline void SetLaunchFile(Aws::String&& value) { m_launchFileHasBeenSet = true; m_launchFile = std::move(value); }
65 inline void SetLaunchFile(const char* value) { m_launchFileHasBeenSet = true; m_launchFile.assign(value); }
66 inline LaunchConfig& WithLaunchFile(const Aws::String& value) { SetLaunchFile(value); return *this;}
67 inline LaunchConfig& WithLaunchFile(Aws::String&& value) { SetLaunchFile(std::move(value)); return *this;}
68 inline LaunchConfig& WithLaunchFile(const char* value) { SetLaunchFile(value); return *this;}
70
72
75 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const{ return m_environmentVariables; }
76 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
77 inline void SetEnvironmentVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = value; }
78 inline void SetEnvironmentVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = std::move(value); }
81 inline LaunchConfig& AddEnvironmentVariables(const Aws::String& key, const Aws::String& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, value); return *this; }
82 inline LaunchConfig& AddEnvironmentVariables(Aws::String&& key, const Aws::String& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), value); return *this; }
83 inline LaunchConfig& AddEnvironmentVariables(const Aws::String& key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, std::move(value)); return *this; }
84 inline LaunchConfig& AddEnvironmentVariables(Aws::String&& key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), std::move(value)); return *this; }
85 inline LaunchConfig& AddEnvironmentVariables(const char* key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, std::move(value)); return *this; }
86 inline LaunchConfig& AddEnvironmentVariables(Aws::String&& key, const char* value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), value); return *this; }
87 inline LaunchConfig& AddEnvironmentVariables(const char* key, const char* value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, value); return *this; }
89
91
94 inline const PortForwardingConfig& GetPortForwardingConfig() const{ return m_portForwardingConfig; }
95 inline bool PortForwardingConfigHasBeenSet() const { return m_portForwardingConfigHasBeenSet; }
96 inline void SetPortForwardingConfig(const PortForwardingConfig& value) { m_portForwardingConfigHasBeenSet = true; m_portForwardingConfig = value; }
97 inline void SetPortForwardingConfig(PortForwardingConfig&& value) { m_portForwardingConfigHasBeenSet = true; m_portForwardingConfig = std::move(value); }
99 inline LaunchConfig& WithPortForwardingConfig(PortForwardingConfig&& value) { SetPortForwardingConfig(std::move(value)); return *this;}
101
103
110 inline bool GetStreamUI() const{ return m_streamUI; }
111 inline bool StreamUIHasBeenSet() const { return m_streamUIHasBeenSet; }
112 inline void SetStreamUI(bool value) { m_streamUIHasBeenSet = true; m_streamUI = value; }
113 inline LaunchConfig& WithStreamUI(bool value) { SetStreamUI(value); return *this;}
115
117
125 inline const Aws::Vector<Aws::String>& GetCommand() const{ return m_command; }
126 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
127 inline void SetCommand(const Aws::Vector<Aws::String>& value) { m_commandHasBeenSet = true; m_command = value; }
128 inline void SetCommand(Aws::Vector<Aws::String>&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
129 inline LaunchConfig& WithCommand(const Aws::Vector<Aws::String>& value) { SetCommand(value); return *this;}
130 inline LaunchConfig& WithCommand(Aws::Vector<Aws::String>&& value) { SetCommand(std::move(value)); return *this;}
131 inline LaunchConfig& AddCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
132 inline LaunchConfig& AddCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command.push_back(std::move(value)); return *this; }
133 inline LaunchConfig& AddCommand(const char* value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
135 private:
136
137 Aws::String m_packageName;
138 bool m_packageNameHasBeenSet = false;
139
140 Aws::String m_launchFile;
141 bool m_launchFileHasBeenSet = false;
142
143 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
144 bool m_environmentVariablesHasBeenSet = false;
145
146 PortForwardingConfig m_portForwardingConfig;
147 bool m_portForwardingConfigHasBeenSet = false;
148
149 bool m_streamUI;
150 bool m_streamUIHasBeenSet = false;
151
152 Aws::Vector<Aws::String> m_command;
153 bool m_commandHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace RoboMaker
158} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
LaunchConfig & AddCommand(Aws::String &&value)
void SetEnvironmentVariables(const Aws::Map< Aws::String, Aws::String > &value)
void SetPortForwardingConfig(const PortForwardingConfig &value)
AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
LaunchConfig & WithPackageName(Aws::String &&value)
LaunchConfig & AddEnvironmentVariables(const Aws::String &key, const Aws::String &value)
LaunchConfig & WithEnvironmentVariables(const Aws::Map< Aws::String, Aws::String > &value)
LaunchConfig & AddEnvironmentVariables(const char *key, Aws::String &&value)
LaunchConfig & WithLaunchFile(Aws::String &&value)
void SetPackageName(Aws::String &&value)
void SetCommand(Aws::Vector< Aws::String > &&value)
const Aws::String & GetLaunchFile() const
LaunchConfig & WithCommand(const Aws::Vector< Aws::String > &value)
AWS_ROBOMAKER_API LaunchConfig(Aws::Utils::Json::JsonView jsonValue)
LaunchConfig & AddEnvironmentVariables(const char *key, const char *value)
LaunchConfig & AddEnvironmentVariables(const Aws::String &key, Aws::String &&value)
void SetCommand(const Aws::Vector< Aws::String > &value)
void SetLaunchFile(Aws::String &&value)
void SetLaunchFile(const Aws::String &value)
LaunchConfig & WithLaunchFile(const Aws::String &value)
LaunchConfig & WithEnvironmentVariables(Aws::Map< Aws::String, Aws::String > &&value)
LaunchConfig & AddEnvironmentVariables(Aws::String &&key, const char *value)
void SetEnvironmentVariables(Aws::Map< Aws::String, Aws::String > &&value)
LaunchConfig & WithPortForwardingConfig(PortForwardingConfig &&value)
LaunchConfig & WithPackageName(const char *value)
const Aws::Vector< Aws::String > & GetCommand() const
LaunchConfig & WithPortForwardingConfig(const PortForwardingConfig &value)
LaunchConfig & WithPackageName(const Aws::String &value)
LaunchConfig & AddCommand(const char *value)
LaunchConfig & WithLaunchFile(const char *value)
void SetPortForwardingConfig(PortForwardingConfig &&value)
LaunchConfig & AddCommand(const Aws::String &value)
LaunchConfig & WithCommand(Aws::Vector< Aws::String > &&value)
void SetPackageName(const Aws::String &value)
void SetLaunchFile(const char *value)
LaunchConfig & AddEnvironmentVariables(Aws::String &&key, Aws::String &&value)
const Aws::String & GetPackageName() const
LaunchConfig & AddEnvironmentVariables(Aws::String &&key, const Aws::String &value)
void SetPackageName(const char *value)
const PortForwardingConfig & GetPortForwardingConfig() const
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