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

Details about the PagerDuty incident associated with an incident created by * an Incident Manager response plan.

See Also:

AWS * API Reference

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

Indicates whether to resolve the PagerDuty incident when you resolve the * associated Incident Manager incident.

*/ inline bool GetAutoResolve() const{ return m_autoResolve; } /** *

Indicates whether to resolve the PagerDuty incident when you resolve the * associated Incident Manager incident.

*/ inline bool AutoResolveHasBeenSet() const { return m_autoResolveHasBeenSet; } /** *

Indicates whether to resolve the PagerDuty incident when you resolve the * associated Incident Manager incident.

*/ inline void SetAutoResolve(bool value) { m_autoResolveHasBeenSet = true; m_autoResolve = value; } /** *

Indicates whether to resolve the PagerDuty incident when you resolve the * associated Incident Manager incident.

*/ inline PagerDutyIncidentDetail& WithAutoResolve(bool value) { SetAutoResolve(value); return *this;} /** *

The ID of the incident associated with the PagerDuty service for the response * plan.

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

The ID of the incident associated with the PagerDuty service for the response * plan.

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

The ID of the incident associated with the PagerDuty service for the response * plan.

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

The ID of the incident associated with the PagerDuty service for the response * plan.

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

The ID of the incident associated with the PagerDuty service for the response * plan.

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

The ID of the incident associated with the PagerDuty service for the response * plan.

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

The ID of the incident associated with the PagerDuty service for the response * plan.

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

The ID of the incident associated with the PagerDuty service for the response * plan.

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

The ID of the Amazon Web Services Secrets Manager secret that stores your * PagerDuty key, either a General Access REST API Key or User Token REST API Key, * and other user credentials.

*/ inline const Aws::String& GetSecretId() const{ return m_secretId; } /** *

The ID of the Amazon Web Services Secrets Manager secret that stores your * PagerDuty key, either a General Access REST API Key or User Token REST API Key, * and other user credentials.

*/ inline bool SecretIdHasBeenSet() const { return m_secretIdHasBeenSet; } /** *

The ID of the Amazon Web Services Secrets Manager secret that stores your * PagerDuty key, either a General Access REST API Key or User Token REST API Key, * and other user credentials.

*/ inline void SetSecretId(const Aws::String& value) { m_secretIdHasBeenSet = true; m_secretId = value; } /** *

The ID of the Amazon Web Services Secrets Manager secret that stores your * PagerDuty key, either a General Access REST API Key or User Token REST API Key, * and other user credentials.

*/ inline void SetSecretId(Aws::String&& value) { m_secretIdHasBeenSet = true; m_secretId = std::move(value); } /** *

The ID of the Amazon Web Services Secrets Manager secret that stores your * PagerDuty key, either a General Access REST API Key or User Token REST API Key, * and other user credentials.

*/ inline void SetSecretId(const char* value) { m_secretIdHasBeenSet = true; m_secretId.assign(value); } /** *

The ID of the Amazon Web Services Secrets Manager secret that stores your * PagerDuty key, either a General Access REST API Key or User Token REST API Key, * and other user credentials.

*/ inline PagerDutyIncidentDetail& WithSecretId(const Aws::String& value) { SetSecretId(value); return *this;} /** *

The ID of the Amazon Web Services Secrets Manager secret that stores your * PagerDuty key, either a General Access REST API Key or User Token REST API Key, * and other user credentials.

*/ inline PagerDutyIncidentDetail& WithSecretId(Aws::String&& value) { SetSecretId(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services Secrets Manager secret that stores your * PagerDuty key, either a General Access REST API Key or User Token REST API Key, * and other user credentials.

*/ inline PagerDutyIncidentDetail& WithSecretId(const char* value) { SetSecretId(value); return *this;} private: bool m_autoResolve; bool m_autoResolveHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_secretId; bool m_secretIdHasBeenSet = false; }; } // namespace Model } // namespace SSMIncidents } // namespace Aws