AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Channel.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codeguruprofiler/model/EventPublisher.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeGuruProfiler
24{
25namespace Model
26{
27
35 class Channel
36 {
37 public:
38 AWS_CODEGURUPROFILER_API Channel() = default;
39 AWS_CODEGURUPROFILER_API Channel(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEGURUPROFILER_API Channel& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const Aws::Vector<EventPublisher>& GetEventPublishers() const { return m_eventPublishers; }
51 inline bool EventPublishersHasBeenSet() const { return m_eventPublishersHasBeenSet; }
52 template<typename EventPublishersT = Aws::Vector<EventPublisher>>
53 void SetEventPublishers(EventPublishersT&& value) { m_eventPublishersHasBeenSet = true; m_eventPublishers = std::forward<EventPublishersT>(value); }
54 template<typename EventPublishersT = Aws::Vector<EventPublisher>>
55 Channel& WithEventPublishers(EventPublishersT&& value) { SetEventPublishers(std::forward<EventPublishersT>(value)); return *this;}
56 inline Channel& AddEventPublishers(EventPublisher value) { m_eventPublishersHasBeenSet = true; m_eventPublishers.push_back(value); return *this; }
58
60
66 inline const Aws::String& GetId() const { return m_id; }
67 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
68 template<typename IdT = Aws::String>
69 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
70 template<typename IdT = Aws::String>
71 Channel& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
73
75
79 inline const Aws::String& GetUri() const { return m_uri; }
80 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
81 template<typename UriT = Aws::String>
82 void SetUri(UriT&& value) { m_uriHasBeenSet = true; m_uri = std::forward<UriT>(value); }
83 template<typename UriT = Aws::String>
84 Channel& WithUri(UriT&& value) { SetUri(std::forward<UriT>(value)); return *this;}
86 private:
87
88 Aws::Vector<EventPublisher> m_eventPublishers;
89 bool m_eventPublishersHasBeenSet = false;
90
91 Aws::String m_id;
92 bool m_idHasBeenSet = false;
93
94 Aws::String m_uri;
95 bool m_uriHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace CodeGuruProfiler
100} // namespace Aws
Channel & WithUri(UriT &&value)
Definition Channel.h:84
AWS_CODEGURUPROFILER_API Channel()=default
const Aws::String & GetId() const
Definition Channel.h:66
const Aws::String & GetUri() const
Definition Channel.h:79
const Aws::Vector< EventPublisher > & GetEventPublishers() const
Definition Channel.h:50
AWS_CODEGURUPROFILER_API Channel & operator=(Aws::Utils::Json::JsonView jsonValue)
Channel & WithEventPublishers(EventPublishersT &&value)
Definition Channel.h:55
Channel & WithId(IdT &&value)
Definition Channel.h:71
void SetEventPublishers(EventPublishersT &&value)
Definition Channel.h:53
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