AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetApp(const Aws::String& value) { m_appHasBeenSet = true; m_app = value; }
48 inline void SetApp(Aws::String&& value) { m_appHasBeenSet = true; m_app = std::move(value); }
49 inline void SetApp(const char* value) { m_appHasBeenSet = true; m_app.assign(value); }
50 inline UserAccessTaskItem& WithApp(const Aws::String& value) { SetApp(value); return *this;}
51 inline UserAccessTaskItem& WithApp(Aws::String&& value) { SetApp(std::move(value)); return *this;}
52 inline UserAccessTaskItem& WithApp(const char* value) { SetApp(value); return *this;}
54
56
59 inline const Aws::String& GetTenantId() const{ return m_tenantId; }
60 inline bool TenantIdHasBeenSet() const { return m_tenantIdHasBeenSet; }
61 inline void SetTenantId(const Aws::String& value) { m_tenantIdHasBeenSet = true; m_tenantId = value; }
62 inline void SetTenantId(Aws::String&& value) { m_tenantIdHasBeenSet = true; m_tenantId = std::move(value); }
63 inline void SetTenantId(const char* value) { m_tenantIdHasBeenSet = true; m_tenantId.assign(value); }
64 inline UserAccessTaskItem& WithTenantId(const Aws::String& value) { SetTenantId(value); return *this;}
65 inline UserAccessTaskItem& WithTenantId(Aws::String&& value) { SetTenantId(std::move(value)); return *this;}
66 inline UserAccessTaskItem& WithTenantId(const char* value) { SetTenantId(value); return *this;}
68
70
73 inline const Aws::String& GetTaskId() const{ return m_taskId; }
74 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
75 inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
76 inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); }
77 inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
78 inline UserAccessTaskItem& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
79 inline UserAccessTaskItem& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
80 inline UserAccessTaskItem& WithTaskId(const char* value) { SetTaskId(value); return *this;}
82
84
87 inline const TaskError& GetError() const{ return m_error; }
88 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
89 inline void SetError(const TaskError& value) { m_errorHasBeenSet = true; m_error = value; }
90 inline void SetError(TaskError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
91 inline UserAccessTaskItem& WithError(const TaskError& value) { SetError(value); return *this;}
92 inline UserAccessTaskItem& WithError(TaskError&& value) { SetError(std::move(value)); return *this;}
94 private:
95
96 Aws::String m_app;
97 bool m_appHasBeenSet = false;
98
99 Aws::String m_tenantId;
100 bool m_tenantIdHasBeenSet = false;
101
102 Aws::String m_taskId;
103 bool m_taskIdHasBeenSet = false;
104
105 TaskError m_error;
106 bool m_errorHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace AppFabric
111} // namespace Aws
AWS_APPFABRIC_API UserAccessTaskItem(Aws::Utils::Json::JsonView jsonValue)
UserAccessTaskItem & WithTaskId(Aws::String &&value)
UserAccessTaskItem & WithError(const TaskError &value)
UserAccessTaskItem & WithTenantId(const Aws::String &value)
void SetTaskId(const Aws::String &value)
UserAccessTaskItem & WithApp(const char *value)
AWS_APPFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const
UserAccessTaskItem & WithTaskId(const Aws::String &value)
UserAccessTaskItem & WithTenantId(Aws::String &&value)
void SetTenantId(const Aws::String &value)
UserAccessTaskItem & WithTaskId(const char *value)
UserAccessTaskItem & WithApp(const Aws::String &value)
void SetApp(const Aws::String &value)
UserAccessTaskItem & WithError(TaskError &&value)
UserAccessTaskItem & WithTenantId(const char *value)
AWS_APPFABRIC_API UserAccessTaskItem & operator=(Aws::Utils::Json::JsonView jsonValue)
UserAccessTaskItem & WithApp(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue