AWS SDK for C++  0.12.9
AWS SDK for C++
ActionConfiguration.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace CodePipeline
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  ActionConfiguration& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::Map<Aws::String, Aws::String>& GetConfiguration() const{ return m_configuration; }
49 
53  inline void SetConfiguration(const Aws::Map<Aws::String, Aws::String>& value) { m_configurationHasBeenSet = true; m_configuration = value; }
54 
58  inline void SetConfiguration(Aws::Map<Aws::String, Aws::String>&& value) { m_configurationHasBeenSet = true; m_configuration = value; }
59 
63  inline ActionConfiguration& WithConfiguration(const Aws::Map<Aws::String, Aws::String>& value) { SetConfiguration(value); return *this;}
64 
68  inline ActionConfiguration& WithConfiguration(Aws::Map<Aws::String, Aws::String>&& value) { SetConfiguration(value); return *this;}
69 
73  inline ActionConfiguration& AddConfiguration(const Aws::String& key, const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration[key] = value; return *this; }
74 
78  inline ActionConfiguration& AddConfiguration(Aws::String&& key, const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration[key] = value; return *this; }
79 
83  inline ActionConfiguration& AddConfiguration(const Aws::String& key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration[key] = value; return *this; }
84 
88  inline ActionConfiguration& AddConfiguration(Aws::String&& key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration[key] = value; return *this; }
89 
93  inline ActionConfiguration& AddConfiguration(const char* key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration[key] = value; return *this; }
94 
98  inline ActionConfiguration& AddConfiguration(Aws::String&& key, const char* value) { m_configurationHasBeenSet = true; m_configuration[key] = value; return *this; }
99 
103  inline ActionConfiguration& AddConfiguration(const char* key, const char* value) { m_configurationHasBeenSet = true; m_configuration[key] = value; return *this; }
104 
105  private:
106  Aws::Map<Aws::String, Aws::String> m_configuration;
107  bool m_configurationHasBeenSet;
108  };
109 
110 } // namespace Model
111 } // namespace CodePipeline
112 } // namespace Aws
ActionConfiguration & AddConfiguration(Aws::String &&key, const Aws::String &value)
ActionConfiguration & AddConfiguration(const char *key, Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
void SetConfiguration(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetConfiguration() const
ActionConfiguration & AddConfiguration(const Aws::String &key, Aws::String &&value)
ActionConfiguration & AddConfiguration(const Aws::String &key, const Aws::String &value)
ActionConfiguration & AddConfiguration(Aws::String &&key, const char *value)
ActionConfiguration & AddConfiguration(const char *key, const char *value)
#define AWS_CODEPIPELINE_API
ActionConfiguration & WithConfiguration(Aws::Map< Aws::String, Aws::String > &&value)
void SetConfiguration(const Aws::Map< Aws::String, Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ActionConfiguration & WithConfiguration(const Aws::Map< Aws::String, Aws::String > &value)
ActionConfiguration & AddConfiguration(Aws::String &&key, Aws::String &&value)
JSON (JavaScript Object Notation).