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

#pragma once
#include <aws/appfabric/AppFabric_EXPORTS.h>
#include <aws/appfabric/model/S3Bucket.h>
#include <aws/appfabric/model/FirehoseStream.h>
#include <utility>

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

  /**
   * <p>Contains information about an audit log destination.</p><p><h3>See Also:</h3>
   * <a
   * href="http://docs.aws.amazon.com/goto/WebAPI/appfabric-2023-05-19/Destination">AWS
   * API Reference</a></p>
   */
  class Destination
  {
  public:
    AWS_APPFABRIC_API Destination();
    AWS_APPFABRIC_API Destination(Aws::Utils::Json::JsonView jsonValue);
    AWS_APPFABRIC_API Destination& operator=(Aws::Utils::Json::JsonView jsonValue);
    AWS_APPFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const;


    ///@{
    /**
     * <p>Contains information about an Amazon S3 bucket.</p>
     */
    inline const S3Bucket& GetS3Bucket() const{ return m_s3Bucket; }
    inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
    inline void SetS3Bucket(const S3Bucket& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
    inline void SetS3Bucket(S3Bucket&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::move(value); }
    inline Destination& WithS3Bucket(const S3Bucket& value) { SetS3Bucket(value); return *this;}
    inline Destination& WithS3Bucket(S3Bucket&& value) { SetS3Bucket(std::move(value)); return *this;}
    ///@}

    ///@{
    /**
     * <p>Contains information about an Amazon Kinesis Data Firehose delivery
     * stream.</p>
     */
    inline const FirehoseStream& GetFirehoseStream() const{ return m_firehoseStream; }
    inline bool FirehoseStreamHasBeenSet() const { return m_firehoseStreamHasBeenSet; }
    inline void SetFirehoseStream(const FirehoseStream& value) { m_firehoseStreamHasBeenSet = true; m_firehoseStream = value; }
    inline void SetFirehoseStream(FirehoseStream&& value) { m_firehoseStreamHasBeenSet = true; m_firehoseStream = std::move(value); }
    inline Destination& WithFirehoseStream(const FirehoseStream& value) { SetFirehoseStream(value); return *this;}
    inline Destination& WithFirehoseStream(FirehoseStream&& value) { SetFirehoseStream(std::move(value)); return *this;}
    ///@}
  private:

    S3Bucket m_s3Bucket;
    bool m_s3BucketHasBeenSet = false;

    FirehoseStream m_firehoseStream;
    bool m_firehoseStreamHasBeenSet = false;
  };

} // namespace Model
} // namespace AppFabric
} // namespace Aws
