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>
20namespace CloudExtensions {
41 template <
typename CommandT = Aws::String>
43 m_commandHasBeenSet =
true;
44 m_command = std::forward<CommandT>(value);
46 template <
typename CommandT = Aws::String>
59 template <
typename ArgsT = Aws::Vector<Aws::String>>
61 m_argsHasBeenSet =
true;
62 m_args = std::forward<ArgsT>(value);
64 template <
typename ArgsT = Aws::Vector<Aws::String>>
66 SetArgs(std::forward<ArgsT>(value));
69 template <
typename ArgsT = Aws::String>
71 m_argsHasBeenSet =
true;
72 m_args.emplace_back(std::forward<ArgsT>(value));
85 m_timeoutInSecondsHasBeenSet =
true;
86 m_timeoutInSeconds = value;
98 int m_timeoutInSeconds{0};
99 bool m_commandHasBeenSet =
false;
100 bool m_argsHasBeenSet =
false;
101 bool m_timeoutInSecondsHasBeenSet =
false;
const Aws::Vector< Aws::String > & GetArgs() const
AWS_CLOUDEXTENSIONS_API ExecCapability & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDEXTENSIONS_API ExecCapability()=default
void SetTimeoutInSeconds(int value)
void SetArgs(ArgsT &&value)
const Aws::String & GetCommand() const
ExecCapability & WithCommand(CommandT &&value)
ExecCapability & AddArgs(ArgsT &&value)
ExecCapability & WithTimeoutInSeconds(int value)
bool TimeoutInSecondsHasBeenSet() const
ExecCapability & WithArgs(ArgsT &&value)
int GetTimeoutInSeconds() const
AWS_CLOUDEXTENSIONS_API ExecCapability(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDEXTENSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
bool CommandHasBeenSet() const
void SetCommand(CommandT &&value)
bool ArgsHasBeenSet() 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