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

A structure that specifies one user or group in the workspace.

See * Also:

AWS API * Reference

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

The ID of the user or group.

Pattern: * ^([0-9a-fA-F]{10}-|)[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$ *

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

The ID of the user or group.

Pattern: * ^([0-9a-fA-F]{10}-|)[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$ *

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

The ID of the user or group.

Pattern: * ^([0-9a-fA-F]{10}-|)[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$ *

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

The ID of the user or group.

Pattern: * ^([0-9a-fA-F]{10}-|)[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$ *

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

The ID of the user or group.

Pattern: * ^([0-9a-fA-F]{10}-|)[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$ *

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

The ID of the user or group.

Pattern: * ^([0-9a-fA-F]{10}-|)[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$ *

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

The ID of the user or group.

Pattern: * ^([0-9a-fA-F]{10}-|)[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$ *

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

The ID of the user or group.

Pattern: * ^([0-9a-fA-F]{10}-|)[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$ *

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

Specifies whether this is a single user or a group.

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

Specifies whether this is a single user or a group.

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

Specifies whether this is a single user or a group.

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

Specifies whether this is a single user or a group.

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

Specifies whether this is a single user or a group.

*/ inline User& WithType(const UserType& value) { SetType(value); return *this;} /** *

Specifies whether this is a single user or a group.

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