/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details describing an incident record.See Also:
AWS
* API Reference
The Amazon Resource Name (ARN) of the incident.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The Amazon Resource Name (ARN) of the incident.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the incident.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The Amazon Resource Name (ARN) of the incident.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The Amazon Resource Name (ARN) of the incident.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The Amazon Resource Name (ARN) of the incident.
*/ inline IncidentRecordSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the incident.
*/ inline IncidentRecordSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the incident.
*/ inline IncidentRecordSummary& WithArn(const char* value) { SetArn(value); return *this;} /** *The time the incident was created.
*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *The time the incident was created.
*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *The time the incident was created.
*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *The time the incident was created.
*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *The time the incident was created.
*/ inline IncidentRecordSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *The time the incident was created.
*/ inline IncidentRecordSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *Defines the impact to customers and applications.
*/ inline int GetImpact() const{ return m_impact; } /** *Defines the impact to customers and applications.
*/ inline bool ImpactHasBeenSet() const { return m_impactHasBeenSet; } /** *Defines the impact to customers and applications.
*/ inline void SetImpact(int value) { m_impactHasBeenSet = true; m_impact = value; } /** *Defines the impact to customers and applications.
*/ inline IncidentRecordSummary& WithImpact(int value) { SetImpact(value); return *this;} /** *What caused Incident Manager to create the incident.
*/ inline const IncidentRecordSource& GetIncidentRecordSource() const{ return m_incidentRecordSource; } /** *What caused Incident Manager to create the incident.
*/ inline bool IncidentRecordSourceHasBeenSet() const { return m_incidentRecordSourceHasBeenSet; } /** *What caused Incident Manager to create the incident.
*/ inline void SetIncidentRecordSource(const IncidentRecordSource& value) { m_incidentRecordSourceHasBeenSet = true; m_incidentRecordSource = value; } /** *What caused Incident Manager to create the incident.
*/ inline void SetIncidentRecordSource(IncidentRecordSource&& value) { m_incidentRecordSourceHasBeenSet = true; m_incidentRecordSource = std::move(value); } /** *What caused Incident Manager to create the incident.
*/ inline IncidentRecordSummary& WithIncidentRecordSource(const IncidentRecordSource& value) { SetIncidentRecordSource(value); return *this;} /** *What caused Incident Manager to create the incident.
*/ inline IncidentRecordSummary& WithIncidentRecordSource(IncidentRecordSource&& value) { SetIncidentRecordSource(std::move(value)); return *this;} /** *The time the incident was resolved.
*/ inline const Aws::Utils::DateTime& GetResolvedTime() const{ return m_resolvedTime; } /** *The time the incident was resolved.
*/ inline bool ResolvedTimeHasBeenSet() const { return m_resolvedTimeHasBeenSet; } /** *The time the incident was resolved.
*/ inline void SetResolvedTime(const Aws::Utils::DateTime& value) { m_resolvedTimeHasBeenSet = true; m_resolvedTime = value; } /** *The time the incident was resolved.
*/ inline void SetResolvedTime(Aws::Utils::DateTime&& value) { m_resolvedTimeHasBeenSet = true; m_resolvedTime = std::move(value); } /** *The time the incident was resolved.
*/ inline IncidentRecordSummary& WithResolvedTime(const Aws::Utils::DateTime& value) { SetResolvedTime(value); return *this;} /** *The time the incident was resolved.
*/ inline IncidentRecordSummary& WithResolvedTime(Aws::Utils::DateTime&& value) { SetResolvedTime(std::move(value)); return *this;} /** *The current status of the incident.
*/ inline const IncidentRecordStatus& GetStatus() const{ return m_status; } /** *The current status of the incident.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The current status of the incident.
*/ inline void SetStatus(const IncidentRecordStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The current status of the incident.
*/ inline void SetStatus(IncidentRecordStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The current status of the incident.
*/ inline IncidentRecordSummary& WithStatus(const IncidentRecordStatus& value) { SetStatus(value); return *this;} /** *The current status of the incident.
*/ inline IncidentRecordSummary& WithStatus(IncidentRecordStatus&& value) { SetStatus(std::move(value)); return *this;} /** *The title of the incident. This value is either provided by the response plan * or overwritten on creation.
*/ inline const Aws::String& GetTitle() const{ return m_title; } /** *The title of the incident. This value is either provided by the response plan * or overwritten on creation.
*/ inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } /** *The title of the incident. This value is either provided by the response plan * or overwritten on creation.
*/ inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } /** *The title of the incident. This value is either provided by the response plan * or overwritten on creation.
*/ inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } /** *The title of the incident. This value is either provided by the response plan * or overwritten on creation.
*/ inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } /** *The title of the incident. This value is either provided by the response plan * or overwritten on creation.
*/ inline IncidentRecordSummary& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} /** *The title of the incident. This value is either provided by the response plan * or overwritten on creation.
*/ inline IncidentRecordSummary& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} /** *The title of the incident. This value is either provided by the response plan * or overwritten on creation.
*/ inline IncidentRecordSummary& WithTitle(const char* value) { SetTitle(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; int m_impact; bool m_impactHasBeenSet = false; IncidentRecordSource m_incidentRecordSource; bool m_incidentRecordSourceHasBeenSet = false; Aws::Utils::DateTime m_resolvedTime; bool m_resolvedTimeHasBeenSet = false; IncidentRecordStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_title; bool m_titleHasBeenSet = false; }; } // namespace Model } // namespace SSMIncidents } // namespace Aws