/**
 * 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/core/utils/memory/stl/AWSVector.h>
#include <aws/logs/CloudWatchLogs_EXPORTS.h>
#include <aws/logs/model/S3DeliveryConfiguration.h>

#include <utility>

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

/**
 * <p>This structure contains the default values that are used for each
 * configuration parameter when you use <a
 * href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html">CreateDelivery</a>
 * to create a deliver under the current service type, resource type, and log
 * type.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ConfigurationTemplateDeliveryConfigValues">AWS
 * API Reference</a></p>
 */
class ConfigurationTemplateDeliveryConfigValues {
 public:
  AWS_CLOUDWATCHLOGS_API ConfigurationTemplateDeliveryConfigValues() = default;
  AWS_CLOUDWATCHLOGS_API ConfigurationTemplateDeliveryConfigValues(Aws::Utils::Json::JsonView jsonValue);
  AWS_CLOUDWATCHLOGS_API ConfigurationTemplateDeliveryConfigValues& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>The default record fields that will be delivered when a list of record fields
   * is not provided in a <a
   * href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html">CreateDelivery</a>
   * operation.</p>
   */
  inline const Aws::Vector<Aws::String>& GetRecordFields() const { return m_recordFields; }
  inline bool RecordFieldsHasBeenSet() const { return m_recordFieldsHasBeenSet; }
  template <typename RecordFieldsT = Aws::Vector<Aws::String>>
  void SetRecordFields(RecordFieldsT&& value) {
    m_recordFieldsHasBeenSet = true;
    m_recordFields = std::forward<RecordFieldsT>(value);
  }
  template <typename RecordFieldsT = Aws::Vector<Aws::String>>
  ConfigurationTemplateDeliveryConfigValues& WithRecordFields(RecordFieldsT&& value) {
    SetRecordFields(std::forward<RecordFieldsT>(value));
    return *this;
  }
  template <typename RecordFieldsT = Aws::String>
  ConfigurationTemplateDeliveryConfigValues& AddRecordFields(RecordFieldsT&& value) {
    m_recordFieldsHasBeenSet = true;
    m_recordFields.emplace_back(std::forward<RecordFieldsT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The default field delimiter that is used in a <a
   * href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html">CreateDelivery</a>
   * operation when the field delimiter is not specified in that operation. The field
   * delimiter is used only when the final output delivery is in <code>Plain</code>,
   * <code>W3C</code>, or <code>Raw</code> format.</p>
   */
  inline const Aws::String& GetFieldDelimiter() const { return m_fieldDelimiter; }
  inline bool FieldDelimiterHasBeenSet() const { return m_fieldDelimiterHasBeenSet; }
  template <typename FieldDelimiterT = Aws::String>
  void SetFieldDelimiter(FieldDelimiterT&& value) {
    m_fieldDelimiterHasBeenSet = true;
    m_fieldDelimiter = std::forward<FieldDelimiterT>(value);
  }
  template <typename FieldDelimiterT = Aws::String>
  ConfigurationTemplateDeliveryConfigValues& WithFieldDelimiter(FieldDelimiterT&& value) {
    SetFieldDelimiter(std::forward<FieldDelimiterT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The delivery parameters that are used when you create a delivery to a
   * delivery destination that is an S3 Bucket.</p>
   */
  inline const S3DeliveryConfiguration& GetS3DeliveryConfiguration() const { return m_s3DeliveryConfiguration; }
  inline bool S3DeliveryConfigurationHasBeenSet() const { return m_s3DeliveryConfigurationHasBeenSet; }
  template <typename S3DeliveryConfigurationT = S3DeliveryConfiguration>
  void SetS3DeliveryConfiguration(S3DeliveryConfigurationT&& value) {
    m_s3DeliveryConfigurationHasBeenSet = true;
    m_s3DeliveryConfiguration = std::forward<S3DeliveryConfigurationT>(value);
  }
  template <typename S3DeliveryConfigurationT = S3DeliveryConfiguration>
  ConfigurationTemplateDeliveryConfigValues& WithS3DeliveryConfiguration(S3DeliveryConfigurationT&& value) {
    SetS3DeliveryConfiguration(std::forward<S3DeliveryConfigurationT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::Vector<Aws::String> m_recordFields;

  Aws::String m_fieldDelimiter;

  S3DeliveryConfiguration m_s3DeliveryConfiguration;
  bool m_recordFieldsHasBeenSet = false;
  bool m_fieldDelimiterHasBeenSet = false;
  bool m_s3DeliveryConfigurationHasBeenSet = false;
};

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