AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TopicPreference.h
1
6#pragma once
7#include <aws/sesv2/SESV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sesv2/model/SubscriptionStatus.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SESV2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SESV2_API TopicPreference();
39 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetTopicName() const{ return m_topicName; }
47 inline bool TopicNameHasBeenSet() const { return m_topicNameHasBeenSet; }
48 inline void SetTopicName(const Aws::String& value) { m_topicNameHasBeenSet = true; m_topicName = value; }
49 inline void SetTopicName(Aws::String&& value) { m_topicNameHasBeenSet = true; m_topicName = std::move(value); }
50 inline void SetTopicName(const char* value) { m_topicNameHasBeenSet = true; m_topicName.assign(value); }
51 inline TopicPreference& WithTopicName(const Aws::String& value) { SetTopicName(value); return *this;}
52 inline TopicPreference& WithTopicName(Aws::String&& value) { SetTopicName(std::move(value)); return *this;}
53 inline TopicPreference& WithTopicName(const char* value) { SetTopicName(value); return *this;}
55
57
61 inline const SubscriptionStatus& GetSubscriptionStatus() const{ return m_subscriptionStatus; }
62 inline bool SubscriptionStatusHasBeenSet() const { return m_subscriptionStatusHasBeenSet; }
63 inline void SetSubscriptionStatus(const SubscriptionStatus& value) { m_subscriptionStatusHasBeenSet = true; m_subscriptionStatus = value; }
64 inline void SetSubscriptionStatus(SubscriptionStatus&& value) { m_subscriptionStatusHasBeenSet = true; m_subscriptionStatus = std::move(value); }
66 inline TopicPreference& WithSubscriptionStatus(SubscriptionStatus&& value) { SetSubscriptionStatus(std::move(value)); return *this;}
68 private:
69
70 Aws::String m_topicName;
71 bool m_topicNameHasBeenSet = false;
72
73 SubscriptionStatus m_subscriptionStatus;
74 bool m_subscriptionStatusHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace SESV2
79} // 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)
TopicPreference & WithSubscriptionStatus(const SubscriptionStatus &value)
void SetTopicName(Aws::String &&value)
TopicPreference & WithTopicName(const Aws::String &value)
const SubscriptionStatus & GetSubscriptionStatus() const
void SetTopicName(const Aws::String &value)
TopicPreference & WithSubscriptionStatus(SubscriptionStatus &&value)
void SetSubscriptionStatus(SubscriptionStatus &&value)
TopicPreference & WithTopicName(const char *value)
TopicPreference & WithTopicName(Aws::String &&value)
void SetTopicName(const char *value)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSubscriptionStatus(const SubscriptionStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue