AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
NotificationChannel.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/textract/Textract_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Textract {
20namespace Model {
21
30 public:
31 AWS_TEXTRACT_API NotificationChannel() = default;
34 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetSNSTopicArn() const { return m_sNSTopicArn; }
41 inline bool SNSTopicArnHasBeenSet() const { return m_sNSTopicArnHasBeenSet; }
42 template <typename SNSTopicArnT = Aws::String>
43 void SetSNSTopicArn(SNSTopicArnT&& value) {
44 m_sNSTopicArnHasBeenSet = true;
45 m_sNSTopicArn = std::forward<SNSTopicArnT>(value);
46 }
47 template <typename SNSTopicArnT = Aws::String>
48 NotificationChannel& WithSNSTopicArn(SNSTopicArnT&& value) {
49 SetSNSTopicArn(std::forward<SNSTopicArnT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
60 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
61 template <typename RoleArnT = Aws::String>
62 void SetRoleArn(RoleArnT&& value) {
63 m_roleArnHasBeenSet = true;
64 m_roleArn = std::forward<RoleArnT>(value);
65 }
66 template <typename RoleArnT = Aws::String>
67 NotificationChannel& WithRoleArn(RoleArnT&& value) {
68 SetRoleArn(std::forward<RoleArnT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_sNSTopicArn;
74 bool m_sNSTopicArnHasBeenSet = false;
75
76 Aws::String m_roleArn;
77 bool m_roleArnHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace Textract
82} // namespace Aws
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
NotificationChannel & WithSNSTopicArn(SNSTopicArnT &&value)
AWS_TEXTRACT_API NotificationChannel & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TEXTRACT_API NotificationChannel()=default
NotificationChannel & WithRoleArn(RoleArnT &&value)
AWS_TEXTRACT_API NotificationChannel(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue