AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UserAccessTaskItem.h
1
6#pragma once
7#include <aws/appfabric/AppFabric_EXPORTS.h>
8#include <aws/appfabric/model/TaskError.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppFabric {
21namespace Model {
22
29 public:
30 AWS_APPFABRIC_API UserAccessTaskItem() = default;
31 AWS_APPFABRIC_API UserAccessTaskItem(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetApp() const { return m_app; }
40 inline bool AppHasBeenSet() const { return m_appHasBeenSet; }
41 template <typename AppT = Aws::String>
42 void SetApp(AppT&& value) {
43 m_appHasBeenSet = true;
44 m_app = std::forward<AppT>(value);
45 }
46 template <typename AppT = Aws::String>
47 UserAccessTaskItem& WithApp(AppT&& value) {
48 SetApp(std::forward<AppT>(value));
49 return *this;
50 }
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) {
61 m_tenantIdHasBeenSet = true;
62 m_tenantId = std::forward<TenantIdT>(value);
63 }
64 template <typename TenantIdT = Aws::String>
65 UserAccessTaskItem& WithTenantId(TenantIdT&& value) {
66 SetTenantId(std::forward<TenantIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetTaskId() const { return m_taskId; }
76 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
77 template <typename TaskIdT = Aws::String>
78 void SetTaskId(TaskIdT&& value) {
79 m_taskIdHasBeenSet = true;
80 m_taskId = std::forward<TaskIdT>(value);
81 }
82 template <typename TaskIdT = Aws::String>
83 UserAccessTaskItem& WithTaskId(TaskIdT&& value) {
84 SetTaskId(std::forward<TaskIdT>(value));
85 return *this;
86 }
88
90
93 inline const TaskError& GetError() const { return m_error; }
94 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
95 template <typename ErrorT = TaskError>
96 void SetError(ErrorT&& value) {
97 m_errorHasBeenSet = true;
98 m_error = std::forward<ErrorT>(value);
99 }
100 template <typename ErrorT = TaskError>
101 UserAccessTaskItem& WithError(ErrorT&& value) {
102 SetError(std::forward<ErrorT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_app;
108
109 Aws::String m_tenantId;
110
111 Aws::String m_taskId;
112
113 TaskError m_error;
114 bool m_appHasBeenSet = false;
115 bool m_tenantIdHasBeenSet = false;
116 bool m_taskIdHasBeenSet = false;
117 bool m_errorHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace AppFabric
122} // 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