AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UserAccessTaskItem.h
1
6#pragma once
7#include <aws/appfabric/AppFabric_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appfabric/model/TaskError.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppFabric
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_APPFABRIC_API UserAccessTaskItem() = default;
36 AWS_APPFABRIC_API UserAccessTaskItem(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetApp() const { return m_app; }
46 inline bool AppHasBeenSet() const { return m_appHasBeenSet; }
47 template<typename AppT = Aws::String>
48 void SetApp(AppT&& value) { m_appHasBeenSet = true; m_app = std::forward<AppT>(value); }
49 template<typename AppT = Aws::String>
50 UserAccessTaskItem& WithApp(AppT&& value) { SetApp(std::forward<AppT>(value)); return *this;}
52
54
57 inline const Aws::String& GetTenantId() const { return m_tenantId; }
58 inline bool TenantIdHasBeenSet() const { return m_tenantIdHasBeenSet; }
59 template<typename TenantIdT = Aws::String>
60 void SetTenantId(TenantIdT&& value) { m_tenantIdHasBeenSet = true; m_tenantId = std::forward<TenantIdT>(value); }
61 template<typename TenantIdT = Aws::String>
62 UserAccessTaskItem& WithTenantId(TenantIdT&& value) { SetTenantId(std::forward<TenantIdT>(value)); return *this;}
64
66
69 inline const Aws::String& GetTaskId() const { return m_taskId; }
70 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
71 template<typename TaskIdT = Aws::String>
72 void SetTaskId(TaskIdT&& value) { m_taskIdHasBeenSet = true; m_taskId = std::forward<TaskIdT>(value); }
73 template<typename TaskIdT = Aws::String>
74 UserAccessTaskItem& WithTaskId(TaskIdT&& value) { SetTaskId(std::forward<TaskIdT>(value)); return *this;}
76
78
81 inline const TaskError& GetError() const { return m_error; }
82 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
83 template<typename ErrorT = TaskError>
84 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
85 template<typename ErrorT = TaskError>
86 UserAccessTaskItem& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
88 private:
89
90 Aws::String m_app;
91 bool m_appHasBeenSet = false;
92
93 Aws::String m_tenantId;
94 bool m_tenantIdHasBeenSet = false;
95
96 Aws::String m_taskId;
97 bool m_taskIdHasBeenSet = false;
98
99 TaskError m_error;
100 bool m_errorHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace AppFabric
105} // namespace Aws
UserAccessTaskItem & WithTenantId(TenantIdT &&value)
UserAccessTaskItem & WithTaskId(TaskIdT &&value)
UserAccessTaskItem & WithError(ErrorT &&value)
AWS_APPFABRIC_API UserAccessTaskItem(Aws::Utils::Json::JsonView jsonValue)
UserAccessTaskItem & WithApp(AppT &&value)
AWS_APPFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPFABRIC_API UserAccessTaskItem()=default
AWS_APPFABRIC_API UserAccessTaskItem & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue