/**
 * 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/ssm-incidents/SSMIncidentsRequest.h>
#include <aws/ssm-incidents/SSMIncidents_EXPORTS.h>

#include <utility>

namespace Aws {
namespace Http {
class URI;
}  // namespace Http
namespace SSMIncidents {
namespace Model {

/**
 */
class GetTimelineEventRequest : public SSMIncidentsRequest {
 public:
  AWS_SSMINCIDENTS_API GetTimelineEventRequest() = 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 "GetTimelineEvent"; }

  AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override;

  AWS_SSMINCIDENTS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;

  ///@{
  /**
   * <p>The ID of the event. You can get an event's ID when you create it, or by
   * using <code>ListTimelineEvents</code>.</p>
   */
  inline const Aws::String& GetEventId() const { return m_eventId; }
  inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
  template <typename EventIdT = Aws::String>
  void SetEventId(EventIdT&& value) {
    m_eventIdHasBeenSet = true;
    m_eventId = std::forward<EventIdT>(value);
  }
  template <typename EventIdT = Aws::String>
  GetTimelineEventRequest& WithEventId(EventIdT&& value) {
    SetEventId(std::forward<EventIdT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The Amazon Resource Name (ARN) of the incident that includes the timeline
   * event.</p>
   */
  inline const Aws::String& GetIncidentRecordArn() const { return m_incidentRecordArn; }
  inline bool IncidentRecordArnHasBeenSet() const { return m_incidentRecordArnHasBeenSet; }
  template <typename IncidentRecordArnT = Aws::String>
  void SetIncidentRecordArn(IncidentRecordArnT&& value) {
    m_incidentRecordArnHasBeenSet = true;
    m_incidentRecordArn = std::forward<IncidentRecordArnT>(value);
  }
  template <typename IncidentRecordArnT = Aws::String>
  GetTimelineEventRequest& WithIncidentRecordArn(IncidentRecordArnT&& value) {
    SetIncidentRecordArn(std::forward<IncidentRecordArnT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_eventId;

  Aws::String m_incidentRecordArn;
  bool m_eventIdHasBeenSet = false;
  bool m_incidentRecordArnHasBeenSet = false;
};

}  // namespace Model
}  // namespace SSMIncidents
}  // namespace Aws
