AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
JobRunAsUser.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/deadline/model/PosixUser.h>
9#include <aws/deadline/model/RunAs.h>
10#include <aws/deadline/model/WindowsUser.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace deadline {
22namespace Model {
23
30 public:
31 AWS_DEADLINE_API JobRunAsUser() = default;
32 AWS_DEADLINE_API JobRunAsUser(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const PosixUser& GetPosix() const { return m_posix; }
41 inline bool PosixHasBeenSet() const { return m_posixHasBeenSet; }
42 template <typename PosixT = PosixUser>
43 void SetPosix(PosixT&& value) {
44 m_posixHasBeenSet = true;
45 m_posix = std::forward<PosixT>(value);
46 }
47 template <typename PosixT = PosixUser>
48 JobRunAsUser& WithPosix(PosixT&& value) {
49 SetPosix(std::forward<PosixT>(value));
50 return *this;
51 }
53
55
58 inline const WindowsUser& GetWindows() const { return m_windows; }
59 inline bool WindowsHasBeenSet() const { return m_windowsHasBeenSet; }
60 template <typename WindowsT = WindowsUser>
61 void SetWindows(WindowsT&& value) {
62 m_windowsHasBeenSet = true;
63 m_windows = std::forward<WindowsT>(value);
64 }
65 template <typename WindowsT = WindowsUser>
66 JobRunAsUser& WithWindows(WindowsT&& value) {
67 SetWindows(std::forward<WindowsT>(value));
68 return *this;
69 }
71
73
77 inline RunAs GetRunAs() const { return m_runAs; }
78 inline bool RunAsHasBeenSet() const { return m_runAsHasBeenSet; }
79 inline void SetRunAs(RunAs value) {
80 m_runAsHasBeenSet = true;
81 m_runAs = value;
82 }
83 inline JobRunAsUser& WithRunAs(RunAs value) {
84 SetRunAs(value);
85 return *this;
86 }
88 private:
89 PosixUser m_posix;
90
91 WindowsUser m_windows;
92
93 RunAs m_runAs{RunAs::NOT_SET};
94 bool m_posixHasBeenSet = false;
95 bool m_windowsHasBeenSet = false;
96 bool m_runAsHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace deadline
101} // namespace Aws
void SetWindows(WindowsT &&value)
JobRunAsUser & WithWindows(WindowsT &&value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
JobRunAsUser & WithPosix(PosixT &&value)
const PosixUser & GetPosix() const
AWS_DEADLINE_API JobRunAsUser()=default
const WindowsUser & GetWindows() const
JobRunAsUser & WithRunAs(RunAs value)
AWS_DEADLINE_API JobRunAsUser(Aws::Utils::Json::JsonView jsonValue)
AWS_DEADLINE_API JobRunAsUser & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue