/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details about what caused the incident to be created in Incident
* Manager.See Also:
AWS
* API Reference
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.
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.
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.
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.
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.
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.
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.
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.
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