/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace OpsWorks { namespace Model { /** *

Represents an app's environment variable.

See Also:

AWS * API Reference

*/ class EnvironmentVariable { public: AWS_OPSWORKS_API EnvironmentVariable(); AWS_OPSWORKS_API EnvironmentVariable(Aws::Utils::Json::JsonView jsonValue); AWS_OPSWORKS_API EnvironmentVariable& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

(Required) The environment variable's name, which can consist of up to 64 * characters and must be specified. The name can contain upper- and lowercase * letters, numbers, and underscores (_), but it must start with a letter or * underscore.

*/ inline const Aws::String& GetKey() const{ return m_key; } /** *

(Required) The environment variable's name, which can consist of up to 64 * characters and must be specified. The name can contain upper- and lowercase * letters, numbers, and underscores (_), but it must start with a letter or * underscore.

*/ inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } /** *

(Required) The environment variable's name, which can consist of up to 64 * characters and must be specified. The name can contain upper- and lowercase * letters, numbers, and underscores (_), but it must start with a letter or * underscore.

*/ inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } /** *

(Required) The environment variable's name, which can consist of up to 64 * characters and must be specified. The name can contain upper- and lowercase * letters, numbers, and underscores (_), but it must start with a letter or * underscore.

*/ inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } /** *

(Required) The environment variable's name, which can consist of up to 64 * characters and must be specified. The name can contain upper- and lowercase * letters, numbers, and underscores (_), but it must start with a letter or * underscore.

*/ inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } /** *

(Required) The environment variable's name, which can consist of up to 64 * characters and must be specified. The name can contain upper- and lowercase * letters, numbers, and underscores (_), but it must start with a letter or * underscore.

*/ inline EnvironmentVariable& WithKey(const Aws::String& value) { SetKey(value); return *this;} /** *

(Required) The environment variable's name, which can consist of up to 64 * characters and must be specified. The name can contain upper- and lowercase * letters, numbers, and underscores (_), but it must start with a letter or * underscore.

*/ inline EnvironmentVariable& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} /** *

(Required) The environment variable's name, which can consist of up to 64 * characters and must be specified. The name can contain upper- and lowercase * letters, numbers, and underscores (_), but it must start with a letter or * underscore.

*/ inline EnvironmentVariable& WithKey(const char* value) { SetKey(value); return *this;} /** *

(Optional) The environment variable's value, which can be left empty. If you * specify a value, it can contain up to 256 characters, which must all be * printable.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

(Optional) The environment variable's value, which can be left empty. If you * specify a value, it can contain up to 256 characters, which must all be * printable.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

(Optional) The environment variable's value, which can be left empty. If you * specify a value, it can contain up to 256 characters, which must all be * printable.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

(Optional) The environment variable's value, which can be left empty. If you * specify a value, it can contain up to 256 characters, which must all be * printable.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

(Optional) The environment variable's value, which can be left empty. If you * specify a value, it can contain up to 256 characters, which must all be * printable.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

(Optional) The environment variable's value, which can be left empty. If you * specify a value, it can contain up to 256 characters, which must all be * printable.

*/ inline EnvironmentVariable& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

(Optional) The environment variable's value, which can be left empty. If you * specify a value, it can contain up to 256 characters, which must all be * printable.

*/ inline EnvironmentVariable& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

(Optional) The environment variable's value, which can be left empty. If you * specify a value, it can contain up to 256 characters, which must all be * printable.

*/ inline EnvironmentVariable& WithValue(const char* value) { SetValue(value); return *this;} /** *

(Optional) Whether the variable's value will be returned by the * DescribeApps action. To conceal an environment variable's value, set * Secure to true. DescribeApps then returns * *****FILTERED***** instead of the actual value. The default value * for Secure is false.

*/ inline bool GetSecure() const{ return m_secure; } /** *

(Optional) Whether the variable's value will be returned by the * DescribeApps action. To conceal an environment variable's value, set * Secure to true. DescribeApps then returns * *****FILTERED***** instead of the actual value. The default value * for Secure is false.

*/ inline bool SecureHasBeenSet() const { return m_secureHasBeenSet; } /** *

(Optional) Whether the variable's value will be returned by the * DescribeApps action. To conceal an environment variable's value, set * Secure to true. DescribeApps then returns * *****FILTERED***** instead of the actual value. The default value * for Secure is false.

*/ inline void SetSecure(bool value) { m_secureHasBeenSet = true; m_secure = value; } /** *

(Optional) Whether the variable's value will be returned by the * DescribeApps action. To conceal an environment variable's value, set * Secure to true. DescribeApps then returns * *****FILTERED***** instead of the actual value. The default value * for Secure is false.

*/ inline EnvironmentVariable& WithSecure(bool value) { SetSecure(value); return *this;} private: Aws::String m_key; bool m_keyHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; bool m_secure; bool m_secureHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws