/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The membership information, including member ARNs, the channel ARN, and
* membership types.See Also:
AWS
* API Reference
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::VectorThe 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::VectorThe users successfully added to the request.
*/ inline void SetMembers(Aws::VectorThe users successfully added to the request.
*/ inline BatchChannelMemberships& WithMembers(const Aws::VectorThe users successfully added to the request.
*/ inline BatchChannelMemberships& WithMembers(Aws::VectorThe 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