/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CodeStarNotifications { namespace Model { class DescribeNotificationRuleResult { public: AWS_CODESTARNOTIFICATIONS_API DescribeNotificationRuleResult(); AWS_CODESTARNOTIFICATIONS_API DescribeNotificationRuleResult(const Aws::AmazonWebServiceResult& result); AWS_CODESTARNOTIFICATIONS_API DescribeNotificationRuleResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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 void SetArn(const Aws::String& value) { m_arn = value; } /** *

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

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

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

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

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

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

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

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

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

*/ inline DescribeNotificationRuleResult& WithArn(const char* value) { SetArn(value); return *this;} /** *

The name of the notification rule.

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

The name of the notification rule.

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

The name of the notification rule.

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

The name of the notification rule.

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

The name of the notification rule.

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

The name of the notification rule.

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

The name of the notification rule.

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

A list of the event types associated with the notification rule.

*/ inline const Aws::Vector& GetEventTypes() const{ return m_eventTypes; } /** *

A list of the event types associated with the notification rule.

*/ inline void SetEventTypes(const Aws::Vector& value) { m_eventTypes = value; } /** *

A list of the event types associated with the notification rule.

*/ inline void SetEventTypes(Aws::Vector&& value) { m_eventTypes = std::move(value); } /** *

A list of the event types associated with the notification rule.

*/ inline DescribeNotificationRuleResult& WithEventTypes(const Aws::Vector& value) { SetEventTypes(value); return *this;} /** *

A list of the event types associated with the notification rule.

*/ inline DescribeNotificationRuleResult& WithEventTypes(Aws::Vector&& value) { SetEventTypes(std::move(value)); return *this;} /** *

A list of the event types associated with the notification rule.

*/ inline DescribeNotificationRuleResult& AddEventTypes(const EventTypeSummary& value) { m_eventTypes.push_back(value); return *this; } /** *

A list of the event types associated with the notification rule.

*/ inline DescribeNotificationRuleResult& AddEventTypes(EventTypeSummary&& value) { m_eventTypes.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Name (ARN) of the resource associated with the * notification rule.

*/ inline const Aws::String& GetResource() const{ return m_resource; } /** *

The Amazon Resource Name (ARN) of the resource associated with the * notification rule.

*/ inline void SetResource(const Aws::String& value) { m_resource = value; } /** *

The Amazon Resource Name (ARN) of the resource associated with the * notification rule.

*/ inline void SetResource(Aws::String&& value) { m_resource = std::move(value); } /** *

The Amazon Resource Name (ARN) of the resource associated with the * notification rule.

*/ inline void SetResource(const char* value) { m_resource.assign(value); } /** *

The Amazon Resource Name (ARN) of the resource associated with the * notification rule.

*/ inline DescribeNotificationRuleResult& WithResource(const Aws::String& value) { SetResource(value); return *this;} /** *

The Amazon Resource Name (ARN) of the resource associated with the * notification rule.

*/ inline DescribeNotificationRuleResult& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the resource associated with the * notification rule.

*/ inline DescribeNotificationRuleResult& WithResource(const char* value) { SetResource(value); return *this;} /** *

A list of the Chatbot topics and Chatbot clients associated with the * notification rule.

*/ inline const Aws::Vector& GetTargets() const{ return m_targets; } /** *

A list of the Chatbot topics and Chatbot clients associated with the * notification rule.

*/ inline void SetTargets(const Aws::Vector& value) { m_targets = value; } /** *

A list of the Chatbot topics and Chatbot clients associated with the * notification rule.

*/ inline void SetTargets(Aws::Vector&& value) { m_targets = std::move(value); } /** *

A list of the Chatbot topics and Chatbot clients associated with the * notification rule.

*/ inline DescribeNotificationRuleResult& WithTargets(const Aws::Vector& value) { SetTargets(value); return *this;} /** *

A list of the Chatbot topics and Chatbot clients associated with the * notification rule.

*/ inline DescribeNotificationRuleResult& WithTargets(Aws::Vector&& value) { SetTargets(std::move(value)); return *this;} /** *

A list of the Chatbot topics and Chatbot clients associated with the * notification rule.

*/ inline DescribeNotificationRuleResult& AddTargets(const TargetSummary& value) { m_targets.push_back(value); return *this; } /** *

A list of the Chatbot topics and Chatbot clients associated with the * notification rule.

*/ inline DescribeNotificationRuleResult& AddTargets(TargetSummary&& value) { m_targets.push_back(std::move(value)); return *this; } /** *

The level of detail included in the notifications for this resource. BASIC * will include only the contents of the event as it would appear in Amazon * CloudWatch. FULL will include any supplemental information provided by AWS * CodeStar Notifications and/or the service for the resource for which the * notification is created.

*/ inline const DetailType& GetDetailType() const{ return m_detailType; } /** *

The level of detail included in the notifications for this resource. BASIC * will include only the contents of the event as it would appear in Amazon * CloudWatch. FULL will include any supplemental information provided by AWS * CodeStar Notifications and/or the service for the resource for which the * notification is created.

*/ inline void SetDetailType(const DetailType& value) { m_detailType = value; } /** *

The level of detail included in the notifications for this resource. BASIC * will include only the contents of the event as it would appear in Amazon * CloudWatch. FULL will include any supplemental information provided by AWS * CodeStar Notifications and/or the service for the resource for which the * notification is created.

*/ inline void SetDetailType(DetailType&& value) { m_detailType = std::move(value); } /** *

The level of detail included in the notifications for this resource. BASIC * will include only the contents of the event as it would appear in Amazon * CloudWatch. FULL will include any supplemental information provided by AWS * CodeStar Notifications and/or the service for the resource for which the * notification is created.

*/ inline DescribeNotificationRuleResult& WithDetailType(const DetailType& value) { SetDetailType(value); return *this;} /** *

The level of detail included in the notifications for this resource. BASIC * will include only the contents of the event as it would appear in Amazon * CloudWatch. FULL will include any supplemental information provided by AWS * CodeStar Notifications and/or the service for the resource for which the * notification is created.

*/ inline DescribeNotificationRuleResult& WithDetailType(DetailType&& value) { SetDetailType(std::move(value)); return *this;} /** *

The name or email alias of the person who created the notification rule.

*/ inline const Aws::String& GetCreatedBy() const{ return m_createdBy; } /** *

The name or email alias of the person who created the notification rule.

*/ inline void SetCreatedBy(const Aws::String& value) { m_createdBy = value; } /** *

The name or email alias of the person who created the notification rule.

*/ inline void SetCreatedBy(Aws::String&& value) { m_createdBy = std::move(value); } /** *

The name or email alias of the person who created the notification rule.

*/ inline void SetCreatedBy(const char* value) { m_createdBy.assign(value); } /** *

The name or email alias of the person who created the notification rule.

*/ inline DescribeNotificationRuleResult& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;} /** *

The name or email alias of the person who created the notification rule.

*/ inline DescribeNotificationRuleResult& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;} /** *

The name or email alias of the person who created the notification rule.

*/ inline DescribeNotificationRuleResult& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;} /** *

The status of the notification rule. Valid statuses are on (sending * notifications) or off (not sending notifications).

*/ inline const NotificationRuleStatus& GetStatus() const{ return m_status; } /** *

The status of the notification rule. Valid statuses are on (sending * notifications) or off (not sending notifications).

*/ inline void SetStatus(const NotificationRuleStatus& value) { m_status = value; } /** *

The status of the notification rule. Valid statuses are on (sending * notifications) or off (not sending notifications).

*/ inline void SetStatus(NotificationRuleStatus&& value) { m_status = std::move(value); } /** *

The status of the notification rule. Valid statuses are on (sending * notifications) or off (not sending notifications).

*/ inline DescribeNotificationRuleResult& WithStatus(const NotificationRuleStatus& value) { SetStatus(value); return *this;} /** *

The status of the notification rule. Valid statuses are on (sending * notifications) or off (not sending notifications).

*/ inline DescribeNotificationRuleResult& WithStatus(NotificationRuleStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The date and time the notification rule was created, in timestamp format.

*/ inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } /** *

The date and time the notification rule was created, in timestamp format.

*/ inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; } /** *

The date and time the notification rule was created, in timestamp format.

*/ inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); } /** *

The date and time the notification rule was created, in timestamp format.

*/ inline DescribeNotificationRuleResult& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} /** *

The date and time the notification rule was created, in timestamp format.

*/ inline DescribeNotificationRuleResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} /** *

The date and time the notification rule was most recently updated, in * timestamp format.

*/ inline const Aws::Utils::DateTime& GetLastModifiedTimestamp() const{ return m_lastModifiedTimestamp; } /** *

The date and time the notification rule was most recently updated, in * timestamp format.

*/ inline void SetLastModifiedTimestamp(const Aws::Utils::DateTime& value) { m_lastModifiedTimestamp = value; } /** *

The date and time the notification rule was most recently updated, in * timestamp format.

*/ inline void SetLastModifiedTimestamp(Aws::Utils::DateTime&& value) { m_lastModifiedTimestamp = std::move(value); } /** *

The date and time the notification rule was most recently updated, in * timestamp format.

*/ inline DescribeNotificationRuleResult& WithLastModifiedTimestamp(const Aws::Utils::DateTime& value) { SetLastModifiedTimestamp(value); return *this;} /** *

The date and time the notification rule was most recently updated, in * timestamp format.

*/ inline DescribeNotificationRuleResult& WithLastModifiedTimestamp(Aws::Utils::DateTime&& value) { SetLastModifiedTimestamp(std::move(value)); return *this;} /** *

The tags associated with the notification rule.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags associated with the notification rule.

*/ inline void SetTags(const Aws::Map& value) { m_tags = value; } /** *

The tags associated with the notification rule.

*/ inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } /** *

The tags associated with the notification rule.

*/ inline DescribeNotificationRuleResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags associated with the notification rule.

*/ inline DescribeNotificationRuleResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags associated with the notification rule.

*/ inline DescribeNotificationRuleResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } /** *

The tags associated with the notification rule.

*/ inline DescribeNotificationRuleResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } /** *

The tags associated with the notification rule.

*/ inline DescribeNotificationRuleResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags associated with the notification rule.

*/ inline DescribeNotificationRuleResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags associated with the notification rule.

*/ inline DescribeNotificationRuleResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags associated with the notification rule.

*/ inline DescribeNotificationRuleResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } /** *

The tags associated with the notification rule.

*/ inline DescribeNotificationRuleResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeNotificationRuleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeNotificationRuleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeNotificationRuleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_arn; Aws::String m_name; Aws::Vector m_eventTypes; Aws::String m_resource; Aws::Vector m_targets; DetailType m_detailType; Aws::String m_createdBy; NotificationRuleStatus m_status; Aws::Utils::DateTime m_createdTimestamp; Aws::Utils::DateTime m_lastModifiedTimestamp; Aws::Map m_tags; Aws::String m_requestId; }; } // namespace Model } // namespace CodeStarNotifications } // namespace Aws