/** * 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 AuditManager { namespace Model { /** *

The notification that informs a user of an update in Audit Manager. For * example, this includes the notification that's sent when a control set is * delegated for review.

See Also:

AWS * API Reference

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

The unique identifier for the notification.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique identifier for the notification.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique identifier for the notification.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique identifier for the notification.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique identifier for the notification.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique identifier for the notification.

*/ inline Notification& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique identifier for the notification.

*/ inline Notification& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique identifier for the notification.

*/ inline Notification& WithId(const char* value) { SetId(value); return *this;} /** *

The identifier for the assessment.

*/ inline const Aws::String& GetAssessmentId() const{ return m_assessmentId; } /** *

The identifier for the assessment.

*/ inline bool AssessmentIdHasBeenSet() const { return m_assessmentIdHasBeenSet; } /** *

The identifier for the assessment.

*/ inline void SetAssessmentId(const Aws::String& value) { m_assessmentIdHasBeenSet = true; m_assessmentId = value; } /** *

The identifier for the assessment.

*/ inline void SetAssessmentId(Aws::String&& value) { m_assessmentIdHasBeenSet = true; m_assessmentId = std::move(value); } /** *

The identifier for the assessment.

*/ inline void SetAssessmentId(const char* value) { m_assessmentIdHasBeenSet = true; m_assessmentId.assign(value); } /** *

The identifier for the assessment.

*/ inline Notification& WithAssessmentId(const Aws::String& value) { SetAssessmentId(value); return *this;} /** *

The identifier for the assessment.

*/ inline Notification& WithAssessmentId(Aws::String&& value) { SetAssessmentId(std::move(value)); return *this;} /** *

The identifier for the assessment.

*/ inline Notification& WithAssessmentId(const char* value) { SetAssessmentId(value); return *this;} /** *

The name of the related assessment.

*/ inline const Aws::String& GetAssessmentName() const{ return m_assessmentName; } /** *

The name of the related assessment.

*/ inline bool AssessmentNameHasBeenSet() const { return m_assessmentNameHasBeenSet; } /** *

The name of the related assessment.

*/ inline void SetAssessmentName(const Aws::String& value) { m_assessmentNameHasBeenSet = true; m_assessmentName = value; } /** *

The name of the related assessment.

*/ inline void SetAssessmentName(Aws::String&& value) { m_assessmentNameHasBeenSet = true; m_assessmentName = std::move(value); } /** *

The name of the related assessment.

*/ inline void SetAssessmentName(const char* value) { m_assessmentNameHasBeenSet = true; m_assessmentName.assign(value); } /** *

The name of the related assessment.

*/ inline Notification& WithAssessmentName(const Aws::String& value) { SetAssessmentName(value); return *this;} /** *

The name of the related assessment.

*/ inline Notification& WithAssessmentName(Aws::String&& value) { SetAssessmentName(std::move(value)); return *this;} /** *

The name of the related assessment.

*/ inline Notification& WithAssessmentName(const char* value) { SetAssessmentName(value); return *this;} /** *

The identifier for the control set.

*/ inline const Aws::String& GetControlSetId() const{ return m_controlSetId; } /** *

The identifier for the control set.

*/ inline bool ControlSetIdHasBeenSet() const { return m_controlSetIdHasBeenSet; } /** *

The identifier for the control set.

*/ inline void SetControlSetId(const Aws::String& value) { m_controlSetIdHasBeenSet = true; m_controlSetId = value; } /** *

The identifier for the control set.

*/ inline void SetControlSetId(Aws::String&& value) { m_controlSetIdHasBeenSet = true; m_controlSetId = std::move(value); } /** *

The identifier for the control set.

*/ inline void SetControlSetId(const char* value) { m_controlSetIdHasBeenSet = true; m_controlSetId.assign(value); } /** *

The identifier for the control set.

*/ inline Notification& WithControlSetId(const Aws::String& value) { SetControlSetId(value); return *this;} /** *

The identifier for the control set.

*/ inline Notification& WithControlSetId(Aws::String&& value) { SetControlSetId(std::move(value)); return *this;} /** *

The identifier for the control set.

*/ inline Notification& WithControlSetId(const char* value) { SetControlSetId(value); return *this;} /** *

Specifies the name of the control set that the notification is about.

*/ inline const Aws::String& GetControlSetName() const{ return m_controlSetName; } /** *

Specifies the name of the control set that the notification is about.

*/ inline bool ControlSetNameHasBeenSet() const { return m_controlSetNameHasBeenSet; } /** *

Specifies the name of the control set that the notification is about.

*/ inline void SetControlSetName(const Aws::String& value) { m_controlSetNameHasBeenSet = true; m_controlSetName = value; } /** *

Specifies the name of the control set that the notification is about.

*/ inline void SetControlSetName(Aws::String&& value) { m_controlSetNameHasBeenSet = true; m_controlSetName = std::move(value); } /** *

Specifies the name of the control set that the notification is about.

*/ inline void SetControlSetName(const char* value) { m_controlSetNameHasBeenSet = true; m_controlSetName.assign(value); } /** *

Specifies the name of the control set that the notification is about.

*/ inline Notification& WithControlSetName(const Aws::String& value) { SetControlSetName(value); return *this;} /** *

Specifies the name of the control set that the notification is about.

*/ inline Notification& WithControlSetName(Aws::String&& value) { SetControlSetName(std::move(value)); return *this;} /** *

Specifies the name of the control set that the notification is about.

*/ inline Notification& WithControlSetName(const char* value) { SetControlSetName(value); return *this;} /** *

The description of the notification.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the notification.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the notification.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the notification.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the notification.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the notification.

*/ inline Notification& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the notification.

*/ inline Notification& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the notification.

*/ inline Notification& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The time when the notification was sent.

*/ inline const Aws::Utils::DateTime& GetEventTime() const{ return m_eventTime; } /** *

The time when the notification was sent.

*/ inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; } /** *

The time when the notification was sent.

*/ inline void SetEventTime(const Aws::Utils::DateTime& value) { m_eventTimeHasBeenSet = true; m_eventTime = value; } /** *

The time when the notification was sent.

*/ inline void SetEventTime(Aws::Utils::DateTime&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::move(value); } /** *

The time when the notification was sent.

*/ inline Notification& WithEventTime(const Aws::Utils::DateTime& value) { SetEventTime(value); return *this;} /** *

The time when the notification was sent.

*/ inline Notification& WithEventTime(Aws::Utils::DateTime&& value) { SetEventTime(std::move(value)); return *this;} /** *

The sender of the notification.

*/ inline const Aws::String& GetSource() const{ return m_source; } /** *

The sender of the notification.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

The sender of the notification.

*/ inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

The sender of the notification.

*/ inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

The sender of the notification.

*/ inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); } /** *

The sender of the notification.

*/ inline Notification& WithSource(const Aws::String& value) { SetSource(value); return *this;} /** *

The sender of the notification.

*/ inline Notification& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;} /** *

The sender of the notification.

*/ inline Notification& WithSource(const char* value) { SetSource(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_assessmentId; bool m_assessmentIdHasBeenSet = false; Aws::String m_assessmentName; bool m_assessmentNameHasBeenSet = false; Aws::String m_controlSetId; bool m_controlSetIdHasBeenSet = false; Aws::String m_controlSetName; bool m_controlSetNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Utils::DateTime m_eventTime; bool m_eventTimeHasBeenSet = false; Aws::String m_source; bool m_sourceHasBeenSet = false; }; } // namespace Model } // namespace AuditManager } // namespace Aws