/** * 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 WorkMail { namespace Model { /** *

The representation of an WorkMail user.

See Also:

AWS API * Reference

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

The identifier of the user.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The identifier of the user.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The identifier of the user.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The identifier of the user.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The identifier of the user.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The identifier of the user.

*/ inline User& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The identifier of the user.

*/ inline User& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The identifier of the user.

*/ inline User& WithId(const char* value) { SetId(value); return *this;} /** *

The email of the user.

*/ inline const Aws::String& GetEmail() const{ return m_email; } /** *

The email of the user.

*/ inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; } /** *

The email of the user.

*/ inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; } /** *

The email of the user.

*/ inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); } /** *

The email of the user.

*/ inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); } /** *

The email of the user.

*/ inline User& WithEmail(const Aws::String& value) { SetEmail(value); return *this;} /** *

The email of the user.

*/ inline User& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;} /** *

The email of the user.

*/ inline User& WithEmail(const char* value) { SetEmail(value); return *this;} /** *

The name of the user.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the user.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the user.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the user.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the user.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the user.

*/ inline User& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the user.

*/ inline User& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the user.

*/ inline User& WithName(const char* value) { SetName(value); return *this;} /** *

The display name of the user.

*/ inline const Aws::String& GetDisplayName() const{ return m_displayName; } /** *

The display name of the user.

*/ inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } /** *

The display name of the user.

*/ inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } /** *

The display name of the user.

*/ inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } /** *

The display name of the user.

*/ inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } /** *

The display name of the user.

*/ inline User& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} /** *

The display name of the user.

*/ inline User& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} /** *

The display name of the user.

*/ inline User& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} /** *

The state of the user, which can be ENABLED, DISABLED, or DELETED.

*/ inline const EntityState& GetState() const{ return m_state; } /** *

The state of the user, which can be ENABLED, DISABLED, or DELETED.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the user, which can be ENABLED, DISABLED, or DELETED.

*/ inline void SetState(const EntityState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of the user, which can be ENABLED, DISABLED, or DELETED.

*/ inline void SetState(EntityState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of the user, which can be ENABLED, DISABLED, or DELETED.

*/ inline User& WithState(const EntityState& value) { SetState(value); return *this;} /** *

The state of the user, which can be ENABLED, DISABLED, or DELETED.

*/ inline User& WithState(EntityState&& value) { SetState(std::move(value)); return *this;} /** *

The role of the user.

*/ inline const UserRole& GetUserRole() const{ return m_userRole; } /** *

The role of the user.

*/ inline bool UserRoleHasBeenSet() const { return m_userRoleHasBeenSet; } /** *

The role of the user.

*/ inline void SetUserRole(const UserRole& value) { m_userRoleHasBeenSet = true; m_userRole = value; } /** *

The role of the user.

*/ inline void SetUserRole(UserRole&& value) { m_userRoleHasBeenSet = true; m_userRole = std::move(value); } /** *

The role of the user.

*/ inline User& WithUserRole(const UserRole& value) { SetUserRole(value); return *this;} /** *

The role of the user.

*/ inline User& WithUserRole(UserRole&& value) { SetUserRole(std::move(value)); return *this;} /** *

The date indicating when the user was enabled for WorkMail use.

*/ inline const Aws::Utils::DateTime& GetEnabledDate() const{ return m_enabledDate; } /** *

The date indicating when the user was enabled for WorkMail use.

*/ inline bool EnabledDateHasBeenSet() const { return m_enabledDateHasBeenSet; } /** *

The date indicating when the user was enabled for WorkMail use.

*/ inline void SetEnabledDate(const Aws::Utils::DateTime& value) { m_enabledDateHasBeenSet = true; m_enabledDate = value; } /** *

The date indicating when the user was enabled for WorkMail use.

*/ inline void SetEnabledDate(Aws::Utils::DateTime&& value) { m_enabledDateHasBeenSet = true; m_enabledDate = std::move(value); } /** *

The date indicating when the user was enabled for WorkMail use.

*/ inline User& WithEnabledDate(const Aws::Utils::DateTime& value) { SetEnabledDate(value); return *this;} /** *

The date indicating when the user was enabled for WorkMail use.

*/ inline User& WithEnabledDate(Aws::Utils::DateTime&& value) { SetEnabledDate(std::move(value)); return *this;} /** *

The date indicating when the user was disabled from WorkMail use.

*/ inline const Aws::Utils::DateTime& GetDisabledDate() const{ return m_disabledDate; } /** *

The date indicating when the user was disabled from WorkMail use.

*/ inline bool DisabledDateHasBeenSet() const { return m_disabledDateHasBeenSet; } /** *

The date indicating when the user was disabled from WorkMail use.

*/ inline void SetDisabledDate(const Aws::Utils::DateTime& value) { m_disabledDateHasBeenSet = true; m_disabledDate = value; } /** *

The date indicating when the user was disabled from WorkMail use.

*/ inline void SetDisabledDate(Aws::Utils::DateTime&& value) { m_disabledDateHasBeenSet = true; m_disabledDate = std::move(value); } /** *

The date indicating when the user was disabled from WorkMail use.

*/ inline User& WithDisabledDate(const Aws::Utils::DateTime& value) { SetDisabledDate(value); return *this;} /** *

The date indicating when the user was disabled from WorkMail use.

*/ inline User& WithDisabledDate(Aws::Utils::DateTime&& value) { SetDisabledDate(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_email; bool m_emailHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_displayName; bool m_displayNameHasBeenSet = false; EntityState m_state; bool m_stateHasBeenSet = false; UserRole m_userRole; bool m_userRoleHasBeenSet = false; Aws::Utils::DateTime m_enabledDate; bool m_enabledDateHasBeenSet = false; Aws::Utils::DateTime m_disabledDate; bool m_disabledDateHasBeenSet = false; }; } // namespace Model } // namespace WorkMail } // namespace Aws