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

Details about what caused the incident to be created in Incident * Manager.

See Also:

AWS * API Reference

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

Raw data passed from either Amazon EventBridge, Amazon CloudWatch, or * Incident Manager when an incident is created.

*/ inline const Aws::String& GetRawData() const{ return m_rawData; } /** *

Raw data passed from either Amazon EventBridge, Amazon CloudWatch, or * Incident Manager when an incident is created.

*/ inline bool RawDataHasBeenSet() const { return m_rawDataHasBeenSet; } /** *

Raw data passed from either Amazon EventBridge, Amazon CloudWatch, or * Incident Manager when an incident is created.

*/ inline void SetRawData(const Aws::String& value) { m_rawDataHasBeenSet = true; m_rawData = value; } /** *

Raw data passed from either Amazon EventBridge, Amazon CloudWatch, or * Incident Manager when an incident is created.

*/ inline void SetRawData(Aws::String&& value) { m_rawDataHasBeenSet = true; m_rawData = std::move(value); } /** *

Raw data passed from either Amazon EventBridge, Amazon CloudWatch, or * Incident Manager when an incident is created.

*/ inline void SetRawData(const char* value) { m_rawDataHasBeenSet = true; m_rawData.assign(value); } /** *

Raw data passed from either Amazon EventBridge, Amazon CloudWatch, or * Incident Manager when an incident is created.

*/ inline TriggerDetails& WithRawData(const Aws::String& value) { SetRawData(value); return *this;} /** *

Raw data passed from either Amazon EventBridge, Amazon CloudWatch, or * Incident Manager when an incident is created.

*/ inline TriggerDetails& WithRawData(Aws::String&& value) { SetRawData(std::move(value)); return *this;} /** *

Raw data passed from either Amazon EventBridge, Amazon CloudWatch, or * Incident Manager when an incident is created.

*/ inline TriggerDetails& WithRawData(const char* value) { SetRawData(value); return *this;} /** *

Identifies the service that sourced the event. All events sourced from within * Amazon Web Services begin with "aws." Customer-generated events can * have any value here, as long as it doesn't begin with "aws." We * recommend the use of Java package-name style reverse domain-name strings.

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

Identifies the service that sourced the event. All events sourced from within * Amazon Web Services begin with "aws." Customer-generated events can * have any value here, as long as it doesn't begin with "aws." We * recommend the use of Java package-name style reverse domain-name strings.

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

Identifies the service that sourced the event. All events sourced from within * Amazon Web Services begin with "aws." Customer-generated events can * have any value here, as long as it doesn't begin with "aws." We * recommend the use of Java package-name style reverse domain-name strings.

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

Identifies the service that sourced the event. All events sourced from within * Amazon Web Services begin with "aws." Customer-generated events can * have any value here, as long as it doesn't begin with "aws." We * recommend the use of Java package-name style reverse domain-name strings.

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

Identifies the service that sourced the event. All events sourced from within * Amazon Web Services begin with "aws." Customer-generated events can * have any value here, as long as it doesn't begin with "aws." We * recommend the use of Java package-name style reverse domain-name strings.

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

Identifies the service that sourced the event. All events sourced from within * Amazon Web Services begin with "aws." Customer-generated events can * have any value here, as long as it doesn't begin with "aws." We * recommend the use of Java package-name style reverse domain-name strings.

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

Identifies the service that sourced the event. All events sourced from within * Amazon Web Services begin with "aws." Customer-generated events can * have any value here, as long as it doesn't begin with "aws." We * recommend the use of Java package-name style reverse domain-name strings.

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

Identifies the service that sourced the event. All events sourced from within * Amazon Web Services begin with "aws." Customer-generated events can * have any value here, as long as it doesn't begin with "aws." We * recommend the use of Java package-name style reverse domain-name strings.

*/ inline TriggerDetails& WithSource(const char* value) { SetSource(value); return *this;} /** *

The time that the incident was detected.

*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *

The time that the incident was detected.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

The time that the incident was detected.

*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

The time that the incident was detected.

*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *

The time that the incident was detected.

*/ inline TriggerDetails& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *

The time that the incident was detected.

*/ inline TriggerDetails& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the source that detected the incident.

*/ inline const Aws::String& GetTriggerArn() const{ return m_triggerArn; } /** *

The Amazon Resource Name (ARN) of the source that detected the incident.

*/ inline bool TriggerArnHasBeenSet() const { return m_triggerArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the source that detected the incident.

*/ inline void SetTriggerArn(const Aws::String& value) { m_triggerArnHasBeenSet = true; m_triggerArn = value; } /** *

The Amazon Resource Name (ARN) of the source that detected the incident.

*/ inline void SetTriggerArn(Aws::String&& value) { m_triggerArnHasBeenSet = true; m_triggerArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the source that detected the incident.

*/ inline void SetTriggerArn(const char* value) { m_triggerArnHasBeenSet = true; m_triggerArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the source that detected the incident.

*/ inline TriggerDetails& WithTriggerArn(const Aws::String& value) { SetTriggerArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the source that detected the incident.

*/ inline TriggerDetails& WithTriggerArn(Aws::String&& value) { SetTriggerArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the source that detected the incident.

*/ inline TriggerDetails& WithTriggerArn(const char* value) { SetTriggerArn(value); return *this;} private: Aws::String m_rawData; bool m_rawDataHasBeenSet = false; Aws::String m_source; bool m_sourceHasBeenSet = false; Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet = false; Aws::String m_triggerArn; bool m_triggerArnHasBeenSet = false; }; } // namespace Model } // namespace SSMIncidents } // namespace Aws