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

#pragma once
#include <aws/states/SFN_EXPORTS.h>
#include <aws/states/model/CloudWatchLogsLogGroup.h>

#include <utility>

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

/**
 * <p/><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/LogDestination">AWS
 * API Reference</a></p>
 */
class LogDestination {
 public:
  AWS_SFN_API LogDestination() = default;
  AWS_SFN_API LogDestination(Aws::Utils::Json::JsonView jsonValue);
  AWS_SFN_API LogDestination& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_SFN_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>An object describing a CloudWatch log group. For more information, see <a
   * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html">AWS::Logs::LogGroup</a>
   * in the CloudFormation User Guide.</p>
   */
  inline const CloudWatchLogsLogGroup& GetCloudWatchLogsLogGroup() const { return m_cloudWatchLogsLogGroup; }
  inline bool CloudWatchLogsLogGroupHasBeenSet() const { return m_cloudWatchLogsLogGroupHasBeenSet; }
  template <typename CloudWatchLogsLogGroupT = CloudWatchLogsLogGroup>
  void SetCloudWatchLogsLogGroup(CloudWatchLogsLogGroupT&& value) {
    m_cloudWatchLogsLogGroupHasBeenSet = true;
    m_cloudWatchLogsLogGroup = std::forward<CloudWatchLogsLogGroupT>(value);
  }
  template <typename CloudWatchLogsLogGroupT = CloudWatchLogsLogGroup>
  LogDestination& WithCloudWatchLogsLogGroup(CloudWatchLogsLogGroupT&& value) {
    SetCloudWatchLogsLogGroup(std::forward<CloudWatchLogsLogGroupT>(value));
    return *this;
  }
  ///@}
 private:
  CloudWatchLogsLogGroup m_cloudWatchLogsLogGroup;
  bool m_cloudWatchLogsLogGroupHasBeenSet = false;
};

}  // namespace Model
}  // namespace SFN
}  // namespace Aws
