AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
NotificationChannel.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
9#include <aws/devops-guru/model/NotificationChannelConfig.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DevOpsGuru {
21namespace Model {
22
43 public:
44 AWS_DEVOPSGURU_API NotificationChannel() = default;
45 AWS_DEVOPSGURU_API NotificationChannel(Aws::Utils::Json::JsonView jsonValue);
47 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
48
50
53 inline const Aws::String& GetId() const { return m_id; }
54 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
55 template <typename IdT = Aws::String>
56 void SetId(IdT&& value) {
57 m_idHasBeenSet = true;
58 m_id = std::forward<IdT>(value);
59 }
60 template <typename IdT = Aws::String>
62 SetId(std::forward<IdT>(value));
63 return *this;
64 }
66
68
72 inline const NotificationChannelConfig& GetConfig() const { return m_config; }
73 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
74 template <typename ConfigT = NotificationChannelConfig>
75 void SetConfig(ConfigT&& value) {
76 m_configHasBeenSet = true;
77 m_config = std::forward<ConfigT>(value);
78 }
79 template <typename ConfigT = NotificationChannelConfig>
80 NotificationChannel& WithConfig(ConfigT&& value) {
81 SetConfig(std::forward<ConfigT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_id;
87
89 bool m_idHasBeenSet = false;
90 bool m_configHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace DevOpsGuru
95} // namespace Aws
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVOPSGURU_API NotificationChannel & operator=(Aws::Utils::Json::JsonView jsonValue)
NotificationChannel & WithId(IdT &&value)
const NotificationChannelConfig & GetConfig() const
AWS_DEVOPSGURU_API NotificationChannel()=default
NotificationChannel & WithConfig(ConfigT &&value)
AWS_DEVOPSGURU_API NotificationChannel(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue