/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SSMContacts { namespace Model { /** *

Incident Manager reaching out to a contact or escalation plan to engage * contact during an incident.

See Also:

AWS * API Reference

*/ class Engagement { public: AWS_SSMCONTACTS_API Engagement(); AWS_SSMCONTACTS_API Engagement(Aws::Utils::Json::JsonView jsonValue); AWS_SSMCONTACTS_API Engagement& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) of the engagement.

*/ inline const Aws::String& GetEngagementArn() const{ return m_engagementArn; } /** *

The Amazon Resource Name (ARN) of the engagement.

*/ inline bool EngagementArnHasBeenSet() const { return m_engagementArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the engagement.

*/ inline void SetEngagementArn(const Aws::String& value) { m_engagementArnHasBeenSet = true; m_engagementArn = value; } /** *

The Amazon Resource Name (ARN) of the engagement.

*/ inline void SetEngagementArn(Aws::String&& value) { m_engagementArnHasBeenSet = true; m_engagementArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the engagement.

*/ inline void SetEngagementArn(const char* value) { m_engagementArnHasBeenSet = true; m_engagementArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the engagement.

*/ inline Engagement& WithEngagementArn(const Aws::String& value) { SetEngagementArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the engagement.

*/ inline Engagement& WithEngagementArn(Aws::String&& value) { SetEngagementArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the engagement.

*/ inline Engagement& WithEngagementArn(const char* value) { SetEngagementArn(value); return *this;} /** *

The ARN of the escalation plan or contact that Incident Manager is * engaging.

*/ inline const Aws::String& GetContactArn() const{ return m_contactArn; } /** *

The ARN of the escalation plan or contact that Incident Manager is * engaging.

*/ inline bool ContactArnHasBeenSet() const { return m_contactArnHasBeenSet; } /** *

The ARN of the escalation plan or contact that Incident Manager is * engaging.

*/ inline void SetContactArn(const Aws::String& value) { m_contactArnHasBeenSet = true; m_contactArn = value; } /** *

The ARN of the escalation plan or contact that Incident Manager is * engaging.

*/ inline void SetContactArn(Aws::String&& value) { m_contactArnHasBeenSet = true; m_contactArn = std::move(value); } /** *

The ARN of the escalation plan or contact that Incident Manager is * engaging.

*/ inline void SetContactArn(const char* value) { m_contactArnHasBeenSet = true; m_contactArn.assign(value); } /** *

The ARN of the escalation plan or contact that Incident Manager is * engaging.

*/ inline Engagement& WithContactArn(const Aws::String& value) { SetContactArn(value); return *this;} /** *

The ARN of the escalation plan or contact that Incident Manager is * engaging.

*/ inline Engagement& WithContactArn(Aws::String&& value) { SetContactArn(std::move(value)); return *this;} /** *

The ARN of the escalation plan or contact that Incident Manager is * engaging.

*/ inline Engagement& WithContactArn(const char* value) { SetContactArn(value); return *this;} /** *

The user that started the engagement.

*/ inline const Aws::String& GetSender() const{ return m_sender; } /** *

The user that started the engagement.

*/ inline bool SenderHasBeenSet() const { return m_senderHasBeenSet; } /** *

The user that started the engagement.

*/ inline void SetSender(const Aws::String& value) { m_senderHasBeenSet = true; m_sender = value; } /** *

The user that started the engagement.

*/ inline void SetSender(Aws::String&& value) { m_senderHasBeenSet = true; m_sender = std::move(value); } /** *

The user that started the engagement.

*/ inline void SetSender(const char* value) { m_senderHasBeenSet = true; m_sender.assign(value); } /** *

The user that started the engagement.

*/ inline Engagement& WithSender(const Aws::String& value) { SetSender(value); return *this;} /** *

The user that started the engagement.

*/ inline Engagement& WithSender(Aws::String&& value) { SetSender(std::move(value)); return *this;} /** *

The user that started the engagement.

*/ inline Engagement& WithSender(const char* value) { SetSender(value); return *this;} /** *

The ARN of the incident that's engaging the contact.

*/ inline const Aws::String& GetIncidentId() const{ return m_incidentId; } /** *

The ARN of the incident that's engaging the contact.

*/ inline bool IncidentIdHasBeenSet() const { return m_incidentIdHasBeenSet; } /** *

The ARN of the incident that's engaging the contact.

*/ inline void SetIncidentId(const Aws::String& value) { m_incidentIdHasBeenSet = true; m_incidentId = value; } /** *

The ARN of the incident that's engaging the contact.

*/ inline void SetIncidentId(Aws::String&& value) { m_incidentIdHasBeenSet = true; m_incidentId = std::move(value); } /** *

The ARN of the incident that's engaging the contact.

*/ inline void SetIncidentId(const char* value) { m_incidentIdHasBeenSet = true; m_incidentId.assign(value); } /** *

The ARN of the incident that's engaging the contact.

*/ inline Engagement& WithIncidentId(const Aws::String& value) { SetIncidentId(value); return *this;} /** *

The ARN of the incident that's engaging the contact.

*/ inline Engagement& WithIncidentId(Aws::String&& value) { SetIncidentId(std::move(value)); return *this;} /** *

The ARN of the incident that's engaging the contact.

*/ inline Engagement& WithIncidentId(const char* value) { SetIncidentId(value); return *this;} /** *

The time that the engagement began.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The time that the engagement began.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The time that the engagement began.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The time that the engagement began.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The time that the engagement began.

*/ inline Engagement& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The time that the engagement began.

*/ inline Engagement& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The time that the engagement ended.

*/ inline const Aws::Utils::DateTime& GetStopTime() const{ return m_stopTime; } /** *

The time that the engagement ended.

*/ inline bool StopTimeHasBeenSet() const { return m_stopTimeHasBeenSet; } /** *

The time that the engagement ended.

*/ inline void SetStopTime(const Aws::Utils::DateTime& value) { m_stopTimeHasBeenSet = true; m_stopTime = value; } /** *

The time that the engagement ended.

*/ inline void SetStopTime(Aws::Utils::DateTime&& value) { m_stopTimeHasBeenSet = true; m_stopTime = std::move(value); } /** *

The time that the engagement ended.

*/ inline Engagement& WithStopTime(const Aws::Utils::DateTime& value) { SetStopTime(value); return *this;} /** *

The time that the engagement ended.

*/ inline Engagement& WithStopTime(Aws::Utils::DateTime&& value) { SetStopTime(std::move(value)); return *this;} private: Aws::String m_engagementArn; bool m_engagementArnHasBeenSet = false; Aws::String m_contactArn; bool m_contactArnHasBeenSet = false; Aws::String m_sender; bool m_senderHasBeenSet = false; Aws::String m_incidentId; bool m_incidentIdHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_stopTime; bool m_stopTimeHasBeenSet = false; }; } // namespace Model } // namespace SSMContacts } // namespace Aws