AWS SDK for C++  0.14.3
AWS SDK for C++
DeploymentCommand.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace OpsWorks
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  DeploymentCommand& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
74  inline const DeploymentCommandName& GetName() const{ return m_name; }
75 
103  inline void SetName(const DeploymentCommandName& value) { m_nameHasBeenSet = true; m_name = value; }
104 
132  inline void SetName(DeploymentCommandName&& value) { m_nameHasBeenSet = true; m_name = value; }
133 
161  inline DeploymentCommand& WithName(const DeploymentCommandName& value) { SetName(value); return *this;}
162 
190  inline DeploymentCommand& WithName(DeploymentCommandName&& value) { SetName(value); return *this;}
191 
208  inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetArgs() const{ return m_args; }
209 
226  inline void SetArgs(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_argsHasBeenSet = true; m_args = value; }
227 
244  inline void SetArgs(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_argsHasBeenSet = true; m_args = value; }
245 
262  inline DeploymentCommand& WithArgs(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetArgs(value); return *this;}
263 
280  inline DeploymentCommand& WithArgs(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetArgs(value); return *this;}
281 
298  inline DeploymentCommand& AddArgs(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_argsHasBeenSet = true; m_args[key] = value; return *this; }
299 
316  inline DeploymentCommand& AddArgs(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_argsHasBeenSet = true; m_args[key] = value; return *this; }
317 
334  inline DeploymentCommand& AddArgs(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_argsHasBeenSet = true; m_args[key] = value; return *this; }
335 
352  inline DeploymentCommand& AddArgs(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_argsHasBeenSet = true; m_args[key] = value; return *this; }
353 
370  inline DeploymentCommand& AddArgs(const char* key, Aws::Vector<Aws::String>&& value) { m_argsHasBeenSet = true; m_args[key] = value; return *this; }
371 
388  inline DeploymentCommand& AddArgs(const char* key, const Aws::Vector<Aws::String>& value) { m_argsHasBeenSet = true; m_args[key] = value; return *this; }
389 
390  private:
391  DeploymentCommandName m_name;
392  bool m_nameHasBeenSet;
394  bool m_argsHasBeenSet;
395  };
396 
397 } // namespace Model
398 } // namespace OpsWorks
399 } // namespace Aws
const DeploymentCommandName & GetName() const
void SetName(DeploymentCommandName &&value)
DeploymentCommand & WithArgs(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
void SetArgs(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
DeploymentCommand & WithArgs(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
DeploymentCommand & AddArgs(const char *key, const Aws::Vector< Aws::String > &value)
void SetName(const DeploymentCommandName &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetArgs(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
DeploymentCommand & AddArgs(const char *key, Aws::Vector< Aws::String > &&value)
DeploymentCommand & AddArgs(const Aws::String &key, const Aws::Vector< Aws::String > &value)
DeploymentCommand & AddArgs(const Aws::String &key, Aws::Vector< Aws::String > &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetArgs() const
DeploymentCommand & AddArgs(Aws::String &&key, Aws::Vector< Aws::String > &&value)
DeploymentCommand & WithName(const DeploymentCommandName &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
DeploymentCommand & WithName(DeploymentCommandName &&value)
JSON (JavaScript Object Notation).
DeploymentCommand & AddArgs(Aws::String &&key, const Aws::Vector< Aws::String > &value)