/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Chime { namespace Model { /** *

The membership information, including member ARNs, the channel ARN, and * membership types.

See Also:

AWS * API Reference

*/ class BatchChannelMemberships { public: AWS_CHIME_API BatchChannelMemberships(); AWS_CHIME_API BatchChannelMemberships(Aws::Utils::Json::JsonView jsonValue); AWS_CHIME_API BatchChannelMemberships& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The identifier of the member who invited another member.

*/ inline const Identity& GetInvitedBy() const{ return m_invitedBy; } /** *

The identifier of the member who invited another member.

*/ inline bool InvitedByHasBeenSet() const { return m_invitedByHasBeenSet; } /** *

The identifier of the member who invited another member.

*/ inline void SetInvitedBy(const Identity& value) { m_invitedByHasBeenSet = true; m_invitedBy = value; } /** *

The identifier of the member who invited another member.

*/ inline void SetInvitedBy(Identity&& value) { m_invitedByHasBeenSet = true; m_invitedBy = std::move(value); } /** *

The identifier of the member who invited another member.

*/ inline BatchChannelMemberships& WithInvitedBy(const Identity& value) { SetInvitedBy(value); return *this;} /** *

The identifier of the member who invited another member.

*/ inline BatchChannelMemberships& WithInvitedBy(Identity&& value) { SetInvitedBy(std::move(value)); return *this;} /** *

The membership types set for the channel users.

*/ inline const ChannelMembershipType& GetType() const{ return m_type; } /** *

The membership types set for the channel users.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The membership types set for the channel users.

*/ inline void SetType(const ChannelMembershipType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The membership types set for the channel users.

*/ inline void SetType(ChannelMembershipType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The membership types set for the channel users.

*/ inline BatchChannelMemberships& WithType(const ChannelMembershipType& value) { SetType(value); return *this;} /** *

The membership types set for the channel users.

*/ inline BatchChannelMemberships& WithType(ChannelMembershipType&& value) { SetType(std::move(value)); return *this;} /** *

The users successfully added to the request.

*/ inline const Aws::Vector& GetMembers() const{ return m_members; } /** *

The users successfully added to the request.

*/ inline bool MembersHasBeenSet() const { return m_membersHasBeenSet; } /** *

The users successfully added to the request.

*/ inline void SetMembers(const Aws::Vector& value) { m_membersHasBeenSet = true; m_members = value; } /** *

The users successfully added to the request.

*/ inline void SetMembers(Aws::Vector&& value) { m_membersHasBeenSet = true; m_members = std::move(value); } /** *

The users successfully added to the request.

*/ inline BatchChannelMemberships& WithMembers(const Aws::Vector& value) { SetMembers(value); return *this;} /** *

The users successfully added to the request.

*/ inline BatchChannelMemberships& WithMembers(Aws::Vector&& value) { SetMembers(std::move(value)); return *this;} /** *

The users successfully added to the request.

*/ inline BatchChannelMemberships& AddMembers(const Identity& value) { m_membersHasBeenSet = true; m_members.push_back(value); return *this; } /** *

The users successfully added to the request.

*/ inline BatchChannelMemberships& AddMembers(Identity&& value) { m_membersHasBeenSet = true; m_members.push_back(std::move(value)); return *this; } /** *

The ARN of the channel to which you're adding users.

*/ inline const Aws::String& GetChannelArn() const{ return m_channelArn; } /** *

The ARN of the channel to which you're adding users.

*/ inline bool ChannelArnHasBeenSet() const { return m_channelArnHasBeenSet; } /** *

The ARN of the channel to which you're adding users.

*/ inline void SetChannelArn(const Aws::String& value) { m_channelArnHasBeenSet = true; m_channelArn = value; } /** *

The ARN of the channel to which you're adding users.

*/ inline void SetChannelArn(Aws::String&& value) { m_channelArnHasBeenSet = true; m_channelArn = std::move(value); } /** *

The ARN of the channel to which you're adding users.

*/ inline void SetChannelArn(const char* value) { m_channelArnHasBeenSet = true; m_channelArn.assign(value); } /** *

The ARN of the channel to which you're adding users.

*/ inline BatchChannelMemberships& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;} /** *

The ARN of the channel to which you're adding users.

*/ inline BatchChannelMemberships& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;} /** *

The ARN of the channel to which you're adding users.

*/ inline BatchChannelMemberships& WithChannelArn(const char* value) { SetChannelArn(value); return *this;} private: Identity m_invitedBy; bool m_invitedByHasBeenSet = false; ChannelMembershipType m_type; bool m_typeHasBeenSet = false; Aws::Vector m_members; bool m_membersHasBeenSet = false; Aws::String m_channelArn; bool m_channelArnHasBeenSet = false; }; } // namespace Model } // namespace Chime } // namespace Aws