/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides information about the tags that are associated with an S3 bucket or
* object. Each tag consists of a required tag key and an associated tag
* value.See Also:
AWS
* API Reference
One part of a key-value pair that comprises a tag. A tag key is a general * label that acts as a category for more specific tag values.
*/ inline const Aws::String& GetKey() const{ return m_key; } /** *One part of a key-value pair that comprises a tag. A tag key is a general * label that acts as a category for more specific tag values.
*/ inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } /** *One part of a key-value pair that comprises a tag. A tag key is a general * label that acts as a category for more specific tag values.
*/ inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } /** *One part of a key-value pair that comprises a tag. A tag key is a general * label that acts as a category for more specific tag values.
*/ inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } /** *One part of a key-value pair that comprises a tag. A tag key is a general * label that acts as a category for more specific tag values.
*/ inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } /** *One part of a key-value pair that comprises a tag. A tag key is a general * label that acts as a category for more specific tag values.
*/ inline KeyValuePair& WithKey(const Aws::String& value) { SetKey(value); return *this;} /** *One part of a key-value pair that comprises a tag. A tag key is a general * label that acts as a category for more specific tag values.
*/ inline KeyValuePair& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} /** *One part of a key-value pair that comprises a tag. A tag key is a general * label that acts as a category for more specific tag values.
*/ inline KeyValuePair& WithKey(const char* value) { SetKey(value); return *this;} /** *One part of a key-value pair that comprises a tag. A tag value acts as a * descriptor for a tag key. A tag value can be an empty string.
*/ inline const Aws::String& GetValue() const{ return m_value; } /** *One part of a key-value pair that comprises a tag. A tag value acts as a * descriptor for a tag key. A tag value can be an empty string.
*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *One part of a key-value pair that comprises a tag. A tag value acts as a * descriptor for a tag key. A tag value can be an empty string.
*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *One part of a key-value pair that comprises a tag. A tag value acts as a * descriptor for a tag key. A tag value can be an empty string.
*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *One part of a key-value pair that comprises a tag. A tag value acts as a * descriptor for a tag key. A tag value can be an empty string.
*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *One part of a key-value pair that comprises a tag. A tag value acts as a * descriptor for a tag key. A tag value can be an empty string.
*/ inline KeyValuePair& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *One part of a key-value pair that comprises a tag. A tag value acts as a * descriptor for a tag key. A tag value can be an empty string.
*/ inline KeyValuePair& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *One part of a key-value pair that comprises a tag. A tag value acts as a * descriptor for a tag key. A tag value can be an empty string.
*/ inline KeyValuePair& WithValue(const char* value) { SetValue(value); return *this;} private: Aws::String m_key; bool m_keyHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws