AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ChannelBan.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 ChannelBan();
37 AWS_CHIME_API ChannelBan(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Identity& GetMember() const{ return m_member; }
47 inline bool MemberHasBeenSet() const { return m_memberHasBeenSet; }
48 inline void SetMember(const Identity& value) { m_memberHasBeenSet = true; m_member = value; }
49 inline void SetMember(Identity&& value) { m_memberHasBeenSet = true; m_member = std::move(value); }
50 inline ChannelBan& WithMember(const Identity& value) { SetMember(value); return *this;}
51 inline ChannelBan& WithMember(Identity&& value) { SetMember(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 ChannelBan& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;}
64 inline ChannelBan& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;}
65 inline ChannelBan& 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); }
76 inline ChannelBan& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;}
77 inline ChannelBan& 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 ChannelBan& WithCreatedBy(const Identity& value) { SetCreatedBy(value); return *this;}
89 inline ChannelBan& WithCreatedBy(Identity&& value) { SetCreatedBy(std::move(value)); return *this;}
91 private:
92
93 Identity m_member;
94 bool m_memberHasBeenSet = 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
bool CreatedTimestampHasBeenSet() const
Definition ChannelBan.h:73
const Identity & GetMember() const
Definition ChannelBan.h:46
void SetCreatedBy(Identity &&value)
Definition ChannelBan.h:87
void SetChannelArn(const Aws::String &value)
Definition ChannelBan.h:60
ChannelBan & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
Definition ChannelBan.h:77
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetChannelArn() const
Definition ChannelBan.h:58
bool ChannelArnHasBeenSet() const
Definition ChannelBan.h:59
void SetMember(const Identity &value)
Definition ChannelBan.h:48
AWS_CHIME_API ChannelBan & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMember(Identity &&value)
Definition ChannelBan.h:49
ChannelBan & WithChannelArn(Aws::String &&value)
Definition ChannelBan.h:64
const Aws::Utils::DateTime & GetCreatedTimestamp() const
Definition ChannelBan.h:72
ChannelBan & WithChannelArn(const Aws::String &value)
Definition ChannelBan.h:63
ChannelBan & WithMember(const Identity &value)
Definition ChannelBan.h:50
ChannelBan & WithCreatedBy(Identity &&value)
Definition ChannelBan.h:89
void SetChannelArn(const char *value)
Definition ChannelBan.h:62
void SetCreatedBy(const Identity &value)
Definition ChannelBan.h:86
void SetCreatedTimestamp(const Aws::Utils::DateTime &value)
Definition ChannelBan.h:74
void SetChannelArn(Aws::String &&value)
Definition ChannelBan.h:61
const Identity & GetCreatedBy() const
Definition ChannelBan.h:84
ChannelBan & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
Definition ChannelBan.h:76
ChannelBan & WithCreatedBy(const Identity &value)
Definition ChannelBan.h:88
ChannelBan & WithMember(Identity &&value)
Definition ChannelBan.h:51
void SetCreatedTimestamp(Aws::Utils::DateTime &&value)
Definition ChannelBan.h:75
AWS_CHIME_API ChannelBan(Aws::Utils::Json::JsonView jsonValue)
ChannelBan & WithChannelArn(const char *value)
Definition ChannelBan.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue