/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace S3Crt { namespace Model { /** *

A metadata key-value pair to store with an object.

See Also:

* AWS * API Reference

*/ class MetadataEntry { public: AWS_S3CRT_API MetadataEntry(); AWS_S3CRT_API MetadataEntry(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3CRT_API MetadataEntry& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

Name of the object.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

Name of the object.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

Name of the object.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

Name of the object.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

Name of the object.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

Name of the object.

*/ inline MetadataEntry& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

Name of the object.

*/ inline MetadataEntry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

Name of the object.

*/ inline MetadataEntry& WithName(const char* value) { SetName(value); return *this;} /** *

Value of the object.

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

Value of the object.

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

Value of the object.

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

Value of the object.

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

Value of the object.

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

Value of the object.

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

Value of the object.

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

Value of the object.

*/ inline MetadataEntry& WithValue(const char* value) { SetValue(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace S3Crt } // namespace Aws