AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Channel.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/codeguruprofiler/model/EventPublisher.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeGuruProfiler {
22namespace Model {
23
31class Channel {
32 public:
33 AWS_CODEGURUPROFILER_API Channel() = default;
34 AWS_CODEGURUPROFILER_API Channel(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODEGURUPROFILER_API Channel& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const Aws::Vector<EventPublisher>& GetEventPublishers() const { return m_eventPublishers; }
45 inline bool EventPublishersHasBeenSet() const { return m_eventPublishersHasBeenSet; }
46 template <typename EventPublishersT = Aws::Vector<EventPublisher>>
47 void SetEventPublishers(EventPublishersT&& value) {
48 m_eventPublishersHasBeenSet = true;
49 m_eventPublishers = std::forward<EventPublishersT>(value);
50 }
51 template <typename EventPublishersT = Aws::Vector<EventPublisher>>
52 Channel& WithEventPublishers(EventPublishersT&& value) {
53 SetEventPublishers(std::forward<EventPublishersT>(value));
54 return *this;
55 }
57 m_eventPublishersHasBeenSet = true;
58 m_eventPublishers.push_back(value);
59 return *this;
60 }
62
64
70 inline const Aws::String& GetId() const { return m_id; }
71 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
72 template <typename IdT = Aws::String>
73 void SetId(IdT&& value) {
74 m_idHasBeenSet = true;
75 m_id = std::forward<IdT>(value);
76 }
77 template <typename IdT = Aws::String>
78 Channel& WithId(IdT&& value) {
79 SetId(std::forward<IdT>(value));
80 return *this;
81 }
83
85
89 inline const Aws::String& GetUri() const { return m_uri; }
90 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
91 template <typename UriT = Aws::String>
92 void SetUri(UriT&& value) {
93 m_uriHasBeenSet = true;
94 m_uri = std::forward<UriT>(value);
95 }
96 template <typename UriT = Aws::String>
97 Channel& WithUri(UriT&& value) {
98 SetUri(std::forward<UriT>(value));
99 return *this;
100 }
102 private:
103 Aws::Vector<EventPublisher> m_eventPublishers;
104
105 Aws::String m_id;
106
107 Aws::String m_uri;
108 bool m_eventPublishersHasBeenSet = false;
109 bool m_idHasBeenSet = false;
110 bool m_uriHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace CodeGuruProfiler
115} // namespace Aws
Channel & WithUri(UriT &&value)
Definition Channel.h:97
AWS_CODEGURUPROFILER_API Channel()=default
const Aws::String & GetId() const
Definition Channel.h:70
const Aws::String & GetUri() const
Definition Channel.h:89
const Aws::Vector< EventPublisher > & GetEventPublishers() const
Definition Channel.h:44
AWS_CODEGURUPROFILER_API Channel & operator=(Aws::Utils::Json::JsonView jsonValue)
Channel & WithEventPublishers(EventPublishersT &&value)
Definition Channel.h:52
Channel & WithId(IdT &&value)
Definition Channel.h:78
void SetEventPublishers(EventPublishersT &&value)
Definition Channel.h:47
Channel & AddEventPublishers(EventPublisher value)
Definition Channel.h:56
AWS_CODEGURUPROFILER_API Channel(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue