/** * 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 Proton { namespace Model { /** *

An infrastructure as code defined resource output.

See Also:

* AWS * API Reference

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

The output key.

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

The output key.

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

The output key.

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

The output key.

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

The output key.

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

The output key.

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

The output key.

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

The output key.

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

The output value.

*/ inline const Aws::String& GetValueString() const{ return m_valueString; } /** *

The output value.

*/ inline bool ValueStringHasBeenSet() const { return m_valueStringHasBeenSet; } /** *

The output value.

*/ inline void SetValueString(const Aws::String& value) { m_valueStringHasBeenSet = true; m_valueString = value; } /** *

The output value.

*/ inline void SetValueString(Aws::String&& value) { m_valueStringHasBeenSet = true; m_valueString = std::move(value); } /** *

The output value.

*/ inline void SetValueString(const char* value) { m_valueStringHasBeenSet = true; m_valueString.assign(value); } /** *

The output value.

*/ inline Output& WithValueString(const Aws::String& value) { SetValueString(value); return *this;} /** *

The output value.

*/ inline Output& WithValueString(Aws::String&& value) { SetValueString(std::move(value)); return *this;} /** *

The output value.

*/ inline Output& WithValueString(const char* value) { SetValueString(value); return *this;} private: Aws::String m_key; bool m_keyHasBeenSet = false; Aws::String m_valueString; bool m_valueStringHasBeenSet = false; }; } // namespace Model } // namespace Proton } // namespace Aws