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/rekognition/Rekognition_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Rekognition {
20namespace Model {
21
37 public:
38 AWS_REKOGNITION_API NotificationChannel() = default;
39 AWS_REKOGNITION_API NotificationChannel(Aws::Utils::Json::JsonView jsonValue);
41 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
48 inline const Aws::String& GetSNSTopicArn() const { return m_sNSTopicArn; }
49 inline bool SNSTopicArnHasBeenSet() const { return m_sNSTopicArnHasBeenSet; }
50 template <typename SNSTopicArnT = Aws::String>
51 void SetSNSTopicArn(SNSTopicArnT&& value) {
52 m_sNSTopicArnHasBeenSet = true;
53 m_sNSTopicArn = std::forward<SNSTopicArnT>(value);
54 }
55 template <typename SNSTopicArnT = Aws::String>
56 NotificationChannel& WithSNSTopicArn(SNSTopicArnT&& value) {
57 SetSNSTopicArn(std::forward<SNSTopicArnT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
68 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
69 template <typename RoleArnT = Aws::String>
70 void SetRoleArn(RoleArnT&& value) {
71 m_roleArnHasBeenSet = true;
72 m_roleArn = std::forward<RoleArnT>(value);
73 }
74 template <typename RoleArnT = Aws::String>
75 NotificationChannel& WithRoleArn(RoleArnT&& value) {
76 SetRoleArn(std::forward<RoleArnT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_sNSTopicArn;
82 bool m_sNSTopicArnHasBeenSet = false;
83
84 Aws::String m_roleArn;
85 bool m_roleArnHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace Rekognition
90} // namespace Aws
NotificationChannel & WithRoleArn(RoleArnT &&value)
AWS_REKOGNITION_API NotificationChannel(Aws::Utils::Json::JsonView jsonValue)
AWS_REKOGNITION_API NotificationChannel & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_REKOGNITION_API NotificationChannel()=default
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
NotificationChannel & WithSNSTopicArn(SNSTopicArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue