AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
SnsTopicConfiguration.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AccessAnalyzer {
20namespace Model {
21
38 public:
39 AWS_ACCESSANALYZER_API SnsTopicConfiguration() = default;
40 AWS_ACCESSANALYZER_API SnsTopicConfiguration(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
52 inline const Aws::String& GetTopicPolicy() const { return m_topicPolicy; }
53 inline bool TopicPolicyHasBeenSet() const { return m_topicPolicyHasBeenSet; }
54 template <typename TopicPolicyT = Aws::String>
55 void SetTopicPolicy(TopicPolicyT&& value) {
56 m_topicPolicyHasBeenSet = true;
57 m_topicPolicy = std::forward<TopicPolicyT>(value);
58 }
59 template <typename TopicPolicyT = Aws::String>
60 SnsTopicConfiguration& WithTopicPolicy(TopicPolicyT&& value) {
61 SetTopicPolicy(std::forward<TopicPolicyT>(value));
62 return *this;
63 }
65 private:
66 Aws::String m_topicPolicy;
67 bool m_topicPolicyHasBeenSet = false;
68};
69
70} // namespace Model
71} // namespace AccessAnalyzer
72} // namespace Aws
AWS_ACCESSANALYZER_API SnsTopicConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API SnsTopicConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
SnsTopicConfiguration & WithTopicPolicy(TopicPolicyT &&value)
AWS_ACCESSANALYZER_API SnsTopicConfiguration()=default
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue