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

Invitation object returned after emailing users to invite them to join the * Amazon Chime Team account.

See Also:

AWS API * Reference

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

The invite ID.

*/ inline const Aws::String& GetInviteId() const{ return m_inviteId; } /** *

The invite ID.

*/ inline bool InviteIdHasBeenSet() const { return m_inviteIdHasBeenSet; } /** *

The invite ID.

*/ inline void SetInviteId(const Aws::String& value) { m_inviteIdHasBeenSet = true; m_inviteId = value; } /** *

The invite ID.

*/ inline void SetInviteId(Aws::String&& value) { m_inviteIdHasBeenSet = true; m_inviteId = std::move(value); } /** *

The invite ID.

*/ inline void SetInviteId(const char* value) { m_inviteIdHasBeenSet = true; m_inviteId.assign(value); } /** *

The invite ID.

*/ inline Invite& WithInviteId(const Aws::String& value) { SetInviteId(value); return *this;} /** *

The invite ID.

*/ inline Invite& WithInviteId(Aws::String&& value) { SetInviteId(std::move(value)); return *this;} /** *

The invite ID.

*/ inline Invite& WithInviteId(const char* value) { SetInviteId(value); return *this;} /** *

The status of the invite.

*/ inline const InviteStatus& GetStatus() const{ return m_status; } /** *

The status of the invite.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the invite.

*/ inline void SetStatus(const InviteStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the invite.

*/ inline void SetStatus(InviteStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the invite.

*/ inline Invite& WithStatus(const InviteStatus& value) { SetStatus(value); return *this;} /** *

The status of the invite.

*/ inline Invite& WithStatus(InviteStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The email address to which the invite is sent.

*/ inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; } /** *

The email address to which the invite is sent.

*/ inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; } /** *

The email address to which the invite is sent.

*/ inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; } /** *

The email address to which the invite is sent.

*/ inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); } /** *

The email address to which the invite is sent.

*/ inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); } /** *

The email address to which the invite is sent.

*/ inline Invite& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;} /** *

The email address to which the invite is sent.

*/ inline Invite& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;} /** *

The email address to which the invite is sent.

*/ inline Invite& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;} /** *

The status of the invite email.

*/ inline const EmailStatus& GetEmailStatus() const{ return m_emailStatus; } /** *

The status of the invite email.

*/ inline bool EmailStatusHasBeenSet() const { return m_emailStatusHasBeenSet; } /** *

The status of the invite email.

*/ inline void SetEmailStatus(const EmailStatus& value) { m_emailStatusHasBeenSet = true; m_emailStatus = value; } /** *

The status of the invite email.

*/ inline void SetEmailStatus(EmailStatus&& value) { m_emailStatusHasBeenSet = true; m_emailStatus = std::move(value); } /** *

The status of the invite email.

*/ inline Invite& WithEmailStatus(const EmailStatus& value) { SetEmailStatus(value); return *this;} /** *

The status of the invite email.

*/ inline Invite& WithEmailStatus(EmailStatus&& value) { SetEmailStatus(std::move(value)); return *this;} private: Aws::String m_inviteId; bool m_inviteIdHasBeenSet; InviteStatus m_status; bool m_statusHasBeenSet; Aws::String m_emailAddress; bool m_emailAddressHasBeenSet; EmailStatus m_emailStatus; bool m_emailStatusHasBeenSet; }; } // namespace Model } // namespace Chime } // namespace Aws