/** * 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 the PagerDuty configuration for a response plan.

See * Also:

AWS * API Reference

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

The name of the PagerDuty configuration.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the PagerDuty configuration.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the PagerDuty configuration.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the PagerDuty configuration.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the PagerDuty configuration.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the PagerDuty configuration.

*/ inline PagerDutyConfiguration& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the PagerDuty configuration.

*/ inline PagerDutyConfiguration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the PagerDuty configuration.

*/ inline PagerDutyConfiguration& WithName(const char* value) { SetName(value); return *this;} /** *

Details about the PagerDuty service associated with the configuration.

*/ inline const PagerDutyIncidentConfiguration& GetPagerDutyIncidentConfiguration() const{ return m_pagerDutyIncidentConfiguration; } /** *

Details about the PagerDuty service associated with the configuration.

*/ inline bool PagerDutyIncidentConfigurationHasBeenSet() const { return m_pagerDutyIncidentConfigurationHasBeenSet; } /** *

Details about the PagerDuty service associated with the configuration.

*/ inline void SetPagerDutyIncidentConfiguration(const PagerDutyIncidentConfiguration& value) { m_pagerDutyIncidentConfigurationHasBeenSet = true; m_pagerDutyIncidentConfiguration = value; } /** *

Details about the PagerDuty service associated with the configuration.

*/ inline void SetPagerDutyIncidentConfiguration(PagerDutyIncidentConfiguration&& value) { m_pagerDutyIncidentConfigurationHasBeenSet = true; m_pagerDutyIncidentConfiguration = std::move(value); } /** *

Details about the PagerDuty service associated with the configuration.

*/ inline PagerDutyConfiguration& WithPagerDutyIncidentConfiguration(const PagerDutyIncidentConfiguration& value) { SetPagerDutyIncidentConfiguration(value); return *this;} /** *

Details about the PagerDuty service associated with the configuration.

*/ inline PagerDutyConfiguration& WithPagerDutyIncidentConfiguration(PagerDutyIncidentConfiguration&& value) { SetPagerDutyIncidentConfiguration(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 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 PagerDutyConfiguration& 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 PagerDutyConfiguration& 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 PagerDutyConfiguration& WithSecretId(const char* value) { SetSecretId(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; PagerDutyIncidentConfiguration m_pagerDutyIncidentConfiguration; bool m_pagerDutyIncidentConfigurationHasBeenSet = false; Aws::String m_secretId; bool m_secretIdHasBeenSet = false; }; } // namespace Model } // namespace SSMIncidents } // namespace Aws