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

#pragma once
#include <aws/s3-crt/S3Crt_EXPORTS.h>
#include <aws/s3-crt/model/RecordExpiration.h>

#include <utility>

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

/**
 * <p> The specified updates to the S3 Metadata journal table configuration.
 * </p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/JournalTableConfigurationUpdates">AWS
 * API Reference</a></p>
 */
class JournalTableConfigurationUpdates {
 public:
  AWS_S3CRT_API JournalTableConfigurationUpdates() = default;
  AWS_S3CRT_API JournalTableConfigurationUpdates(const Aws::Utils::Xml::XmlNode& xmlNode);
  AWS_S3CRT_API JournalTableConfigurationUpdates& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);

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

  ///@{
  /**
   * <p> The journal table record expiration settings for the journal table. </p>
   */
  inline const RecordExpiration& GetRecordExpiration() const { return m_recordExpiration; }
  inline bool RecordExpirationHasBeenSet() const { return m_recordExpirationHasBeenSet; }
  template <typename RecordExpirationT = RecordExpiration>
  void SetRecordExpiration(RecordExpirationT&& value) {
    m_recordExpirationHasBeenSet = true;
    m_recordExpiration = std::forward<RecordExpirationT>(value);
  }
  template <typename RecordExpirationT = RecordExpiration>
  JournalTableConfigurationUpdates& WithRecordExpiration(RecordExpirationT&& value) {
    SetRecordExpiration(std::forward<RecordExpirationT>(value));
    return *this;
  }
  ///@}
 private:
  RecordExpiration m_recordExpiration;
  bool m_recordExpirationHasBeenSet = false;
};

}  // namespace Model
}  // namespace S3Crt
}  // namespace Aws
