/**
 * 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/sesv2/SESV2Request.h>
#include <aws/sesv2/SESV2_EXPORTS.h>

#include <utility>

namespace Aws {
namespace SESV2 {
namespace Model {

/**
 * <p>A request to associate a configuration set with a MailManager
 * archive.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/PutConfigurationSetArchivingOptionsRequest">AWS
 * API Reference</a></p>
 */
class PutConfigurationSetArchivingOptionsRequest : public SESV2Request {
 public:
  AWS_SESV2_API PutConfigurationSetArchivingOptionsRequest() = default;

  // Service request name is the Operation name which will send this request out,
  // each operation should has unique request name, so that we can get operation's name from this request.
  // Note: this is not true for response, multiple operations may have the same response name,
  // so we can not get operation's name from response.
  inline virtual const char* GetServiceRequestName() const override { return "PutConfigurationSetArchivingOptions"; }

  AWS_SESV2_API Aws::String SerializePayload() const override;

  ///@{
  /**
   * <p>The name of the configuration set to associate with a MailManager
   * archive.</p>
   */
  inline const Aws::String& GetConfigurationSetName() const { return m_configurationSetName; }
  inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
  template <typename ConfigurationSetNameT = Aws::String>
  void SetConfigurationSetName(ConfigurationSetNameT&& value) {
    m_configurationSetNameHasBeenSet = true;
    m_configurationSetName = std::forward<ConfigurationSetNameT>(value);
  }
  template <typename ConfigurationSetNameT = Aws::String>
  PutConfigurationSetArchivingOptionsRequest& WithConfigurationSetName(ConfigurationSetNameT&& value) {
    SetConfigurationSetName(std::forward<ConfigurationSetNameT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The Amazon Resource Name (ARN) of the MailManager archive that the Amazon SES
   * API v2 sends email to.</p>
   */
  inline const Aws::String& GetArchiveArn() const { return m_archiveArn; }
  inline bool ArchiveArnHasBeenSet() const { return m_archiveArnHasBeenSet; }
  template <typename ArchiveArnT = Aws::String>
  void SetArchiveArn(ArchiveArnT&& value) {
    m_archiveArnHasBeenSet = true;
    m_archiveArn = std::forward<ArchiveArnT>(value);
  }
  template <typename ArchiveArnT = Aws::String>
  PutConfigurationSetArchivingOptionsRequest& WithArchiveArn(ArchiveArnT&& value) {
    SetArchiveArn(std::forward<ArchiveArnT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_configurationSetName;

  Aws::String m_archiveArn;
  bool m_configurationSetNameHasBeenSet = false;
  bool m_archiveArnHasBeenSet = false;
};

}  // namespace Model
}  // namespace SESV2
}  // namespace Aws
