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

The attributes allowed or specified with a parameter object.

See * Also:

AWS * API Reference

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

The field identifier.

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

The field identifier.

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

The field identifier.

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

The field identifier.

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

The field identifier.

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

The field identifier.

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

The field identifier.

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

The field identifier.

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

The field value, expressed as a String.

*/ inline const Aws::String& GetStringValue() const{ return m_stringValue; } /** *

The field value, expressed as a String.

*/ inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; } /** *

The field value, expressed as a String.

*/ inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; } /** *

The field value, expressed as a String.

*/ inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); } /** *

The field value, expressed as a String.

*/ inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); } /** *

The field value, expressed as a String.

*/ inline ParameterAttribute& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;} /** *

The field value, expressed as a String.

*/ inline ParameterAttribute& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;} /** *

The field value, expressed as a String.

*/ inline ParameterAttribute& WithStringValue(const char* value) { SetStringValue(value); return *this;} private: Aws::String m_key; bool m_keyHasBeenSet = false; Aws::String m_stringValue; bool m_stringValueHasBeenSet = false; }; } // namespace Model } // namespace DataPipeline } // namespace Aws