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

The TemplateParameter data type.

See Also:

AWS * API Reference

*/ class TemplateParameter { public: AWS_CLOUDFORMATION_API TemplateParameter(); AWS_CLOUDFORMATION_API TemplateParameter(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFORMATION_API TemplateParameter& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The name associated with the parameter.

*/ inline const Aws::String& GetParameterKey() const{ return m_parameterKey; } /** *

The name associated with the parameter.

*/ inline bool ParameterKeyHasBeenSet() const { return m_parameterKeyHasBeenSet; } /** *

The name associated with the parameter.

*/ inline void SetParameterKey(const Aws::String& value) { m_parameterKeyHasBeenSet = true; m_parameterKey = value; } /** *

The name associated with the parameter.

*/ inline void SetParameterKey(Aws::String&& value) { m_parameterKeyHasBeenSet = true; m_parameterKey = std::move(value); } /** *

The name associated with the parameter.

*/ inline void SetParameterKey(const char* value) { m_parameterKeyHasBeenSet = true; m_parameterKey.assign(value); } /** *

The name associated with the parameter.

*/ inline TemplateParameter& WithParameterKey(const Aws::String& value) { SetParameterKey(value); return *this;} /** *

The name associated with the parameter.

*/ inline TemplateParameter& WithParameterKey(Aws::String&& value) { SetParameterKey(std::move(value)); return *this;} /** *

The name associated with the parameter.

*/ inline TemplateParameter& WithParameterKey(const char* value) { SetParameterKey(value); return *this;} /** *

The default value associated with the parameter.

*/ inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; } /** *

The default value associated with the parameter.

*/ inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; } /** *

The default value associated with the parameter.

*/ inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; } /** *

The default value associated with the parameter.

*/ inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); } /** *

The default value associated with the parameter.

*/ inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); } /** *

The default value associated with the parameter.

*/ inline TemplateParameter& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;} /** *

The default value associated with the parameter.

*/ inline TemplateParameter& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;} /** *

The default value associated with the parameter.

*/ inline TemplateParameter& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;} /** *

Flag indicating whether the parameter should be displayed as plain text in * logs and UIs.

*/ inline bool GetNoEcho() const{ return m_noEcho; } /** *

Flag indicating whether the parameter should be displayed as plain text in * logs and UIs.

*/ inline bool NoEchoHasBeenSet() const { return m_noEchoHasBeenSet; } /** *

Flag indicating whether the parameter should be displayed as plain text in * logs and UIs.

*/ inline void SetNoEcho(bool value) { m_noEchoHasBeenSet = true; m_noEcho = value; } /** *

Flag indicating whether the parameter should be displayed as plain text in * logs and UIs.

*/ inline TemplateParameter& WithNoEcho(bool value) { SetNoEcho(value); return *this;} /** *

User defined description associated with the parameter.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

User defined description associated with the parameter.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

User defined description associated with the parameter.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

User defined description associated with the parameter.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

User defined description associated with the parameter.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

User defined description associated with the parameter.

*/ inline TemplateParameter& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

User defined description associated with the parameter.

*/ inline TemplateParameter& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

User defined description associated with the parameter.

*/ inline TemplateParameter& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_parameterKey; bool m_parameterKeyHasBeenSet = false; Aws::String m_defaultValue; bool m_defaultValueHasBeenSet = false; bool m_noEcho; bool m_noEchoHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; }; } // namespace Model } // namespace CloudFormation } // namespace Aws