/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details about what created the incident record and when it was
* created.See Also:
AWS
* API Reference
The principal that started the incident.
*/ inline const Aws::String& GetCreatedBy() const{ return m_createdBy; } /** *The principal that started the incident.
*/ inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; } /** *The principal that started the incident.
*/ inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; } /** *The principal that started the incident.
*/ inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); } /** *The principal that started the incident.
*/ inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); } /** *The principal that started the incident.
*/ inline IncidentRecordSource& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;} /** *The principal that started the incident.
*/ inline IncidentRecordSource& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;} /** *The principal that started the incident.
*/ inline IncidentRecordSource& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;} /** *The service principal that assumed the role specified in
* createdBy
. If no service principal assumed the role this will be
* left blank.
The service principal that assumed the role specified in
* createdBy
. If no service principal assumed the role this will be
* left blank.
The service principal that assumed the role specified in
* createdBy
. If no service principal assumed the role this will be
* left blank.
The service principal that assumed the role specified in
* createdBy
. If no service principal assumed the role this will be
* left blank.
The service principal that assumed the role specified in
* createdBy
. If no service principal assumed the role this will be
* left blank.
The service principal that assumed the role specified in
* createdBy
. If no service principal assumed the role this will be
* left blank.
The service principal that assumed the role specified in
* createdBy
. If no service principal assumed the role this will be
* left blank.
The service principal that assumed the role specified in
* createdBy
. If no service principal assumed the role this will be
* left blank.
The resource that caused the incident to be created.
*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *The resource that caused the incident to be created.
*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *The resource that caused the incident to be created.
*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *The resource that caused the incident to be created.
*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *The resource that caused the incident to be created.
*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *The resource that caused the incident to be created.
*/ inline IncidentRecordSource& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *The resource that caused the incident to be created.
*/ inline IncidentRecordSource& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *The resource that caused the incident to be created.
*/ inline IncidentRecordSource& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *The service that started the incident. This can be manually created from * Incident Manager, automatically created using an Amazon CloudWatch alarm, or * Amazon EventBridge event.
*/ inline const Aws::String& GetSource() const{ return m_source; } /** *The service that started the incident. This can be manually created from * Incident Manager, automatically created using an Amazon CloudWatch alarm, or * Amazon EventBridge event.
*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *The service that started the incident. This can be manually created from * Incident Manager, automatically created using an Amazon CloudWatch alarm, or * Amazon EventBridge event.
*/ inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; } /** *The service that started the incident. This can be manually created from * Incident Manager, automatically created using an Amazon CloudWatch alarm, or * Amazon EventBridge event.
*/ inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *The service that started the incident. This can be manually created from * Incident Manager, automatically created using an Amazon CloudWatch alarm, or * Amazon EventBridge event.
*/ inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); } /** *The service that started the incident. This can be manually created from * Incident Manager, automatically created using an Amazon CloudWatch alarm, or * Amazon EventBridge event.
*/ inline IncidentRecordSource& WithSource(const Aws::String& value) { SetSource(value); return *this;} /** *The service that started the incident. This can be manually created from * Incident Manager, automatically created using an Amazon CloudWatch alarm, or * Amazon EventBridge event.
*/ inline IncidentRecordSource& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;} /** *The service that started the incident. This can be manually created from * Incident Manager, automatically created using an Amazon CloudWatch alarm, or * Amazon EventBridge event.
*/ inline IncidentRecordSource& WithSource(const char* value) { SetSource(value); return *this;} private: Aws::String m_createdBy; bool m_createdByHasBeenSet = false; Aws::String m_invokedBy; bool m_invokedByHasBeenSet = false; Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; Aws::String m_source; bool m_sourceHasBeenSet = false; }; } // namespace Model } // namespace SSMIncidents } // namespace Aws