AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchChannelMemberships.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/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.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 BatchChannelMemberships();
41 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Identity& GetInvitedBy() const{ return m_invitedBy; }
49 inline bool InvitedByHasBeenSet() const { return m_invitedByHasBeenSet; }
50 inline void SetInvitedBy(const Identity& value) { m_invitedByHasBeenSet = true; m_invitedBy = value; }
51 inline void SetInvitedBy(Identity&& value) { m_invitedByHasBeenSet = true; m_invitedBy = std::move(value); }
52 inline BatchChannelMemberships& WithInvitedBy(const Identity& value) { SetInvitedBy(value); return *this;}
53 inline BatchChannelMemberships& WithInvitedBy(Identity&& value) { SetInvitedBy(std::move(value)); return *this;}
55
57
60 inline const ChannelMembershipType& GetType() const{ return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 inline void SetType(const ChannelMembershipType& value) { m_typeHasBeenSet = true; m_type = value; }
63 inline void SetType(ChannelMembershipType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
64 inline BatchChannelMemberships& WithType(const ChannelMembershipType& value) { SetType(value); return *this;}
65 inline BatchChannelMemberships& WithType(ChannelMembershipType&& value) { SetType(std::move(value)); return *this;}
67
69
72 inline const Aws::Vector<Identity>& GetMembers() const{ return m_members; }
73 inline bool MembersHasBeenSet() const { return m_membersHasBeenSet; }
74 inline void SetMembers(const Aws::Vector<Identity>& value) { m_membersHasBeenSet = true; m_members = value; }
75 inline void SetMembers(Aws::Vector<Identity>&& value) { m_membersHasBeenSet = true; m_members = std::move(value); }
76 inline BatchChannelMemberships& WithMembers(const Aws::Vector<Identity>& value) { SetMembers(value); return *this;}
77 inline BatchChannelMemberships& WithMembers(Aws::Vector<Identity>&& value) { SetMembers(std::move(value)); return *this;}
78 inline BatchChannelMemberships& AddMembers(const Identity& value) { m_membersHasBeenSet = true; m_members.push_back(value); return *this; }
79 inline BatchChannelMemberships& AddMembers(Identity&& value) { m_membersHasBeenSet = true; m_members.push_back(std::move(value)); return *this; }
81
83
86 inline const Aws::String& GetChannelArn() const{ return m_channelArn; }
87 inline bool ChannelArnHasBeenSet() const { return m_channelArnHasBeenSet; }
88 inline void SetChannelArn(const Aws::String& value) { m_channelArnHasBeenSet = true; m_channelArn = value; }
89 inline void SetChannelArn(Aws::String&& value) { m_channelArnHasBeenSet = true; m_channelArn = std::move(value); }
90 inline void SetChannelArn(const char* value) { m_channelArnHasBeenSet = true; m_channelArn.assign(value); }
91 inline BatchChannelMemberships& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;}
92 inline BatchChannelMemberships& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;}
93 inline BatchChannelMemberships& WithChannelArn(const char* value) { SetChannelArn(value); return *this;}
95 private:
96
97 Identity m_invitedBy;
98 bool m_invitedByHasBeenSet = false;
99
101 bool m_typeHasBeenSet = false;
102
103 Aws::Vector<Identity> m_members;
104 bool m_membersHasBeenSet = false;
105
106 Aws::String m_channelArn;
107 bool m_channelArnHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Chime
112} // namespace Aws
void SetType(ChannelMembershipType &&value)
void SetMembers(const Aws::Vector< Identity > &value)
BatchChannelMemberships & WithType(ChannelMembershipType &&value)
void SetMembers(Aws::Vector< Identity > &&value)
BatchChannelMemberships & WithType(const ChannelMembershipType &value)
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
BatchChannelMemberships & WithChannelArn(const char *value)
BatchChannelMemberships & WithInvitedBy(const Identity &value)
void SetType(const ChannelMembershipType &value)
AWS_CHIME_API BatchChannelMemberships & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchChannelMemberships & WithInvitedBy(Identity &&value)
BatchChannelMemberships & WithChannelArn(const Aws::String &value)
BatchChannelMemberships & WithMembers(const Aws::Vector< Identity > &value)
BatchChannelMemberships & WithMembers(Aws::Vector< Identity > &&value)
const ChannelMembershipType & GetType() const
BatchChannelMemberships & AddMembers(const Identity &value)
const Aws::Vector< Identity > & GetMembers() const
AWS_CHIME_API BatchChannelMemberships(Aws::Utils::Json::JsonView jsonValue)
BatchChannelMemberships & WithChannelArn(Aws::String &&value)
BatchChannelMemberships & AddMembers(Identity &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue