AWS SDK for C++  1.9.106
AWS SDK for C++
DeploymentCommand.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace OpsWorks
25 {
26 namespace Model
27 {
28 
35  {
36  public:
41 
42 
70  inline const DeploymentCommandName& GetName() const{ return m_name; }
71 
99  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
100 
128  inline void SetName(const DeploymentCommandName& value) { m_nameHasBeenSet = true; m_name = value; }
129 
157  inline void SetName(DeploymentCommandName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
158 
186  inline DeploymentCommand& WithName(const DeploymentCommandName& value) { SetName(value); return *this;}
187 
215  inline DeploymentCommand& WithName(DeploymentCommandName&& value) { SetName(std::move(value)); return *this;}
216 
217 
234  inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetArgs() const{ return m_args; }
235 
252  inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; }
253 
270  inline void SetArgs(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_argsHasBeenSet = true; m_args = value; }
271 
288  inline void SetArgs(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_argsHasBeenSet = true; m_args = std::move(value); }
289 
306  inline DeploymentCommand& WithArgs(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetArgs(value); return *this;}
307 
324  inline DeploymentCommand& WithArgs(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetArgs(std::move(value)); return *this;}
325 
342  inline DeploymentCommand& AddArgs(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_argsHasBeenSet = true; m_args.emplace(key, value); return *this; }
343 
360  inline DeploymentCommand& AddArgs(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_argsHasBeenSet = true; m_args.emplace(std::move(key), value); return *this; }
361 
378  inline DeploymentCommand& AddArgs(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_argsHasBeenSet = true; m_args.emplace(key, std::move(value)); return *this; }
379 
396  inline DeploymentCommand& AddArgs(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_argsHasBeenSet = true; m_args.emplace(std::move(key), std::move(value)); return *this; }
397 
414  inline DeploymentCommand& AddArgs(const char* key, Aws::Vector<Aws::String>&& value) { m_argsHasBeenSet = true; m_args.emplace(key, std::move(value)); return *this; }
415 
432  inline DeploymentCommand& AddArgs(const char* key, const Aws::Vector<Aws::String>& value) { m_argsHasBeenSet = true; m_args.emplace(key, value); return *this; }
433 
434  private:
435 
436  DeploymentCommandName m_name;
437  bool m_nameHasBeenSet;
438 
440  bool m_argsHasBeenSet;
441  };
442 
443 } // namespace Model
444 } // namespace OpsWorks
445 } // namespace Aws
Aws::OpsWorks::Model::DeploymentCommandName
DeploymentCommandName
Definition: DeploymentCommandName.h:17
Aws::OpsWorks::Model::DeploymentCommand::WithArgs
DeploymentCommand & WithArgs(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
Definition: DeploymentCommand.h:306
Aws::OpsWorks::Model::DeploymentCommand::AddArgs
DeploymentCommand & AddArgs(Aws::String &&key, const Aws::Vector< Aws::String > &value)
Definition: DeploymentCommand.h:360
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::DeploymentCommand::SetArgs
void SetArgs(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Definition: DeploymentCommand.h:288
Aws::OpsWorks::Model::DeploymentCommand::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::OpsWorks::Model::DeploymentCommand::DeploymentCommand
DeploymentCommand()
Aws::OpsWorks::Model::DeploymentCommand::WithName
DeploymentCommand & WithName(const DeploymentCommandName &value)
Definition: DeploymentCommand.h:186
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::OpsWorks::Model::DeploymentCommand::AddArgs
DeploymentCommand & AddArgs(const char *key, const Aws::Vector< Aws::String > &value)
Definition: DeploymentCommand.h:432
AWSVector.h
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::DeploymentCommand::WithName
DeploymentCommand & WithName(DeploymentCommandName &&value)
Definition: DeploymentCommand.h:215
Aws::OpsWorks::Model::DeploymentCommand::GetArgs
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetArgs() const
Definition: DeploymentCommand.h:234
Aws::OpsWorks::Model::DeploymentCommand::DeploymentCommand
DeploymentCommand(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::DeploymentCommand::SetName
void SetName(const DeploymentCommandName &value)
Definition: DeploymentCommand.h:128
DeploymentCommandName.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::OpsWorks::Model::DeploymentCommand::AddArgs
DeploymentCommand & AddArgs(const char *key, Aws::Vector< Aws::String > &&value)
Definition: DeploymentCommand.h:414
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::OpsWorks::Model::DeploymentCommand::AddArgs
DeploymentCommand & AddArgs(const Aws::String &key, const Aws::Vector< Aws::String > &value)
Definition: DeploymentCommand.h:342
Aws::OpsWorks::Model::DeploymentCommand::GetName
const DeploymentCommandName & GetName() const
Definition: DeploymentCommand.h:70
Aws::OpsWorks::Model::DeploymentCommand::NameHasBeenSet
bool NameHasBeenSet() const
Definition: DeploymentCommand.h:99
Aws::OpsWorks::Model::DeploymentCommand::operator=
DeploymentCommand & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::DeploymentCommand::AddArgs
DeploymentCommand & AddArgs(const Aws::String &key, Aws::Vector< Aws::String > &&value)
Definition: DeploymentCommand.h:378
Aws::OpsWorks::Model::DeploymentCommand
Definition: DeploymentCommand.h:35
Aws::OpsWorks::Model::DeploymentCommand::WithArgs
DeploymentCommand & WithArgs(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Definition: DeploymentCommand.h:324
Aws::OpsWorks::Model::DeploymentCommand::ArgsHasBeenSet
bool ArgsHasBeenSet() const
Definition: DeploymentCommand.h:252
Aws::OpsWorks::Model::DeploymentCommand::SetArgs
void SetArgs(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
Definition: DeploymentCommand.h:270
AWSMap.h
Aws::OpsWorks::Model::DeploymentCommand::SetName
void SetName(DeploymentCommandName &&value)
Definition: DeploymentCommand.h:157
Aws::OpsWorks::Model::DeploymentCommand::AddArgs
DeploymentCommand & AddArgs(Aws::String &&key, Aws::Vector< Aws::String > &&value)
Definition: DeploymentCommand.h:396
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19