AWS SDK for C++  1.9.153
AWS SDK for C++
TopicPreference.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace SESV2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetTopicName() const{ return m_topicName; }
46 
50  inline bool TopicNameHasBeenSet() const { return m_topicNameHasBeenSet; }
51 
55  inline void SetTopicName(const Aws::String& value) { m_topicNameHasBeenSet = true; m_topicName = value; }
56 
60  inline void SetTopicName(Aws::String&& value) { m_topicNameHasBeenSet = true; m_topicName = std::move(value); }
61 
65  inline void SetTopicName(const char* value) { m_topicNameHasBeenSet = true; m_topicName.assign(value); }
66 
70  inline TopicPreference& WithTopicName(const Aws::String& value) { SetTopicName(value); return *this;}
71 
75  inline TopicPreference& WithTopicName(Aws::String&& value) { SetTopicName(std::move(value)); return *this;}
76 
80  inline TopicPreference& WithTopicName(const char* value) { SetTopicName(value); return *this;}
81 
82 
87  inline const SubscriptionStatus& GetSubscriptionStatus() const{ return m_subscriptionStatus; }
88 
93  inline bool SubscriptionStatusHasBeenSet() const { return m_subscriptionStatusHasBeenSet; }
94 
99  inline void SetSubscriptionStatus(const SubscriptionStatus& value) { m_subscriptionStatusHasBeenSet = true; m_subscriptionStatus = value; }
100 
105  inline void SetSubscriptionStatus(SubscriptionStatus&& value) { m_subscriptionStatusHasBeenSet = true; m_subscriptionStatus = std::move(value); }
106 
111  inline TopicPreference& WithSubscriptionStatus(const SubscriptionStatus& value) { SetSubscriptionStatus(value); return *this;}
112 
117  inline TopicPreference& WithSubscriptionStatus(SubscriptionStatus&& value) { SetSubscriptionStatus(std::move(value)); return *this;}
118 
119  private:
120 
121  Aws::String m_topicName;
122  bool m_topicNameHasBeenSet;
123 
124  SubscriptionStatus m_subscriptionStatus;
125  bool m_subscriptionStatusHasBeenSet;
126  };
127 
128 } // namespace Model
129 } // namespace SESV2
130 } // namespace Aws
Aws::SESV2::Model::TopicPreference::SetSubscriptionStatus
void SetSubscriptionStatus(const SubscriptionStatus &value)
Definition: TopicPreference.h:99
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::TopicPreference::TopicPreference
TopicPreference()
Aws::SESV2::Model::TopicPreference::SetSubscriptionStatus
void SetSubscriptionStatus(SubscriptionStatus &&value)
Definition: TopicPreference.h:105
Aws::SESV2::Model::SubscriptionStatus
SubscriptionStatus
Definition: SubscriptionStatus.h:17
Aws::SESV2::Model::TopicPreference
Definition: TopicPreference.h:34
Aws::SESV2::Model::TopicPreference::WithSubscriptionStatus
TopicPreference & WithSubscriptionStatus(const SubscriptionStatus &value)
Definition: TopicPreference.h:111
Aws::SESV2::Model::TopicPreference::SubscriptionStatusHasBeenSet
bool SubscriptionStatusHasBeenSet() const
Definition: TopicPreference.h:93
Aws::SESV2::Model::TopicPreference::WithTopicName
TopicPreference & WithTopicName(Aws::String &&value)
Definition: TopicPreference.h:75
Aws::SESV2::Model::TopicPreference::operator=
TopicPreference & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SESV2::Model::TopicPreference::GetSubscriptionStatus
const SubscriptionStatus & GetSubscriptionStatus() const
Definition: TopicPreference.h:87
Aws::SESV2::Model::TopicPreference::WithTopicName
TopicPreference & WithTopicName(const char *value)
Definition: TopicPreference.h:80
Aws::SESV2::Model::TopicPreference::WithSubscriptionStatus
TopicPreference & WithSubscriptionStatus(SubscriptionStatus &&value)
Definition: TopicPreference.h:117
Aws::SESV2::Model::TopicPreference::GetTopicName
const Aws::String & GetTopicName() const
Definition: TopicPreference.h:45
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SESV2::Model::TopicPreference::SetTopicName
void SetTopicName(const Aws::String &value)
Definition: TopicPreference.h:55
SESV2_EXPORTS.h
Aws::SESV2::Model::TopicPreference::TopicNameHasBeenSet
bool TopicNameHasBeenSet() const
Definition: TopicPreference.h:50
Aws::SESV2::Model::TopicPreference::TopicPreference
TopicPreference(Aws::Utils::Json::JsonView jsonValue)
Aws::SESV2::Model::TopicPreference::SetTopicName
void SetTopicName(const char *value)
Definition: TopicPreference.h:65
Aws::SESV2::Model::TopicPreference::WithTopicName
TopicPreference & WithTopicName(const Aws::String &value)
Definition: TopicPreference.h:70
SubscriptionStatus.h
Aws::SESV2::Model::TopicPreference::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SESV2::Model::TopicPreference::SetTopicName
void SetTopicName(Aws::String &&value)
Definition: TopicPreference.h:60