AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DeploymentCommand.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/opsworks/model/DeploymentCommandName.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.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 OpsWorks
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_OPSWORKS_API DeploymentCommand() = default;
38 AWS_OPSWORKS_API DeploymentCommand(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
71 inline DeploymentCommandName GetName() const { return m_name; }
72 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
73 inline void SetName(DeploymentCommandName value) { m_nameHasBeenSet = true; m_name = value; }
74 inline DeploymentCommand& WithName(DeploymentCommandName value) { SetName(value); return *this;}
76
78
93 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetArgs() const { return m_args; }
94 inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; }
95 template<typename ArgsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
96 void SetArgs(ArgsT&& value) { m_argsHasBeenSet = true; m_args = std::forward<ArgsT>(value); }
97 template<typename ArgsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
98 DeploymentCommand& WithArgs(ArgsT&& value) { SetArgs(std::forward<ArgsT>(value)); return *this;}
99 template<typename ArgsKeyT = Aws::String, typename ArgsValueT = Aws::Vector<Aws::String>>
100 DeploymentCommand& AddArgs(ArgsKeyT&& key, ArgsValueT&& value) {
101 m_argsHasBeenSet = true; m_args.emplace(std::forward<ArgsKeyT>(key), std::forward<ArgsValueT>(value)); return *this;
102 }
104 private:
105
107 bool m_nameHasBeenSet = false;
108
110 bool m_argsHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace OpsWorks
115} // namespace Aws
void SetName(DeploymentCommandName value)
DeploymentCommandName GetName() const
AWS_OPSWORKS_API DeploymentCommand()=default
DeploymentCommand & AddArgs(ArgsKeyT &&key, ArgsValueT &&value)
AWS_OPSWORKS_API DeploymentCommand(Aws::Utils::Json::JsonView jsonValue)
AWS_OPSWORKS_API DeploymentCommand & operator=(Aws::Utils::Json::JsonView jsonValue)
DeploymentCommand & WithArgs(ArgsT &&value)
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetArgs() const
DeploymentCommand & WithName(DeploymentCommandName value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue