AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Tool.h
1
6#pragma once
7#include <aws/robomaker/RoboMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/robomaker/model/ExitBehavior.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 RoboMaker
23{
24namespace Model
25{
26
33 class Tool
34 {
35 public:
36 AWS_ROBOMAKER_API Tool();
37 AWS_ROBOMAKER_API Tool(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ROBOMAKER_API Tool& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline bool GetStreamUI() const{ return m_streamUI; }
50 inline bool StreamUIHasBeenSet() const { return m_streamUIHasBeenSet; }
51 inline void SetStreamUI(bool value) { m_streamUIHasBeenSet = true; m_streamUI = value; }
52 inline Tool& WithStreamUI(bool value) { SetStreamUI(value); return *this;}
54
56
59 inline const Aws::String& GetName() const{ return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 inline Tool& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline Tool& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline Tool& WithName(const char* value) { SetName(value); return *this;}
68
70
74 inline const Aws::String& GetCommand() const{ return m_command; }
75 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
76 inline void SetCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command = value; }
77 inline void SetCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
78 inline void SetCommand(const char* value) { m_commandHasBeenSet = true; m_command.assign(value); }
79 inline Tool& WithCommand(const Aws::String& value) { SetCommand(value); return *this;}
80 inline Tool& WithCommand(Aws::String&& value) { SetCommand(std::move(value)); return *this;}
81 inline Tool& WithCommand(const char* value) { SetCommand(value); return *this;}
83
85
89 inline bool GetStreamOutputToCloudWatch() const{ return m_streamOutputToCloudWatch; }
90 inline bool StreamOutputToCloudWatchHasBeenSet() const { return m_streamOutputToCloudWatchHasBeenSet; }
91 inline void SetStreamOutputToCloudWatch(bool value) { m_streamOutputToCloudWatchHasBeenSet = true; m_streamOutputToCloudWatch = value; }
92 inline Tool& WithStreamOutputToCloudWatch(bool value) { SetStreamOutputToCloudWatch(value); return *this;}
94
96
101 inline const ExitBehavior& GetExitBehavior() const{ return m_exitBehavior; }
102 inline bool ExitBehaviorHasBeenSet() const { return m_exitBehaviorHasBeenSet; }
103 inline void SetExitBehavior(const ExitBehavior& value) { m_exitBehaviorHasBeenSet = true; m_exitBehavior = value; }
104 inline void SetExitBehavior(ExitBehavior&& value) { m_exitBehaviorHasBeenSet = true; m_exitBehavior = std::move(value); }
105 inline Tool& WithExitBehavior(const ExitBehavior& value) { SetExitBehavior(value); return *this;}
106 inline Tool& WithExitBehavior(ExitBehavior&& value) { SetExitBehavior(std::move(value)); return *this;}
108 private:
109
110 bool m_streamUI;
111 bool m_streamUIHasBeenSet = false;
112
113 Aws::String m_name;
114 bool m_nameHasBeenSet = false;
115
116 Aws::String m_command;
117 bool m_commandHasBeenSet = false;
118
119 bool m_streamOutputToCloudWatch;
120 bool m_streamOutputToCloudWatchHasBeenSet = false;
121
122 ExitBehavior m_exitBehavior;
123 bool m_exitBehaviorHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace RoboMaker
128} // namespace Aws
Tool & WithCommand(Aws::String &&value)
Definition Tool.h:80
AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
bool NameHasBeenSet() const
Definition Tool.h:60
const Aws::String & GetCommand() const
Definition Tool.h:74
bool CommandHasBeenSet() const
Definition Tool.h:75
void SetStreamUI(bool value)
Definition Tool.h:51
void SetName(Aws::String &&value)
Definition Tool.h:62
Tool & WithCommand(const Aws::String &value)
Definition Tool.h:79
void SetCommand(const Aws::String &value)
Definition Tool.h:76
Tool & WithStreamUI(bool value)
Definition Tool.h:52
Tool & WithExitBehavior(const ExitBehavior &value)
Definition Tool.h:105
Tool & WithName(const Aws::String &value)
Definition Tool.h:64
void SetStreamOutputToCloudWatch(bool value)
Definition Tool.h:91
Tool & WithCommand(const char *value)
Definition Tool.h:81
bool GetStreamOutputToCloudWatch() const
Definition Tool.h:89
bool StreamUIHasBeenSet() const
Definition Tool.h:50
AWS_ROBOMAKER_API Tool()
void SetCommand(const char *value)
Definition Tool.h:78
bool StreamOutputToCloudWatchHasBeenSet() const
Definition Tool.h:90
void SetName(const Aws::String &value)
Definition Tool.h:61
Tool & WithStreamOutputToCloudWatch(bool value)
Definition Tool.h:92
AWS_ROBOMAKER_API Tool & operator=(Aws::Utils::Json::JsonView jsonValue)
Tool & WithExitBehavior(ExitBehavior &&value)
Definition Tool.h:106
bool GetStreamUI() const
Definition Tool.h:49
const ExitBehavior & GetExitBehavior() const
Definition Tool.h:101
void SetName(const char *value)
Definition Tool.h:63
Tool & WithName(Aws::String &&value)
Definition Tool.h:65
Tool & WithName(const char *value)
Definition Tool.h:66
const Aws::String & GetName() const
Definition Tool.h:59
void SetCommand(Aws::String &&value)
Definition Tool.h:77
bool ExitBehaviorHasBeenSet() const
Definition Tool.h:102
void SetExitBehavior(const ExitBehavior &value)
Definition Tool.h:103
void SetExitBehavior(ExitBehavior &&value)
Definition Tool.h:104
AWS_ROBOMAKER_API Tool(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue