AWS SDK for C++  0.14.3
AWS SDK for C++
LogConfiguration.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 
40  {
41  public:
44  LogConfiguration& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
63  inline const LogDriver& GetLogDriver() const{ return m_logDriver; }
64 
81  inline void SetLogDriver(const LogDriver& value) { m_logDriverHasBeenSet = true; m_logDriver = value; }
82 
99  inline void SetLogDriver(LogDriver&& value) { m_logDriverHasBeenSet = true; m_logDriver = value; }
100 
117  inline LogConfiguration& WithLogDriver(const LogDriver& value) { SetLogDriver(value); return *this;}
118 
135  inline LogConfiguration& WithLogDriver(LogDriver&& value) { SetLogDriver(value); return *this;}
136 
144  inline const Aws::Map<Aws::String, Aws::String>& GetOptions() const{ return m_options; }
145 
153  inline void SetOptions(const Aws::Map<Aws::String, Aws::String>& value) { m_optionsHasBeenSet = true; m_options = value; }
154 
162  inline void SetOptions(Aws::Map<Aws::String, Aws::String>&& value) { m_optionsHasBeenSet = true; m_options = value; }
163 
171  inline LogConfiguration& WithOptions(const Aws::Map<Aws::String, Aws::String>& value) { SetOptions(value); return *this;}
172 
180  inline LogConfiguration& WithOptions(Aws::Map<Aws::String, Aws::String>&& value) { SetOptions(value); return *this;}
181 
189  inline LogConfiguration& AddOptions(const Aws::String& key, const Aws::String& value) { m_optionsHasBeenSet = true; m_options[key] = value; return *this; }
190 
198  inline LogConfiguration& AddOptions(Aws::String&& key, const Aws::String& value) { m_optionsHasBeenSet = true; m_options[key] = value; return *this; }
199 
207  inline LogConfiguration& AddOptions(const Aws::String& key, Aws::String&& value) { m_optionsHasBeenSet = true; m_options[key] = value; return *this; }
208 
216  inline LogConfiguration& AddOptions(Aws::String&& key, Aws::String&& value) { m_optionsHasBeenSet = true; m_options[key] = value; return *this; }
217 
225  inline LogConfiguration& AddOptions(const char* key, Aws::String&& value) { m_optionsHasBeenSet = true; m_options[key] = value; return *this; }
226 
234  inline LogConfiguration& AddOptions(Aws::String&& key, const char* value) { m_optionsHasBeenSet = true; m_options[key] = value; return *this; }
235 
243  inline LogConfiguration& AddOptions(const char* key, const char* value) { m_optionsHasBeenSet = true; m_options[key] = value; return *this; }
244 
245  private:
246  LogDriver m_logDriver;
247  bool m_logDriverHasBeenSet;
249  bool m_optionsHasBeenSet;
250  };
251 
252 } // namespace Model
253 } // namespace ECS
254 } // namespace Aws
LogConfiguration & AddOptions(Aws::String &&key, const Aws::String &value)
void SetOptions(Aws::Map< Aws::String, Aws::String > &&value)
void SetLogDriver(const LogDriver &value)
const Aws::Map< Aws::String, Aws::String > & GetOptions() const
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:37
LogConfiguration & AddOptions(const char *key, Aws::String &&value)
void SetOptions(const Aws::Map< Aws::String, Aws::String > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
LogConfiguration & AddOptions(const Aws::String &key, Aws::String &&value)
LogConfiguration & AddOptions(Aws::String &&key, const char *value)
LogConfiguration & AddOptions(const Aws::String &key, const Aws::String &value)
LogConfiguration & AddOptions(Aws::String &&key, Aws::String &&value)
LogConfiguration & WithLogDriver(const LogDriver &value)
LogConfiguration & AddOptions(const char *key, const char *value)
const LogDriver & GetLogDriver() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
LogConfiguration & WithLogDriver(LogDriver &&value)
void SetLogDriver(LogDriver &&value)
LogConfiguration & WithOptions(Aws::Map< Aws::String, Aws::String > &&value)
JSON (JavaScript Object Notation).
LogConfiguration & WithOptions(const Aws::Map< Aws::String, Aws::String > &value)