AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
TopicPreference.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sesv2/SESV2_EXPORTS.h>
9#include <aws/sesv2/model/SubscriptionStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SESV2 {
21namespace Model {
22
30 public:
31 AWS_SESV2_API TopicPreference() = default;
34 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetTopicName() const { return m_topicName; }
41 inline bool TopicNameHasBeenSet() const { return m_topicNameHasBeenSet; }
42 template <typename TopicNameT = Aws::String>
43 void SetTopicName(TopicNameT&& value) {
44 m_topicNameHasBeenSet = true;
45 m_topicName = std::forward<TopicNameT>(value);
46 }
47 template <typename TopicNameT = Aws::String>
48 TopicPreference& WithTopicName(TopicNameT&& value) {
49 SetTopicName(std::forward<TopicNameT>(value));
50 return *this;
51 }
53
55
59 inline SubscriptionStatus GetSubscriptionStatus() const { return m_subscriptionStatus; }
60 inline bool SubscriptionStatusHasBeenSet() const { return m_subscriptionStatusHasBeenSet; }
62 m_subscriptionStatusHasBeenSet = true;
63 m_subscriptionStatus = value;
64 }
67 return *this;
68 }
70 private:
71 Aws::String m_topicName;
72
74 bool m_topicNameHasBeenSet = false;
75 bool m_subscriptionStatusHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace SESV2
80} // namespace Aws
AWS_SESV2_API TopicPreference(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTopicName() const
AWS_SESV2_API TopicPreference & operator=(Aws::Utils::Json::JsonView jsonValue)
SubscriptionStatus GetSubscriptionStatus() const
TopicPreference & WithTopicName(TopicNameT &&value)
TopicPreference & WithSubscriptionStatus(SubscriptionStatus value)
AWS_SESV2_API TopicPreference()=default
void SetSubscriptionStatus(SubscriptionStatus value)
void SetTopicName(TopicNameT &&value)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue