/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An impersonation role for the given WorkMail organization.See
* Also:
AWS
* API Reference
The identifier of the impersonation role.
*/ inline const Aws::String& GetImpersonationRoleId() const{ return m_impersonationRoleId; } /** *The identifier of the impersonation role.
*/ inline bool ImpersonationRoleIdHasBeenSet() const { return m_impersonationRoleIdHasBeenSet; } /** *The identifier of the impersonation role.
*/ inline void SetImpersonationRoleId(const Aws::String& value) { m_impersonationRoleIdHasBeenSet = true; m_impersonationRoleId = value; } /** *The identifier of the impersonation role.
*/ inline void SetImpersonationRoleId(Aws::String&& value) { m_impersonationRoleIdHasBeenSet = true; m_impersonationRoleId = std::move(value); } /** *The identifier of the impersonation role.
*/ inline void SetImpersonationRoleId(const char* value) { m_impersonationRoleIdHasBeenSet = true; m_impersonationRoleId.assign(value); } /** *The identifier of the impersonation role.
*/ inline ImpersonationRole& WithImpersonationRoleId(const Aws::String& value) { SetImpersonationRoleId(value); return *this;} /** *The identifier of the impersonation role.
*/ inline ImpersonationRole& WithImpersonationRoleId(Aws::String&& value) { SetImpersonationRoleId(std::move(value)); return *this;} /** *The identifier of the impersonation role.
*/ inline ImpersonationRole& WithImpersonationRoleId(const char* value) { SetImpersonationRoleId(value); return *this;} /** *The impersonation role name.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The impersonation role name.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The impersonation role name.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The impersonation role name.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The impersonation role name.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The impersonation role name.
*/ inline ImpersonationRole& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The impersonation role name.
*/ inline ImpersonationRole& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The impersonation role name.
*/ inline ImpersonationRole& WithName(const char* value) { SetName(value); return *this;} /** *The impersonation role type.
*/ inline const ImpersonationRoleType& GetType() const{ return m_type; } /** *The impersonation role type.
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *The impersonation role type.
*/ inline void SetType(const ImpersonationRoleType& value) { m_typeHasBeenSet = true; m_type = value; } /** *The impersonation role type.
*/ inline void SetType(ImpersonationRoleType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *The impersonation role type.
*/ inline ImpersonationRole& WithType(const ImpersonationRoleType& value) { SetType(value); return *this;} /** *The impersonation role type.
*/ inline ImpersonationRole& WithType(ImpersonationRoleType&& value) { SetType(std::move(value)); return *this;} /** *The date when the impersonation role was created.
*/ inline const Aws::Utils::DateTime& GetDateCreated() const{ return m_dateCreated; } /** *The date when the impersonation role was created.
*/ inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; } /** *The date when the impersonation role was created.
*/ inline void SetDateCreated(const Aws::Utils::DateTime& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; } /** *The date when the impersonation role was created.
*/ inline void SetDateCreated(Aws::Utils::DateTime&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::move(value); } /** *The date when the impersonation role was created.
*/ inline ImpersonationRole& WithDateCreated(const Aws::Utils::DateTime& value) { SetDateCreated(value); return *this;} /** *The date when the impersonation role was created.
*/ inline ImpersonationRole& WithDateCreated(Aws::Utils::DateTime&& value) { SetDateCreated(std::move(value)); return *this;} /** *The date when the impersonation role was last modified.
*/ inline const Aws::Utils::DateTime& GetDateModified() const{ return m_dateModified; } /** *The date when the impersonation role was last modified.
*/ inline bool DateModifiedHasBeenSet() const { return m_dateModifiedHasBeenSet; } /** *The date when the impersonation role was last modified.
*/ inline void SetDateModified(const Aws::Utils::DateTime& value) { m_dateModifiedHasBeenSet = true; m_dateModified = value; } /** *The date when the impersonation role was last modified.
*/ inline void SetDateModified(Aws::Utils::DateTime&& value) { m_dateModifiedHasBeenSet = true; m_dateModified = std::move(value); } /** *The date when the impersonation role was last modified.
*/ inline ImpersonationRole& WithDateModified(const Aws::Utils::DateTime& value) { SetDateModified(value); return *this;} /** *The date when the impersonation role was last modified.
*/ inline ImpersonationRole& WithDateModified(Aws::Utils::DateTime&& value) { SetDateModified(std::move(value)); return *this;} private: Aws::String m_impersonationRoleId; bool m_impersonationRoleIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; ImpersonationRoleType m_type; bool m_typeHasBeenSet = false; Aws::Utils::DateTime m_dateCreated; bool m_dateCreatedHasBeenSet = false; Aws::Utils::DateTime m_dateModified; bool m_dateModifiedHasBeenSet = false; }; } // namespace Model } // namespace WorkMail } // namespace Aws