/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The representation of an WorkMail group.See Also:
AWS API
* Reference
The identifier of the group.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The identifier of the group.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The identifier of the group.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The identifier of the group.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The identifier of the group.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The identifier of the group.
*/ inline Group& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The identifier of the group.
*/ inline Group& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The identifier of the group.
*/ inline Group& WithId(const char* value) { SetId(value); return *this;} /** *The email of the group.
*/ inline const Aws::String& GetEmail() const{ return m_email; } /** *The email of the group.
*/ inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; } /** *The email of the group.
*/ inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; } /** *The email of the group.
*/ inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); } /** *The email of the group.
*/ inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); } /** *The email of the group.
*/ inline Group& WithEmail(const Aws::String& value) { SetEmail(value); return *this;} /** *The email of the group.
*/ inline Group& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;} /** *The email of the group.
*/ inline Group& WithEmail(const char* value) { SetEmail(value); return *this;} /** *The name of the group.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the group.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the group.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the group.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the group.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the group.
*/ inline Group& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the group.
*/ inline Group& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the group.
*/ inline Group& WithName(const char* value) { SetName(value); return *this;} /** *The state of the group, which can be ENABLED, DISABLED, or DELETED.
*/ inline const EntityState& GetState() const{ return m_state; } /** *The state of the group, which can be ENABLED, DISABLED, or DELETED.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The state of the group, which can be ENABLED, DISABLED, or DELETED.
*/ inline void SetState(const EntityState& value) { m_stateHasBeenSet = true; m_state = value; } /** *The state of the group, which can be ENABLED, DISABLED, or DELETED.
*/ inline void SetState(EntityState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The state of the group, which can be ENABLED, DISABLED, or DELETED.
*/ inline Group& WithState(const EntityState& value) { SetState(value); return *this;} /** *The state of the group, which can be ENABLED, DISABLED, or DELETED.
*/ inline Group& WithState(EntityState&& value) { SetState(std::move(value)); return *this;} /** *The date indicating when the group was enabled for WorkMail use.
*/ inline const Aws::Utils::DateTime& GetEnabledDate() const{ return m_enabledDate; } /** *The date indicating when the group was enabled for WorkMail use.
*/ inline bool EnabledDateHasBeenSet() const { return m_enabledDateHasBeenSet; } /** *The date indicating when the group was enabled for WorkMail use.
*/ inline void SetEnabledDate(const Aws::Utils::DateTime& value) { m_enabledDateHasBeenSet = true; m_enabledDate = value; } /** *The date indicating when the group 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 group was enabled for WorkMail use.
*/ inline Group& WithEnabledDate(const Aws::Utils::DateTime& value) { SetEnabledDate(value); return *this;} /** *The date indicating when the group was enabled for WorkMail use.
*/ inline Group& WithEnabledDate(Aws::Utils::DateTime&& value) { SetEnabledDate(std::move(value)); return *this;} /** *The date indicating when the group was disabled from WorkMail use.
*/ inline const Aws::Utils::DateTime& GetDisabledDate() const{ return m_disabledDate; } /** *The date indicating when the group was disabled from WorkMail use.
*/ inline bool DisabledDateHasBeenSet() const { return m_disabledDateHasBeenSet; } /** *The date indicating when the group was disabled from WorkMail use.
*/ inline void SetDisabledDate(const Aws::Utils::DateTime& value) { m_disabledDateHasBeenSet = true; m_disabledDate = value; } /** *The date indicating when the group 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 group was disabled from WorkMail use.
*/ inline Group& WithDisabledDate(const Aws::Utils::DateTime& value) { SetDisabledDate(value); return *this;} /** *The date indicating when the group was disabled from WorkMail use.
*/ inline Group& 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; EntityState m_state; bool m_stateHasBeenSet = 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