AWS SDK for C++  0.12.9
AWS SDK for C++
AdvancedOptionsStatus.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace ElasticsearchService
31 {
32 namespace Model
33 {
34 
50  {
51  public:
54  AdvancedOptionsStatus& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
55  Aws::Utils::Json::JsonValue Jsonize() const;
56 
61  inline const Aws::Map<Aws::String, Aws::String>& GetOptions() const{ return m_options; }
62 
67  inline void SetOptions(const Aws::Map<Aws::String, Aws::String>& value) { m_optionsHasBeenSet = true; m_options = value; }
68 
73  inline void SetOptions(Aws::Map<Aws::String, Aws::String>&& value) { m_optionsHasBeenSet = true; m_options = value; }
74 
79  inline AdvancedOptionsStatus& WithOptions(const Aws::Map<Aws::String, Aws::String>& value) { SetOptions(value); return *this;}
80 
85  inline AdvancedOptionsStatus& WithOptions(Aws::Map<Aws::String, Aws::String>&& value) { SetOptions(value); return *this;}
86 
91  inline AdvancedOptionsStatus& AddOptions(const Aws::String& key, const Aws::String& value) { m_optionsHasBeenSet = true; m_options[key] = value; return *this; }
92 
97  inline AdvancedOptionsStatus& AddOptions(Aws::String&& key, const Aws::String& value) { m_optionsHasBeenSet = true; m_options[key] = value; return *this; }
98 
103  inline AdvancedOptionsStatus& AddOptions(const Aws::String& key, Aws::String&& value) { m_optionsHasBeenSet = true; m_options[key] = value; return *this; }
104 
109  inline AdvancedOptionsStatus& AddOptions(Aws::String&& key, Aws::String&& value) { m_optionsHasBeenSet = true; m_options[key] = value; return *this; }
110 
115  inline AdvancedOptionsStatus& AddOptions(const char* key, Aws::String&& value) { m_optionsHasBeenSet = true; m_options[key] = value; return *this; }
116 
121  inline AdvancedOptionsStatus& AddOptions(Aws::String&& key, const char* value) { m_optionsHasBeenSet = true; m_options[key] = value; return *this; }
122 
127  inline AdvancedOptionsStatus& AddOptions(const char* key, const char* value) { m_optionsHasBeenSet = true; m_options[key] = value; return *this; }
128 
133  inline const OptionStatus& GetStatus() const{ return m_status; }
134 
139  inline void SetStatus(const OptionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
140 
145  inline void SetStatus(OptionStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
146 
151  inline AdvancedOptionsStatus& WithStatus(const OptionStatus& value) { SetStatus(value); return *this;}
152 
157  inline AdvancedOptionsStatus& WithStatus(OptionStatus&& value) { SetStatus(value); return *this;}
158 
159  private:
161  bool m_optionsHasBeenSet;
162  OptionStatus m_status;
163  bool m_statusHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace ElasticsearchService
168 } // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetOptions() const
AdvancedOptionsStatus & WithStatus(OptionStatus &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
AdvancedOptionsStatus & AddOptions(const Aws::String &key, const Aws::String &value)
AdvancedOptionsStatus & AddOptions(const Aws::String &key, Aws::String &&value)
AdvancedOptionsStatus & AddOptions(const char *key, Aws::String &&value)
AdvancedOptionsStatus & WithStatus(const OptionStatus &value)
AdvancedOptionsStatus & AddOptions(Aws::String &&key, const char *value)
AdvancedOptionsStatus & WithOptions(const Aws::Map< Aws::String, Aws::String > &value)
#define AWS_ELASTICSEARCHSERVICE_API
void SetOptions(Aws::Map< Aws::String, Aws::String > &&value)
AdvancedOptionsStatus & AddOptions(const char *key, const char *value)
void SetOptions(const Aws::Map< Aws::String, Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AdvancedOptionsStatus & WithOptions(Aws::Map< Aws::String, Aws::String > &&value)
AdvancedOptionsStatus & AddOptions(Aws::String &&key, const Aws::String &value)
JSON (JavaScript Object Notation).
AdvancedOptionsStatus & AddOptions(Aws::String &&key, Aws::String &&value)