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

The name of the attribute, which is one of the values defined in the * UserAttribute enumeration.

See Also:

AWS * API Reference

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

The identifier for the user or group associated as the resource's * delegate.

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

The identifier for the user or group associated as the resource's * delegate.

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

The identifier for the user or group associated as the resource's * delegate.

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

The identifier for the user or group associated as the resource's * delegate.

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

The identifier for the user or group associated as the resource's * delegate.

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

The identifier for the user or group associated as the resource's * delegate.

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

The identifier for the user or group associated as the resource's * delegate.

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

The identifier for the user or group associated as the resource's * delegate.

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

The type of the delegate: user or group.

*/ inline const MemberType& GetType() const{ return m_type; } /** *

The type of the delegate: user or group.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of the delegate: user or group.

*/ inline void SetType(const MemberType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of the delegate: user or group.

*/ inline void SetType(MemberType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of the delegate: user or group.

*/ inline Delegate& WithType(const MemberType& value) { SetType(value); return *this;} /** *

The type of the delegate: user or group.

*/ inline Delegate& WithType(MemberType&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; MemberType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace WorkMail } // namespace Aws