/**
 * 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/dataexchange/DataExchange_EXPORTS.h>
#include <aws/dataexchange/model/LFTag.h>

#include <utility>

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

/**
 * <p>The LF-tag policy for a table resource.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/TableLFTagPolicy">AWS
 * API Reference</a></p>
 */
class TableLFTagPolicy {
 public:
  AWS_DATAEXCHANGE_API TableLFTagPolicy() = default;
  AWS_DATAEXCHANGE_API TableLFTagPolicy(Aws::Utils::Json::JsonView jsonValue);
  AWS_DATAEXCHANGE_API TableLFTagPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>A list of LF-tag conditions that apply to table resources.</p>
   */
  inline const Aws::Vector<LFTag>& GetExpression() const { return m_expression; }
  inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
  template <typename ExpressionT = Aws::Vector<LFTag>>
  void SetExpression(ExpressionT&& value) {
    m_expressionHasBeenSet = true;
    m_expression = std::forward<ExpressionT>(value);
  }
  template <typename ExpressionT = Aws::Vector<LFTag>>
  TableLFTagPolicy& WithExpression(ExpressionT&& value) {
    SetExpression(std::forward<ExpressionT>(value));
    return *this;
  }
  template <typename ExpressionT = LFTag>
  TableLFTagPolicy& AddExpression(ExpressionT&& value) {
    m_expressionHasBeenSet = true;
    m_expression.emplace_back(std::forward<ExpressionT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::Vector<LFTag> m_expression;
  bool m_expressionHasBeenSet = false;
};

}  // namespace Model
}  // namespace DataExchange
}  // namespace Aws
