/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#pragma once
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/securitylake/SecurityLake_EXPORTS.h>

#include <utility>

namespace Aws {
namespace Utils {
namespace Json {
class JsonValue;
class JsonView;
}  // namespace Json
}  // namespace Utils
namespace SecurityLake {
namespace Model {

/**
 * <p>A <i>tag</i> is a label that you can define and associate with Amazon Web
 * Services resources, including certain types of Amazon Security Lake resources.
 * Tags can help you identify, categorize, and manage resources in different ways,
 * such as by owner, environment, or other criteria. You can associate tags with
 * the following types of Security Lake resources: subscribers, and the data lake
 * configuration for your Amazon Web Services account in individual Amazon Web
 * Services Regions.</p> <p>A resource can have up to 50 tags. Each tag consists of
 * a required <i>tag key</i> and an associated <i>tag value</i>. A <i>tag key</i>
 * is a general label that acts as a category for a more specific tag value. Each
 * tag key must be unique and it can have only one tag value. A <i>tag value</i>
 * acts as a descriptor for a tag key. Tag keys and values are case sensitive. They
 * can contain letters, numbers, spaces, or the following symbols: _ . : / = + @
 * -</p> <p>For more information, see <a
 * href="https://docs.aws.amazon.com/security-lake/latest/userguide/tagging-resources.html">Tagging
 * Amazon Security Lake resources</a> in the <i>Amazon Security Lake User
 * Guide</i>.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/securitylake-2018-05-10/Tag">AWS
 * API Reference</a></p>
 */
class Tag {
 public:
  AWS_SECURITYLAKE_API Tag() = default;
  AWS_SECURITYLAKE_API Tag(Aws::Utils::Json::JsonView jsonValue);
  AWS_SECURITYLAKE_API Tag& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>The name of the tag. This is a general label that acts as a category for a
   * more specific tag value (<code>value</code>).</p>
   */
  inline const Aws::String& GetKey() const { return m_key; }
  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
  template <typename KeyT = Aws::String>
  void SetKey(KeyT&& value) {
    m_keyHasBeenSet = true;
    m_key = std::forward<KeyT>(value);
  }
  template <typename KeyT = Aws::String>
  Tag& WithKey(KeyT&& value) {
    SetKey(std::forward<KeyT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The value that’s associated with the specified tag key (<code>key</code>).
   * This value acts as a descriptor for the tag key. A tag value cannot be null, but
   * it can be an empty string.</p>
   */
  inline const Aws::String& GetValue() const { return m_value; }
  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
  template <typename ValueT = Aws::String>
  void SetValue(ValueT&& value) {
    m_valueHasBeenSet = true;
    m_value = std::forward<ValueT>(value);
  }
  template <typename ValueT = Aws::String>
  Tag& WithValue(ValueT&& value) {
    SetValue(std::forward<ValueT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_key;

  Aws::String m_value;
  bool m_keyHasBeenSet = false;
  bool m_valueHasBeenSet = false;
};

}  // namespace Model
}  // namespace SecurityLake
}  // namespace Aws
