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

#pragma once
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/s3control/S3Control_EXPORTS.h>
#include <aws/s3control/model/S3Tag.h>

#include <utility>

namespace Aws {
namespace Utils {
namespace Xml {
class XmlNode;
}  // namespace Xml
}  // namespace Utils
namespace S3Control {
namespace Model {

/**
 * <p/><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/Tagging">AWS
 * API Reference</a></p>
 */
class Tagging {
 public:
  AWS_S3CONTROL_API Tagging() = default;
  AWS_S3CONTROL_API Tagging(const Aws::Utils::Xml::XmlNode& xmlNode);
  AWS_S3CONTROL_API Tagging& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);

  AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;

  ///@{
  /**
   * <p>A collection for a set of tags.</p>
   */
  inline const Aws::Vector<S3Tag>& GetTagSet() const { return m_tagSet; }
  inline bool TagSetHasBeenSet() const { return m_tagSetHasBeenSet; }
  template <typename TagSetT = Aws::Vector<S3Tag>>
  void SetTagSet(TagSetT&& value) {
    m_tagSetHasBeenSet = true;
    m_tagSet = std::forward<TagSetT>(value);
  }
  template <typename TagSetT = Aws::Vector<S3Tag>>
  Tagging& WithTagSet(TagSetT&& value) {
    SetTagSet(std::forward<TagSetT>(value));
    return *this;
  }
  template <typename TagSetT = S3Tag>
  Tagging& AddTagSet(TagSetT&& value) {
    m_tagSetHasBeenSet = true;
    m_tagSet.emplace_back(std::forward<TagSetT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::Vector<S3Tag> m_tagSet;
  bool m_tagSetHasBeenSet = false;
};

}  // namespace Model
}  // namespace S3Control
}  // namespace Aws
