AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
SlackChannel.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DevOpsAgent {
20namespace Model {
21
29 public:
30 AWS_DEVOPSAGENT_API SlackChannel() = default;
31 AWS_DEVOPSAGENT_API SlackChannel(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DEVOPSAGENT_API SlackChannel& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetChannelName() const { return m_channelName; }
40 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
41 template <typename ChannelNameT = Aws::String>
42 void SetChannelName(ChannelNameT&& value) {
43 m_channelNameHasBeenSet = true;
44 m_channelName = std::forward<ChannelNameT>(value);
45 }
46 template <typename ChannelNameT = Aws::String>
47 SlackChannel& WithChannelName(ChannelNameT&& value) {
48 SetChannelName(std::forward<ChannelNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetChannelId() const { return m_channelId; }
58 inline bool ChannelIdHasBeenSet() const { return m_channelIdHasBeenSet; }
59 template <typename ChannelIdT = Aws::String>
60 void SetChannelId(ChannelIdT&& value) {
61 m_channelIdHasBeenSet = true;
62 m_channelId = std::forward<ChannelIdT>(value);
63 }
64 template <typename ChannelIdT = Aws::String>
65 SlackChannel& WithChannelId(ChannelIdT&& value) {
66 SetChannelId(std::forward<ChannelIdT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_channelName;
72
73 Aws::String m_channelId;
74 bool m_channelNameHasBeenSet = false;
75 bool m_channelIdHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace DevOpsAgent
80} // namespace Aws
SlackChannel & WithChannelName(ChannelNameT &&value)
SlackChannel & WithChannelId(ChannelIdT &&value)
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetChannelId() const
AWS_DEVOPSAGENT_API SlackChannel & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetChannelId(ChannelIdT &&value)
const Aws::String & GetChannelName() const
void SetChannelName(ChannelNameT &&value)
AWS_DEVOPSAGENT_API SlackChannel(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSAGENT_API SlackChannel()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue