AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ChannelModerator.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/chime/model/Identity.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.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 Chime
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_CHIME_API ChannelModerator();
39 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Identity& GetModerator() const{ return m_moderator; }
47 inline bool ModeratorHasBeenSet() const { return m_moderatorHasBeenSet; }
48 inline void SetModerator(const Identity& value) { m_moderatorHasBeenSet = true; m_moderator = value; }
49 inline void SetModerator(Identity&& value) { m_moderatorHasBeenSet = true; m_moderator = std::move(value); }
50 inline ChannelModerator& WithModerator(const Identity& value) { SetModerator(value); return *this;}
51 inline ChannelModerator& WithModerator(Identity&& value) { SetModerator(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetChannelArn() const{ return m_channelArn; }
59 inline bool ChannelArnHasBeenSet() const { return m_channelArnHasBeenSet; }
60 inline void SetChannelArn(const Aws::String& value) { m_channelArnHasBeenSet = true; m_channelArn = value; }
61 inline void SetChannelArn(Aws::String&& value) { m_channelArnHasBeenSet = true; m_channelArn = std::move(value); }
62 inline void SetChannelArn(const char* value) { m_channelArnHasBeenSet = true; m_channelArn.assign(value); }
63 inline ChannelModerator& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;}
64 inline ChannelModerator& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;}
65 inline ChannelModerator& WithChannelArn(const char* value) { SetChannelArn(value); return *this;}
67
69
72 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
73 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
74 inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; }
75 inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); }
77 inline ChannelModerator& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
79
81
84 inline const Identity& GetCreatedBy() const{ return m_createdBy; }
85 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
86 inline void SetCreatedBy(const Identity& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
87 inline void SetCreatedBy(Identity&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
88 inline ChannelModerator& WithCreatedBy(const Identity& value) { SetCreatedBy(value); return *this;}
89 inline ChannelModerator& WithCreatedBy(Identity&& value) { SetCreatedBy(std::move(value)); return *this;}
91 private:
92
93 Identity m_moderator;
94 bool m_moderatorHasBeenSet = false;
95
96 Aws::String m_channelArn;
97 bool m_channelArnHasBeenSet = false;
98
99 Aws::Utils::DateTime m_createdTimestamp;
100 bool m_createdTimestampHasBeenSet = false;
101
102 Identity m_createdBy;
103 bool m_createdByHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Chime
108} // namespace Aws
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CHIME_API ChannelModerator(Aws::Utils::Json::JsonView jsonValue)
ChannelModerator & WithModerator(Identity &&value)
void SetModerator(const Identity &value)
ChannelModerator & WithChannelArn(const char *value)
void SetCreatedTimestamp(Aws::Utils::DateTime &&value)
AWS_CHIME_API ChannelModerator & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetChannelArn() const
void SetChannelArn(const char *value)
void SetChannelArn(Aws::String &&value)
ChannelModerator & WithCreatedBy(const Identity &value)
ChannelModerator & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
ChannelModerator & WithModerator(const Identity &value)
const Identity & GetCreatedBy() const
ChannelModerator & WithChannelArn(const Aws::String &value)
ChannelModerator & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
void SetCreatedBy(const Identity &value)
ChannelModerator & WithChannelArn(Aws::String &&value)
void SetChannelArn(const Aws::String &value)
ChannelModerator & WithCreatedBy(Identity &&value)
const Identity & GetModerator() const
const Aws::Utils::DateTime & GetCreatedTimestamp() const
void SetCreatedTimestamp(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue