﻿/**
 * 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/logs/CloudWatchLogs_EXPORTS.h>

#include <utility>

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

/**
 * <p>A structure that contains information about one delivery destination
 * policy.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/Policy">AWS API
 * Reference</a></p>
 */
class Policy {
 public:
  AWS_CLOUDWATCHLOGS_API Policy() = default;
  AWS_CLOUDWATCHLOGS_API Policy(Aws::Utils::Json::JsonView jsonValue);
  AWS_CLOUDWATCHLOGS_API Policy& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>The contents of the delivery destination policy.</p>
   */
  inline const Aws::String& GetDeliveryDestinationPolicy() const { return m_deliveryDestinationPolicy; }
  inline bool DeliveryDestinationPolicyHasBeenSet() const { return m_deliveryDestinationPolicyHasBeenSet; }
  template <typename DeliveryDestinationPolicyT = Aws::String>
  void SetDeliveryDestinationPolicy(DeliveryDestinationPolicyT&& value) {
    m_deliveryDestinationPolicyHasBeenSet = true;
    m_deliveryDestinationPolicy = std::forward<DeliveryDestinationPolicyT>(value);
  }
  template <typename DeliveryDestinationPolicyT = Aws::String>
  Policy& WithDeliveryDestinationPolicy(DeliveryDestinationPolicyT&& value) {
    SetDeliveryDestinationPolicy(std::forward<DeliveryDestinationPolicyT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_deliveryDestinationPolicy;
  bool m_deliveryDestinationPolicyHasBeenSet = false;
};

}  // namespace Model
}  // namespace CloudWatchLogs
}  // namespace Aws
