AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SNSConfiguration.h
1
6#pragma once
7#include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lookoutmetrics/model/SnsFormat.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 LookoutMetrics
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_LOOKOUTMETRICS_API SNSConfiguration();
38 AWS_LOOKOUTMETRICS_API SNSConfiguration(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LOOKOUTMETRICS_API SNSConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
48 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
49 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
50 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
51 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
52 inline SNSConfiguration& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
53 inline SNSConfiguration& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
54 inline SNSConfiguration& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
56
58
61 inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
62 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
63 inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
64 inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
65 inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
66 inline SNSConfiguration& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
67 inline SNSConfiguration& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
68 inline SNSConfiguration& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
70
72
81 inline const SnsFormat& GetSnsFormat() const{ return m_snsFormat; }
82 inline bool SnsFormatHasBeenSet() const { return m_snsFormatHasBeenSet; }
83 inline void SetSnsFormat(const SnsFormat& value) { m_snsFormatHasBeenSet = true; m_snsFormat = value; }
84 inline void SetSnsFormat(SnsFormat&& value) { m_snsFormatHasBeenSet = true; m_snsFormat = std::move(value); }
85 inline SNSConfiguration& WithSnsFormat(const SnsFormat& value) { SetSnsFormat(value); return *this;}
86 inline SNSConfiguration& WithSnsFormat(SnsFormat&& value) { SetSnsFormat(std::move(value)); return *this;}
88 private:
89
90 Aws::String m_roleArn;
91 bool m_roleArnHasBeenSet = false;
92
93 Aws::String m_snsTopicArn;
94 bool m_snsTopicArnHasBeenSet = false;
95
96 SnsFormat m_snsFormat;
97 bool m_snsFormatHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace LookoutMetrics
102} // namespace Aws
SNSConfiguration & WithRoleArn(const Aws::String &value)
void SetSnsTopicArn(const Aws::String &value)
SNSConfiguration & WithRoleArn(const char *value)
AWS_LOOKOUTMETRICS_API SNSConfiguration(Aws::Utils::Json::JsonView jsonValue)
SNSConfiguration & WithSnsTopicArn(const Aws::String &value)
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
SNSConfiguration & WithSnsFormat(SnsFormat &&value)
SNSConfiguration & WithRoleArn(Aws::String &&value)
SNSConfiguration & WithSnsTopicArn(Aws::String &&value)
SNSConfiguration & WithSnsTopicArn(const char *value)
void SetRoleArn(const Aws::String &value)
AWS_LOOKOUTMETRICS_API SNSConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
SNSConfiguration & WithSnsFormat(const SnsFormat &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue