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

The ParameterDeclaration data type.

See Also:

AWS * API Reference

*/ class ParameterDeclaration { public: AWS_CLOUDFORMATION_API ParameterDeclaration(); AWS_CLOUDFORMATION_API ParameterDeclaration(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFORMATION_API ParameterDeclaration& 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 that's associated with the parameter.

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

The name that's associated with the parameter.

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

The name that's associated with the parameter.

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

The name that's associated with the parameter.

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

The name that's associated with the parameter.

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

The name that's associated with the parameter.

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

The name that's associated with the parameter.

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

The name that's associated with the parameter.

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

The default value of the parameter.

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

The default value of the parameter.

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

The default value of the parameter.

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

The default value of the parameter.

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

The default value of the parameter.

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

The default value of the parameter.

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

The default value of the parameter.

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

The default value of the parameter.

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

The type of parameter.

*/ inline const Aws::String& GetParameterType() const{ return m_parameterType; } /** *

The type of parameter.

*/ inline bool ParameterTypeHasBeenSet() const { return m_parameterTypeHasBeenSet; } /** *

The type of parameter.

*/ inline void SetParameterType(const Aws::String& value) { m_parameterTypeHasBeenSet = true; m_parameterType = value; } /** *

The type of parameter.

*/ inline void SetParameterType(Aws::String&& value) { m_parameterTypeHasBeenSet = true; m_parameterType = std::move(value); } /** *

The type of parameter.

*/ inline void SetParameterType(const char* value) { m_parameterTypeHasBeenSet = true; m_parameterType.assign(value); } /** *

The type of parameter.

*/ inline ParameterDeclaration& WithParameterType(const Aws::String& value) { SetParameterType(value); return *this;} /** *

The type of parameter.

*/ inline ParameterDeclaration& WithParameterType(Aws::String&& value) { SetParameterType(std::move(value)); return *this;} /** *

The type of parameter.

*/ inline ParameterDeclaration& WithParameterType(const char* value) { SetParameterType(value); return *this;} /** *

Flag that indicates whether the parameter value is shown as plain text in * logs and in the Amazon Web Services Management Console.

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

Flag that indicates whether the parameter value is shown as plain text in * logs and in the Amazon Web Services Management Console.

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

Flag that indicates whether the parameter value is shown as plain text in * logs and in the Amazon Web Services Management Console.

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

Flag that indicates whether the parameter value is shown as plain text in * logs and in the Amazon Web Services Management Console.

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

The description that's associate with the parameter.

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

The description that's associate with the parameter.

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

The description that's associate with the parameter.

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

The description that's associate with the parameter.

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

The description that's associate with the parameter.

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

The description that's associate with the parameter.

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

The description that's associate with the parameter.

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

The description that's associate with the parameter.

*/ inline ParameterDeclaration& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The criteria that CloudFormation uses to validate parameter values.

*/ inline const ParameterConstraints& GetParameterConstraints() const{ return m_parameterConstraints; } /** *

The criteria that CloudFormation uses to validate parameter values.

*/ inline bool ParameterConstraintsHasBeenSet() const { return m_parameterConstraintsHasBeenSet; } /** *

The criteria that CloudFormation uses to validate parameter values.

*/ inline void SetParameterConstraints(const ParameterConstraints& value) { m_parameterConstraintsHasBeenSet = true; m_parameterConstraints = value; } /** *

The criteria that CloudFormation uses to validate parameter values.

*/ inline void SetParameterConstraints(ParameterConstraints&& value) { m_parameterConstraintsHasBeenSet = true; m_parameterConstraints = std::move(value); } /** *

The criteria that CloudFormation uses to validate parameter values.

*/ inline ParameterDeclaration& WithParameterConstraints(const ParameterConstraints& value) { SetParameterConstraints(value); return *this;} /** *

The criteria that CloudFormation uses to validate parameter values.

*/ inline ParameterDeclaration& WithParameterConstraints(ParameterConstraints&& value) { SetParameterConstraints(std::move(value)); return *this;} private: Aws::String m_parameterKey; bool m_parameterKeyHasBeenSet = false; Aws::String m_defaultValue; bool m_defaultValueHasBeenSet = false; Aws::String m_parameterType; bool m_parameterTypeHasBeenSet = false; bool m_noEcho; bool m_noEchoHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; ParameterConstraints m_parameterConstraints; bool m_parameterConstraintsHasBeenSet = false; }; } // namespace Model } // namespace CloudFormation } // namespace Aws