AWS SDK for C++  1.9.20
AWS SDK for C++
Tool.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace RoboMaker
23 {
24 namespace Model
25 {
26 
34  {
35  public:
36  Tool();
40 
41 
48  inline bool GetStreamUI() const{ return m_streamUI; }
49 
56  inline bool StreamUIHasBeenSet() const { return m_streamUIHasBeenSet; }
57 
64  inline void SetStreamUI(bool value) { m_streamUIHasBeenSet = true; m_streamUI = value; }
65 
72  inline Tool& WithStreamUI(bool value) { SetStreamUI(value); return *this;}
73 
74 
78  inline const Aws::String& GetName() const{ return m_name; }
79 
83  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
84 
88  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
89 
93  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
94 
98  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
99 
103  inline Tool& WithName(const Aws::String& value) { SetName(value); return *this;}
104 
108  inline Tool& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
109 
113  inline Tool& WithName(const char* value) { SetName(value); return *this;}
114 
115 
120  inline const Aws::String& GetCommand() const{ return m_command; }
121 
126  inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
127 
132  inline void SetCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command = value; }
133 
138  inline void SetCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
139 
144  inline void SetCommand(const char* value) { m_commandHasBeenSet = true; m_command.assign(value); }
145 
150  inline Tool& WithCommand(const Aws::String& value) { SetCommand(value); return *this;}
151 
156  inline Tool& WithCommand(Aws::String&& value) { SetCommand(std::move(value)); return *this;}
157 
162  inline Tool& WithCommand(const char* value) { SetCommand(value); return *this;}
163 
164 
169  inline bool GetStreamOutputToCloudWatch() const{ return m_streamOutputToCloudWatch; }
170 
175  inline bool StreamOutputToCloudWatchHasBeenSet() const { return m_streamOutputToCloudWatchHasBeenSet; }
176 
181  inline void SetStreamOutputToCloudWatch(bool value) { m_streamOutputToCloudWatchHasBeenSet = true; m_streamOutputToCloudWatch = value; }
182 
187  inline Tool& WithStreamOutputToCloudWatch(bool value) { SetStreamOutputToCloudWatch(value); return *this;}
188 
189 
195  inline const ExitBehavior& GetExitBehavior() const{ return m_exitBehavior; }
196 
202  inline bool ExitBehaviorHasBeenSet() const { return m_exitBehaviorHasBeenSet; }
203 
209  inline void SetExitBehavior(const ExitBehavior& value) { m_exitBehaviorHasBeenSet = true; m_exitBehavior = value; }
210 
216  inline void SetExitBehavior(ExitBehavior&& value) { m_exitBehaviorHasBeenSet = true; m_exitBehavior = std::move(value); }
217 
223  inline Tool& WithExitBehavior(const ExitBehavior& value) { SetExitBehavior(value); return *this;}
224 
230  inline Tool& WithExitBehavior(ExitBehavior&& value) { SetExitBehavior(std::move(value)); return *this;}
231 
232  private:
233 
234  bool m_streamUI;
235  bool m_streamUIHasBeenSet;
236 
237  Aws::String m_name;
238  bool m_nameHasBeenSet;
239 
240  Aws::String m_command;
241  bool m_commandHasBeenSet;
242 
243  bool m_streamOutputToCloudWatch;
244  bool m_streamOutputToCloudWatchHasBeenSet;
245 
246  ExitBehavior m_exitBehavior;
247  bool m_exitBehaviorHasBeenSet;
248  };
249 
250 } // namespace Model
251 } // namespace RoboMaker
252 } // namespace Aws
Aws::RoboMaker::Model::Tool::Tool
Tool(Aws::Utils::Json::JsonView jsonValue)
Aws::RoboMaker::Model::Tool::SetName
void SetName(Aws::String &&value)
Definition: Tool.h:93
Aws::RoboMaker::Model::Tool::SetName
void SetName(const char *value)
Definition: Tool.h:98
Aws::RoboMaker::Model::Tool
Definition: Tool.h:34
Aws::RoboMaker::Model::Tool::WithCommand
Tool & WithCommand(const char *value)
Definition: Tool.h:162
Aws::RoboMaker::Model::Tool::StreamUIHasBeenSet
bool StreamUIHasBeenSet() const
Definition: Tool.h:56
Aws::RoboMaker::Model::Tool::WithName
Tool & WithName(const Aws::String &value)
Definition: Tool.h:103
Aws::RoboMaker::Model::Tool::SetExitBehavior
void SetExitBehavior(const ExitBehavior &value)
Definition: Tool.h:209
Aws::RoboMaker::Model::Tool::WithExitBehavior
Tool & WithExitBehavior(ExitBehavior &&value)
Definition: Tool.h:230
Aws::RoboMaker::Model::Tool::SetStreamUI
void SetStreamUI(bool value)
Definition: Tool.h:64
Aws::RoboMaker::Model::Tool::ExitBehaviorHasBeenSet
bool ExitBehaviorHasBeenSet() const
Definition: Tool.h:202
Aws::RoboMaker::Model::Tool::GetStreamOutputToCloudWatch
bool GetStreamOutputToCloudWatch() const
Definition: Tool.h:169
Aws::RoboMaker::Model::Tool::GetCommand
const Aws::String & GetCommand() const
Definition: Tool.h:120
Aws::RoboMaker::Model::Tool::SetCommand
void SetCommand(const char *value)
Definition: Tool.h:144
Aws::RoboMaker::Model::Tool::WithCommand
Tool & WithCommand(const Aws::String &value)
Definition: Tool.h:150
Aws::RoboMaker::Model::Tool::SetStreamOutputToCloudWatch
void SetStreamOutputToCloudWatch(bool value)
Definition: Tool.h:181
ExitBehavior.h
Aws::RoboMaker::Model::Tool::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWS_ROBOMAKER_API
#define AWS_ROBOMAKER_API
Definition: RoboMaker_EXPORTS.h:28
Aws::RoboMaker::Model::Tool::operator=
Tool & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::RoboMaker::Model::Tool::WithCommand
Tool & WithCommand(Aws::String &&value)
Definition: Tool.h:156
Aws::RoboMaker::Model::Tool::WithName
Tool & WithName(Aws::String &&value)
Definition: Tool.h:108
Aws::RoboMaker::Model::Tool::WithExitBehavior
Tool & WithExitBehavior(const ExitBehavior &value)
Definition: Tool.h:223
Aws::RoboMaker::Model::Tool::CommandHasBeenSet
bool CommandHasBeenSet() const
Definition: Tool.h:126
RoboMaker_EXPORTS.h
Aws::RoboMaker::Model::Tool::GetExitBehavior
const ExitBehavior & GetExitBehavior() const
Definition: Tool.h:195
Aws::RoboMaker::Model::Tool::SetName
void SetName(const Aws::String &value)
Definition: Tool.h:88
Aws::RoboMaker::Model::Tool::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Tool.h:83
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::RoboMaker::Model::Tool::StreamOutputToCloudWatchHasBeenSet
bool StreamOutputToCloudWatchHasBeenSet() const
Definition: Tool.h:175
Aws::RoboMaker::Model::Tool::WithStreamOutputToCloudWatch
Tool & WithStreamOutputToCloudWatch(bool value)
Definition: Tool.h:187
Aws::RoboMaker::Model::Tool::WithName
Tool & WithName(const char *value)
Definition: Tool.h:113
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RoboMaker::Model::Tool::GetStreamUI
bool GetStreamUI() const
Definition: Tool.h:48
Aws::RoboMaker::Model::Tool::SetExitBehavior
void SetExitBehavior(ExitBehavior &&value)
Definition: Tool.h:216
Aws::RoboMaker::Model::Tool::GetName
const Aws::String & GetName() const
Definition: Tool.h:78
Aws::RoboMaker::Model::Tool::WithStreamUI
Tool & WithStreamUI(bool value)
Definition: Tool.h:72
Aws::RoboMaker::Model::ExitBehavior
ExitBehavior
Definition: ExitBehavior.h:17
Aws::RoboMaker::Model::Tool::Tool
Tool()
Aws::RoboMaker::Model::Tool::SetCommand
void SetCommand(const Aws::String &value)
Definition: Tool.h:132
Aws::RoboMaker::Model::Tool::SetCommand
void SetCommand(Aws::String &&value)
Definition: Tool.h:138