AWS SDK for C++  0.12.9
AWS SDK for C++
EnvironmentVariable.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace OpsWorks
29 {
30 namespace Model
31 {
32 
37  {
38  public:
41  EnvironmentVariable& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
50  inline const Aws::String& GetKey() const{ return m_key; }
51 
58  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
59 
66  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = value; }
67 
74  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
75 
82  inline EnvironmentVariable& WithKey(const Aws::String& value) { SetKey(value); return *this;}
83 
90  inline EnvironmentVariable& WithKey(Aws::String&& value) { SetKey(value); return *this;}
91 
98  inline EnvironmentVariable& WithKey(const char* value) { SetKey(value); return *this;}
99 
105  inline const Aws::String& GetValue() const{ return m_value; }
106 
112  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
113 
119  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = value; }
120 
126  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
127 
133  inline EnvironmentVariable& WithValue(const Aws::String& value) { SetValue(value); return *this;}
134 
140  inline EnvironmentVariable& WithValue(Aws::String&& value) { SetValue(value); return *this;}
141 
147  inline EnvironmentVariable& WithValue(const char* value) { SetValue(value); return *this;}
148 
156  inline bool GetSecure() const{ return m_secure; }
157 
165  inline void SetSecure(bool value) { m_secureHasBeenSet = true; m_secure = value; }
166 
174  inline EnvironmentVariable& WithSecure(bool value) { SetSecure(value); return *this;}
175 
176  private:
177  Aws::String m_key;
178  bool m_keyHasBeenSet;
179  Aws::String m_value;
180  bool m_valueHasBeenSet;
181  bool m_secure;
182  bool m_secureHasBeenSet;
183  };
184 
185 } // namespace Model
186 } // namespace OpsWorks
187 } // namespace Aws
void SetValue(const Aws::String &value)
void SetKey(const Aws::String &value)
EnvironmentVariable & WithValue(const Aws::String &value)
EnvironmentVariable & WithKey(Aws::String &&value)
EnvironmentVariable & WithSecure(bool value)
EnvironmentVariable & WithValue(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
EnvironmentVariable & WithValue(const char *value)
EnvironmentVariable & WithKey(const char *value)
EnvironmentVariable & WithKey(const Aws::String &value)
JSON (JavaScript Object Notation).