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

An interest group, theme, or label within a list. Lists can have multiple * topics.

See Also:

AWS API * Reference

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

The name of the topic.

*/ inline const Aws::String& GetTopicName() const{ return m_topicName; } /** *

The name of the topic.

*/ inline bool TopicNameHasBeenSet() const { return m_topicNameHasBeenSet; } /** *

The name of the topic.

*/ inline void SetTopicName(const Aws::String& value) { m_topicNameHasBeenSet = true; m_topicName = value; } /** *

The name of the topic.

*/ inline void SetTopicName(Aws::String&& value) { m_topicNameHasBeenSet = true; m_topicName = std::move(value); } /** *

The name of the topic.

*/ inline void SetTopicName(const char* value) { m_topicNameHasBeenSet = true; m_topicName.assign(value); } /** *

The name of the topic.

*/ inline Topic& WithTopicName(const Aws::String& value) { SetTopicName(value); return *this;} /** *

The name of the topic.

*/ inline Topic& WithTopicName(Aws::String&& value) { SetTopicName(std::move(value)); return *this;} /** *

The name of the topic.

*/ inline Topic& WithTopicName(const char* value) { SetTopicName(value); return *this;} /** *

The name of the topic the contact will see.

*/ inline const Aws::String& GetDisplayName() const{ return m_displayName; } /** *

The name of the topic the contact will see.

*/ inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } /** *

The name of the topic the contact will see.

*/ inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } /** *

The name of the topic the contact will see.

*/ inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } /** *

The name of the topic the contact will see.

*/ inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } /** *

The name of the topic the contact will see.

*/ inline Topic& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} /** *

The name of the topic the contact will see.

*/ inline Topic& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} /** *

The name of the topic the contact will see.

*/ inline Topic& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} /** *

A description of what the topic is about, which the contact will see.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of what the topic is about, which the contact will see.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of what the topic is about, which the contact will see.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of what the topic is about, which the contact will see.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of what the topic is about, which the contact will see.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of what the topic is about, which the contact will see.

*/ inline Topic& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of what the topic is about, which the contact will see.

*/ inline Topic& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of what the topic is about, which the contact will see.

*/ inline Topic& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The default subscription status to be applied to a contact if the contact has * not noted their preference for subscribing to a topic.

*/ inline const SubscriptionStatus& GetDefaultSubscriptionStatus() const{ return m_defaultSubscriptionStatus; } /** *

The default subscription status to be applied to a contact if the contact has * not noted their preference for subscribing to a topic.

*/ inline bool DefaultSubscriptionStatusHasBeenSet() const { return m_defaultSubscriptionStatusHasBeenSet; } /** *

The default subscription status to be applied to a contact if the contact has * not noted their preference for subscribing to a topic.

*/ inline void SetDefaultSubscriptionStatus(const SubscriptionStatus& value) { m_defaultSubscriptionStatusHasBeenSet = true; m_defaultSubscriptionStatus = value; } /** *

The default subscription status to be applied to a contact if the contact has * not noted their preference for subscribing to a topic.

*/ inline void SetDefaultSubscriptionStatus(SubscriptionStatus&& value) { m_defaultSubscriptionStatusHasBeenSet = true; m_defaultSubscriptionStatus = std::move(value); } /** *

The default subscription status to be applied to a contact if the contact has * not noted their preference for subscribing to a topic.

*/ inline Topic& WithDefaultSubscriptionStatus(const SubscriptionStatus& value) { SetDefaultSubscriptionStatus(value); return *this;} /** *

The default subscription status to be applied to a contact if the contact has * not noted their preference for subscribing to a topic.

*/ inline Topic& WithDefaultSubscriptionStatus(SubscriptionStatus&& value) { SetDefaultSubscriptionStatus(std::move(value)); return *this;} private: Aws::String m_topicName; bool m_topicNameHasBeenSet = false; Aws::String m_displayName; bool m_displayNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; SubscriptionStatus m_defaultSubscriptionStatus; bool m_defaultSubscriptionStatusHasBeenSet = false; }; } // namespace Model } // namespace SESV2 } // namespace Aws