AWS SDK for C++  0.12.9
AWS SDK for C++
ContainerOverride.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
16 #include <aws/ecs/ECS_EXPORTS.h>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace ECS
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  ContainerOverride& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetName() const{ return m_name; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline ContainerOverride& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline ContainerOverride& WithName(Aws::String&& value) { SetName(value); return *this;}
75 
79  inline ContainerOverride& WithName(const char* value) { SetName(value); return *this;}
80 
85  inline const Aws::Vector<Aws::String>& GetCommand() const{ return m_command; }
86 
91  inline void SetCommand(const Aws::Vector<Aws::String>& value) { m_commandHasBeenSet = true; m_command = value; }
92 
97  inline void SetCommand(Aws::Vector<Aws::String>&& value) { m_commandHasBeenSet = true; m_command = value; }
98 
103  inline ContainerOverride& WithCommand(const Aws::Vector<Aws::String>& value) { SetCommand(value); return *this;}
104 
109  inline ContainerOverride& WithCommand(Aws::Vector<Aws::String>&& value) { SetCommand(value); return *this;}
110 
115  inline ContainerOverride& AddCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
116 
121  inline ContainerOverride& AddCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
122 
127  inline ContainerOverride& AddCommand(const char* value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
128 
135  inline const Aws::Vector<KeyValuePair>& GetEnvironment() const{ return m_environment; }
136 
143  inline void SetEnvironment(const Aws::Vector<KeyValuePair>& value) { m_environmentHasBeenSet = true; m_environment = value; }
144 
151  inline void SetEnvironment(Aws::Vector<KeyValuePair>&& value) { m_environmentHasBeenSet = true; m_environment = value; }
152 
159  inline ContainerOverride& WithEnvironment(const Aws::Vector<KeyValuePair>& value) { SetEnvironment(value); return *this;}
160 
167  inline ContainerOverride& WithEnvironment(Aws::Vector<KeyValuePair>&& value) { SetEnvironment(value); return *this;}
168 
175  inline ContainerOverride& AddEnvironment(const KeyValuePair& value) { m_environmentHasBeenSet = true; m_environment.push_back(value); return *this; }
176 
183  inline ContainerOverride& AddEnvironment(KeyValuePair&& value) { m_environmentHasBeenSet = true; m_environment.push_back(value); return *this; }
184 
185  private:
186  Aws::String m_name;
187  bool m_nameHasBeenSet;
188  Aws::Vector<Aws::String> m_command;
189  bool m_commandHasBeenSet;
190  Aws::Vector<KeyValuePair> m_environment;
191  bool m_environmentHasBeenSet;
192  };
193 
194 } // namespace Model
195 } // namespace ECS
196 } // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:34
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ContainerOverride & AddEnvironment(KeyValuePair &&value)
ContainerOverride & WithEnvironment(Aws::Vector< KeyValuePair > &&value)
ContainerOverride & WithName(Aws::String &&value)
void SetCommand(Aws::Vector< Aws::String > &&value)
ContainerOverride & WithCommand(const Aws::Vector< Aws::String > &value)
ContainerOverride & AddCommand(const char *value)
void SetName(Aws::String &&value)
void SetEnvironment(const Aws::Vector< KeyValuePair > &value)
void SetName(const Aws::String &value)
const Aws::String & GetName() const
ContainerOverride & WithEnvironment(const Aws::Vector< KeyValuePair > &value)
ContainerOverride & WithName(const char *value)
ContainerOverride & AddEnvironment(const KeyValuePair &value)
void SetCommand(const Aws::Vector< Aws::String > &value)
ContainerOverride & WithName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Vector< KeyValuePair > & GetEnvironment() const
ContainerOverride & AddCommand(const Aws::String &value)
ContainerOverride & AddCommand(Aws::String &&value)
void SetEnvironment(Aws::Vector< KeyValuePair > &&value)
const Aws::Vector< Aws::String > & GetCommand() const
ContainerOverride & WithCommand(Aws::Vector< Aws::String > &&value)
JSON (JavaScript Object Notation).