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

#pragma once
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/shield/ShieldRequest.h>
#include <aws/shield/Shield_EXPORTS.h>
#include <aws/shield/model/EmergencyContact.h>

#include <utility>

namespace Aws {
namespace Shield {
namespace Model {

/**
 */
class UpdateEmergencyContactSettingsRequest : public ShieldRequest {
 public:
  AWS_SHIELD_API UpdateEmergencyContactSettingsRequest() = 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 "UpdateEmergencyContactSettings"; }

  AWS_SHIELD_API Aws::String SerializePayload() const override;

  AWS_SHIELD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;

  ///@{
  /**
   * <p>A list of email addresses and phone numbers that the Shield Response Team
   * (SRT) can use to contact you if you have proactive engagement enabled, for
   * escalations to the SRT and to initiate proactive customer support.</p> <p>If you
   * have proactive engagement enabled, the contact list must include at least one
   * phone number.</p>
   */
  inline const Aws::Vector<EmergencyContact>& GetEmergencyContactList() const { return m_emergencyContactList; }
  inline bool EmergencyContactListHasBeenSet() const { return m_emergencyContactListHasBeenSet; }
  template <typename EmergencyContactListT = Aws::Vector<EmergencyContact>>
  void SetEmergencyContactList(EmergencyContactListT&& value) {
    m_emergencyContactListHasBeenSet = true;
    m_emergencyContactList = std::forward<EmergencyContactListT>(value);
  }
  template <typename EmergencyContactListT = Aws::Vector<EmergencyContact>>
  UpdateEmergencyContactSettingsRequest& WithEmergencyContactList(EmergencyContactListT&& value) {
    SetEmergencyContactList(std::forward<EmergencyContactListT>(value));
    return *this;
  }
  template <typename EmergencyContactListT = EmergencyContact>
  UpdateEmergencyContactSettingsRequest& AddEmergencyContactList(EmergencyContactListT&& value) {
    m_emergencyContactListHasBeenSet = true;
    m_emergencyContactList.emplace_back(std::forward<EmergencyContactListT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::Vector<EmergencyContact> m_emergencyContactList;
  bool m_emergencyContactListHasBeenSet = false;
};

}  // namespace Model
}  // namespace Shield
}  // namespace Aws
