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

Contains information about a user access task.

See Also:

AWS * API Reference

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

The name of the application.

*/ inline const Aws::String& GetApp() const{ return m_app; } /** *

The name of the application.

*/ inline bool AppHasBeenSet() const { return m_appHasBeenSet; } /** *

The name of the application.

*/ inline void SetApp(const Aws::String& value) { m_appHasBeenSet = true; m_app = value; } /** *

The name of the application.

*/ inline void SetApp(Aws::String&& value) { m_appHasBeenSet = true; m_app = std::move(value); } /** *

The name of the application.

*/ inline void SetApp(const char* value) { m_appHasBeenSet = true; m_app.assign(value); } /** *

The name of the application.

*/ inline UserAccessTaskItem& WithApp(const Aws::String& value) { SetApp(value); return *this;} /** *

The name of the application.

*/ inline UserAccessTaskItem& WithApp(Aws::String&& value) { SetApp(std::move(value)); return *this;} /** *

The name of the application.

*/ inline UserAccessTaskItem& WithApp(const char* value) { SetApp(value); return *this;} /** *

The ID of the application tenant.

*/ inline const Aws::String& GetTenantId() const{ return m_tenantId; } /** *

The ID of the application tenant.

*/ inline bool TenantIdHasBeenSet() const { return m_tenantIdHasBeenSet; } /** *

The ID of the application tenant.

*/ inline void SetTenantId(const Aws::String& value) { m_tenantIdHasBeenSet = true; m_tenantId = value; } /** *

The ID of the application tenant.

*/ inline void SetTenantId(Aws::String&& value) { m_tenantIdHasBeenSet = true; m_tenantId = std::move(value); } /** *

The ID of the application tenant.

*/ inline void SetTenantId(const char* value) { m_tenantIdHasBeenSet = true; m_tenantId.assign(value); } /** *

The ID of the application tenant.

*/ inline UserAccessTaskItem& WithTenantId(const Aws::String& value) { SetTenantId(value); return *this;} /** *

The ID of the application tenant.

*/ inline UserAccessTaskItem& WithTenantId(Aws::String&& value) { SetTenantId(std::move(value)); return *this;} /** *

The ID of the application tenant.

*/ inline UserAccessTaskItem& WithTenantId(const char* value) { SetTenantId(value); return *this;} /** *

The unique ID of the task.

*/ inline const Aws::String& GetTaskId() const{ return m_taskId; } /** *

The unique ID of the task.

*/ inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; } /** *

The unique ID of the task.

*/ inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; } /** *

The unique ID of the task.

*/ inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); } /** *

The unique ID of the task.

*/ inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); } /** *

The unique ID of the task.

*/ inline UserAccessTaskItem& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;} /** *

The unique ID of the task.

*/ inline UserAccessTaskItem& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;} /** *

The unique ID of the task.

*/ inline UserAccessTaskItem& WithTaskId(const char* value) { SetTaskId(value); return *this;} /** *

Error from the task, if any.

*/ inline const TaskError& GetError() const{ return m_error; } /** *

Error from the task, if any.

*/ inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } /** *

Error from the task, if any.

*/ inline void SetError(const TaskError& value) { m_errorHasBeenSet = true; m_error = value; } /** *

Error from the task, if any.

*/ inline void SetError(TaskError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } /** *

Error from the task, if any.

*/ inline UserAccessTaskItem& WithError(const TaskError& value) { SetError(value); return *this;} /** *

Error from the task, if any.

*/ inline UserAccessTaskItem& WithError(TaskError&& value) { SetError(std::move(value)); return *this;} private: Aws::String m_app; bool m_appHasBeenSet = false; Aws::String m_tenantId; bool m_tenantIdHasBeenSet = false; Aws::String m_taskId; bool m_taskIdHasBeenSet = false; TaskError m_error; bool m_errorHasBeenSet = false; }; } // namespace Model } // namespace AppFabric } // namespace Aws