AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEventPublishers(const Aws::Vector<EventPublisher>& value) { m_eventPublishersHasBeenSet = true; m_eventPublishers = value; }
53 inline void SetEventPublishers(Aws::Vector<EventPublisher>&& value) { m_eventPublishersHasBeenSet = true; m_eventPublishers = std::move(value); }
54 inline Channel& WithEventPublishers(const Aws::Vector<EventPublisher>& value) { SetEventPublishers(value); return *this;}
55 inline Channel& WithEventPublishers(Aws::Vector<EventPublisher>&& value) { SetEventPublishers(std::move(value)); return *this;}
56 inline Channel& AddEventPublishers(const EventPublisher& value) { m_eventPublishersHasBeenSet = true; m_eventPublishers.push_back(value); return *this; }
57 inline Channel& AddEventPublishers(EventPublisher&& value) { m_eventPublishersHasBeenSet = true; m_eventPublishers.push_back(std::move(value)); return *this; }
59
61
67 inline const Aws::String& GetId() const{ return m_id; }
68 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
69 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
70 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
71 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
72 inline Channel& WithId(const Aws::String& value) { SetId(value); return *this;}
73 inline Channel& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
74 inline Channel& WithId(const char* value) { SetId(value); return *this;}
76
78
82 inline const Aws::String& GetUri() const{ return m_uri; }
83 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
84 inline void SetUri(const Aws::String& value) { m_uriHasBeenSet = true; m_uri = value; }
85 inline void SetUri(Aws::String&& value) { m_uriHasBeenSet = true; m_uri = std::move(value); }
86 inline void SetUri(const char* value) { m_uriHasBeenSet = true; m_uri.assign(value); }
87 inline Channel& WithUri(const Aws::String& value) { SetUri(value); return *this;}
88 inline Channel& WithUri(Aws::String&& value) { SetUri(std::move(value)); return *this;}
89 inline Channel& WithUri(const char* value) { SetUri(value); return *this;}
91 private:
92
93 Aws::Vector<EventPublisher> m_eventPublishers;
94 bool m_eventPublishersHasBeenSet = false;
95
96 Aws::String m_id;
97 bool m_idHasBeenSet = false;
98
99 Aws::String m_uri;
100 bool m_uriHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace CodeGuruProfiler
105} // namespace Aws
void SetUri(const char *value)
Definition Channel.h:86
Channel & AddEventPublishers(EventPublisher &&value)
Definition Channel.h:57
const Aws::String & GetId() const
Definition Channel.h:67
Channel & WithId(const char *value)
Definition Channel.h:74
Channel & WithEventPublishers(const Aws::Vector< EventPublisher > &value)
Definition Channel.h:54
const Aws::String & GetUri() const
Definition Channel.h:82
Channel & WithEventPublishers(Aws::Vector< EventPublisher > &&value)
Definition Channel.h:55
const Aws::Vector< EventPublisher > & GetEventPublishers() const
Definition Channel.h:50
AWS_CODEGURUPROFILER_API Channel & operator=(Aws::Utils::Json::JsonView jsonValue)
Channel & AddEventPublishers(const EventPublisher &value)
Definition Channel.h:56
void SetEventPublishers(Aws::Vector< EventPublisher > &&value)
Definition Channel.h:53
void SetId(Aws::String &&value)
Definition Channel.h:70
Channel & WithId(Aws::String &&value)
Definition Channel.h:73
Channel & WithId(const Aws::String &value)
Definition Channel.h:72
Channel & WithUri(const char *value)
Definition Channel.h:89
AWS_CODEGURUPROFILER_API Channel(Aws::Utils::Json::JsonView jsonValue)
void SetEventPublishers(const Aws::Vector< EventPublisher > &value)
Definition Channel.h:52
void SetUri(Aws::String &&value)
Definition Channel.h:85
void SetId(const char *value)
Definition Channel.h:71
AWS_CODEGURUPROFILER_API Channel()
void SetUri(const Aws::String &value)
Definition Channel.h:84
Channel & WithUri(Aws::String &&value)
Definition Channel.h:88
AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
Channel & WithUri(const Aws::String &value)
Definition Channel.h:87
void SetId(const Aws::String &value)
Definition Channel.h:69
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue