﻿/**
 * 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 logs delivery
 * destination.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeliveryDestinationConfiguration">AWS
 * API Reference</a></p>
 */
class DeliveryDestinationConfiguration {
 public:
  AWS_CLOUDWATCHLOGS_API DeliveryDestinationConfiguration() = default;
  AWS_CLOUDWATCHLOGS_API DeliveryDestinationConfiguration(Aws::Utils::Json::JsonView jsonValue);
  AWS_CLOUDWATCHLOGS_API DeliveryDestinationConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>The ARN of the Amazon Web Services destination that this delivery destination
   * represents. That Amazon Web Services destination can be a log group in
   * CloudWatch Logs, an Amazon S3 bucket, or a delivery stream in Firehose.</p>
   */
  inline const Aws::String& GetDestinationResourceArn() const { return m_destinationResourceArn; }
  inline bool DestinationResourceArnHasBeenSet() const { return m_destinationResourceArnHasBeenSet; }
  template <typename DestinationResourceArnT = Aws::String>
  void SetDestinationResourceArn(DestinationResourceArnT&& value) {
    m_destinationResourceArnHasBeenSet = true;
    m_destinationResourceArn = std::forward<DestinationResourceArnT>(value);
  }
  template <typename DestinationResourceArnT = Aws::String>
  DeliveryDestinationConfiguration& WithDestinationResourceArn(DestinationResourceArnT&& value) {
    SetDestinationResourceArn(std::forward<DestinationResourceArnT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_destinationResourceArn;
  bool m_destinationResourceArnHasBeenSet = false;
};

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