AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ChannelSummary.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/chime/model/ChannelMode.h>
10#include <aws/chime/model/ChannelPrivacy.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Chime
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_CHIME_API ChannelSummary();
41 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline ChannelSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline ChannelSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline ChannelSummary& WithName(const char* value) { SetName(value); return *this;}
57
59
62 inline const Aws::String& GetChannelArn() const{ return m_channelArn; }
63 inline bool ChannelArnHasBeenSet() const { return m_channelArnHasBeenSet; }
64 inline void SetChannelArn(const Aws::String& value) { m_channelArnHasBeenSet = true; m_channelArn = value; }
65 inline void SetChannelArn(Aws::String&& value) { m_channelArnHasBeenSet = true; m_channelArn = std::move(value); }
66 inline void SetChannelArn(const char* value) { m_channelArnHasBeenSet = true; m_channelArn.assign(value); }
67 inline ChannelSummary& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;}
68 inline ChannelSummary& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;}
69 inline ChannelSummary& WithChannelArn(const char* value) { SetChannelArn(value); return *this;}
71
73
76 inline const ChannelMode& GetMode() const{ return m_mode; }
77 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
78 inline void SetMode(const ChannelMode& value) { m_modeHasBeenSet = true; m_mode = value; }
79 inline void SetMode(ChannelMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); }
80 inline ChannelSummary& WithMode(const ChannelMode& value) { SetMode(value); return *this;}
81 inline ChannelSummary& WithMode(ChannelMode&& value) { SetMode(std::move(value)); return *this;}
83
85
88 inline const ChannelPrivacy& GetPrivacy() const{ return m_privacy; }
89 inline bool PrivacyHasBeenSet() const { return m_privacyHasBeenSet; }
90 inline void SetPrivacy(const ChannelPrivacy& value) { m_privacyHasBeenSet = true; m_privacy = value; }
91 inline void SetPrivacy(ChannelPrivacy&& value) { m_privacyHasBeenSet = true; m_privacy = std::move(value); }
92 inline ChannelSummary& WithPrivacy(const ChannelPrivacy& value) { SetPrivacy(value); return *this;}
93 inline ChannelSummary& WithPrivacy(ChannelPrivacy&& value) { SetPrivacy(std::move(value)); return *this;}
95
97
100 inline const Aws::String& GetMetadata() const{ return m_metadata; }
101 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
102 inline void SetMetadata(const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata = value; }
103 inline void SetMetadata(Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
104 inline void SetMetadata(const char* value) { m_metadataHasBeenSet = true; m_metadata.assign(value); }
105 inline ChannelSummary& WithMetadata(const Aws::String& value) { SetMetadata(value); return *this;}
106 inline ChannelSummary& WithMetadata(Aws::String&& value) { SetMetadata(std::move(value)); return *this;}
107 inline ChannelSummary& WithMetadata(const char* value) { SetMetadata(value); return *this;}
109
111
114 inline const Aws::Utils::DateTime& GetLastMessageTimestamp() const{ return m_lastMessageTimestamp; }
115 inline bool LastMessageTimestampHasBeenSet() const { return m_lastMessageTimestampHasBeenSet; }
116 inline void SetLastMessageTimestamp(const Aws::Utils::DateTime& value) { m_lastMessageTimestampHasBeenSet = true; m_lastMessageTimestamp = value; }
117 inline void SetLastMessageTimestamp(Aws::Utils::DateTime&& value) { m_lastMessageTimestampHasBeenSet = true; m_lastMessageTimestamp = std::move(value); }
119 inline ChannelSummary& WithLastMessageTimestamp(Aws::Utils::DateTime&& value) { SetLastMessageTimestamp(std::move(value)); return *this;}
121 private:
122
123 Aws::String m_name;
124 bool m_nameHasBeenSet = false;
125
126 Aws::String m_channelArn;
127 bool m_channelArnHasBeenSet = false;
128
129 ChannelMode m_mode;
130 bool m_modeHasBeenSet = false;
131
132 ChannelPrivacy m_privacy;
133 bool m_privacyHasBeenSet = false;
134
135 Aws::String m_metadata;
136 bool m_metadataHasBeenSet = false;
137
138 Aws::Utils::DateTime m_lastMessageTimestamp;
139 bool m_lastMessageTimestampHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace Chime
144} // namespace Aws
const ChannelPrivacy & GetPrivacy() const
AWS_CHIME_API ChannelSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ChannelSummary & WithMetadata(const Aws::String &value)
AWS_CHIME_API ChannelSummary(Aws::Utils::Json::JsonView jsonValue)
ChannelSummary & WithLastMessageTimestamp(const Aws::Utils::DateTime &value)
void SetPrivacy(const ChannelPrivacy &value)
void SetChannelArn(Aws::String &&value)
ChannelSummary & WithLastMessageTimestamp(Aws::Utils::DateTime &&value)
ChannelSummary & WithPrivacy(const ChannelPrivacy &value)
const ChannelMode & GetMode() const
ChannelSummary & WithMetadata(Aws::String &&value)
const Aws::String & GetMetadata() const
void SetName(Aws::String &&value)
void SetLastMessageTimestamp(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetLastMessageTimestamp() const
void SetLastMessageTimestamp(const Aws::Utils::DateTime &value)
void SetMetadata(const char *value)
void SetMetadata(Aws::String &&value)
ChannelSummary & WithChannelArn(Aws::String &&value)
ChannelSummary & WithName(Aws::String &&value)
ChannelSummary & WithMetadata(const char *value)
void SetMode(const ChannelMode &value)
void SetChannelArn(const Aws::String &value)
void SetPrivacy(ChannelPrivacy &&value)
void SetMetadata(const Aws::String &value)
ChannelSummary & WithMode(const ChannelMode &value)
ChannelSummary & WithChannelArn(const Aws::String &value)
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(const Aws::String &value)
ChannelSummary & WithName(const Aws::String &value)
const Aws::String & GetName() const
ChannelSummary & WithChannelArn(const char *value)
void SetName(const char *value)
ChannelSummary & WithName(const char *value)
ChannelSummary & WithPrivacy(ChannelPrivacy &&value)
const Aws::String & GetChannelArn() const
void SetChannelArn(const char *value)
void SetMode(ChannelMode &&value)
ChannelSummary & WithMode(ChannelMode &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue