AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ChannelMembership.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/chime/model/Identity.h>
9#include <aws/chime/model/ChannelMembershipType.h>
10#include <aws/core/utils/memory/stl/AWSString.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
35 {
36 public:
37 AWS_CHIME_API ChannelMembership();
40 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Identity& GetInvitedBy() const{ return m_invitedBy; }
48 inline bool InvitedByHasBeenSet() const { return m_invitedByHasBeenSet; }
49 inline void SetInvitedBy(const Identity& value) { m_invitedByHasBeenSet = true; m_invitedBy = value; }
50 inline void SetInvitedBy(Identity&& value) { m_invitedByHasBeenSet = true; m_invitedBy = std::move(value); }
51 inline ChannelMembership& WithInvitedBy(const Identity& value) { SetInvitedBy(value); return *this;}
52 inline ChannelMembership& WithInvitedBy(Identity&& value) { SetInvitedBy(std::move(value)); return *this;}
54
56
59 inline const ChannelMembershipType& GetType() const{ return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(const ChannelMembershipType& value) { m_typeHasBeenSet = true; m_type = value; }
62 inline void SetType(ChannelMembershipType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
63 inline ChannelMembership& WithType(const ChannelMembershipType& value) { SetType(value); return *this;}
64 inline ChannelMembership& WithType(ChannelMembershipType&& value) { SetType(std::move(value)); return *this;}
66
68
71 inline const Identity& GetMember() const{ return m_member; }
72 inline bool MemberHasBeenSet() const { return m_memberHasBeenSet; }
73 inline void SetMember(const Identity& value) { m_memberHasBeenSet = true; m_member = value; }
74 inline void SetMember(Identity&& value) { m_memberHasBeenSet = true; m_member = std::move(value); }
75 inline ChannelMembership& WithMember(const Identity& value) { SetMember(value); return *this;}
76 inline ChannelMembership& WithMember(Identity&& value) { SetMember(std::move(value)); return *this;}
78
80
83 inline const Aws::String& GetChannelArn() const{ return m_channelArn; }
84 inline bool ChannelArnHasBeenSet() const { return m_channelArnHasBeenSet; }
85 inline void SetChannelArn(const Aws::String& value) { m_channelArnHasBeenSet = true; m_channelArn = value; }
86 inline void SetChannelArn(Aws::String&& value) { m_channelArnHasBeenSet = true; m_channelArn = std::move(value); }
87 inline void SetChannelArn(const char* value) { m_channelArnHasBeenSet = true; m_channelArn.assign(value); }
88 inline ChannelMembership& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;}
89 inline ChannelMembership& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;}
90 inline ChannelMembership& WithChannelArn(const char* value) { SetChannelArn(value); return *this;}
92
94
97 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
98 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
99 inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; }
100 inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); }
102 inline ChannelMembership& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
104
106
109 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
110 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
111 inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = value; }
112 inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::move(value); }
116 private:
117
118 Identity m_invitedBy;
119 bool m_invitedByHasBeenSet = false;
120
122 bool m_typeHasBeenSet = false;
123
124 Identity m_member;
125 bool m_memberHasBeenSet = false;
126
127 Aws::String m_channelArn;
128 bool m_channelArnHasBeenSet = false;
129
130 Aws::Utils::DateTime m_createdTimestamp;
131 bool m_createdTimestampHasBeenSet = false;
132
133 Aws::Utils::DateTime m_lastUpdatedTimestamp;
134 bool m_lastUpdatedTimestampHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace Chime
139} // namespace Aws
AWS_CHIME_API ChannelMembership & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
ChannelMembership & WithInvitedBy(Identity &&value)
void SetInvitedBy(const Identity &value)
ChannelMembership & WithType(ChannelMembershipType &&value)
const Aws::String & GetChannelArn() const
void SetType(const ChannelMembershipType &value)
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
ChannelMembership & WithMember(Identity &&value)
ChannelMembership & WithMember(const Identity &value)
ChannelMembership & WithType(const ChannelMembershipType &value)
ChannelMembership & WithLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
void SetLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
void SetChannelArn(Aws::String &&value)
void SetLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
ChannelMembership & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
ChannelMembership & WithChannelArn(Aws::String &&value)
void SetCreatedTimestamp(Aws::Utils::DateTime &&value)
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(ChannelMembershipType &&value)
AWS_CHIME_API ChannelMembership(Aws::Utils::Json::JsonView jsonValue)
void SetMember(const Identity &value)
void SetCreatedTimestamp(const Aws::Utils::DateTime &value)
const ChannelMembershipType & GetType() const
ChannelMembership & WithChannelArn(const char *value)
ChannelMembership & WithInvitedBy(const Identity &value)
void SetChannelArn(const Aws::String &value)
ChannelMembership & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
ChannelMembership & WithChannelArn(const Aws::String &value)
const Identity & GetInvitedBy() const
ChannelMembership & WithLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue