AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
ExecCapability.h
1
6#pragma once
7#include <aws/cloudextensions/CloudExtensions_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudExtensions {
21namespace Model {
22
29 public:
30 AWS_CLOUDEXTENSIONS_API ExecCapability() = default;
31 AWS_CLOUDEXTENSIONS_API ExecCapability(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CLOUDEXTENSIONS_API ExecCapability& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDEXTENSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetCommand() const { return m_command; }
40 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
41 template <typename CommandT = Aws::String>
42 void SetCommand(CommandT&& value) {
43 m_commandHasBeenSet = true;
44 m_command = std::forward<CommandT>(value);
45 }
46 template <typename CommandT = Aws::String>
47 ExecCapability& WithCommand(CommandT&& value) {
48 SetCommand(std::forward<CommandT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<Aws::String>& GetArgs() const { return m_args; }
58 inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; }
59 template <typename ArgsT = Aws::Vector<Aws::String>>
60 void SetArgs(ArgsT&& value) {
61 m_argsHasBeenSet = true;
62 m_args = std::forward<ArgsT>(value);
63 }
64 template <typename ArgsT = Aws::Vector<Aws::String>>
65 ExecCapability& WithArgs(ArgsT&& value) {
66 SetArgs(std::forward<ArgsT>(value));
67 return *this;
68 }
69 template <typename ArgsT = Aws::String>
70 ExecCapability& AddArgs(ArgsT&& value) {
71 m_argsHasBeenSet = true;
72 m_args.emplace_back(std::forward<ArgsT>(value));
73 return *this;
74 }
76
78
82 inline int GetTimeoutInSeconds() const { return m_timeoutInSeconds; }
83 inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; }
84 inline void SetTimeoutInSeconds(int value) {
85 m_timeoutInSecondsHasBeenSet = true;
86 m_timeoutInSeconds = value;
87 }
90 return *this;
91 }
93 private:
94 Aws::String m_command;
95
97
98 int m_timeoutInSeconds{0};
99 bool m_commandHasBeenSet = false;
100 bool m_argsHasBeenSet = false;
101 bool m_timeoutInSecondsHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace CloudExtensions
106} // namespace Aws
const Aws::Vector< Aws::String > & GetArgs() const
AWS_CLOUDEXTENSIONS_API ExecCapability & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDEXTENSIONS_API ExecCapability()=default
ExecCapability & WithCommand(CommandT &&value)
ExecCapability & AddArgs(ArgsT &&value)
ExecCapability & WithTimeoutInSeconds(int value)
ExecCapability & WithArgs(ArgsT &&value)
AWS_CLOUDEXTENSIONS_API ExecCapability(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDEXTENSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue