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

Information about a specified notification rule.

See Also:

* AWS * API Reference

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

The unique ID of the notification rule.

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

The unique ID of the notification rule.

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

The unique ID of the notification rule.

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

The unique ID of the notification rule.

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

The unique ID of the notification rule.

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

The unique ID of the notification rule.

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

The unique ID of the notification rule.

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

The unique ID of the notification rule.

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

The Amazon Resource Name (ARN) of the notification rule.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the notification rule.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the notification rule.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the notification rule.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the notification rule.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the notification rule.

*/ inline NotificationRuleSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the notification rule.

*/ inline NotificationRuleSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the notification rule.

*/ inline NotificationRuleSummary& WithArn(const char* value) { SetArn(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; }; } // namespace Model } // namespace CodeStarNotifications } // namespace Aws