AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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/WindowsUser.h>
10#include <aws/deadline/model/RunAs.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace deadline
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_DEADLINE_API JobRunAsUser() = default;
37 AWS_DEADLINE_API JobRunAsUser(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const PosixUser& GetPosix() const { return m_posix; }
47 inline bool PosixHasBeenSet() const { return m_posixHasBeenSet; }
48 template<typename PosixT = PosixUser>
49 void SetPosix(PosixT&& value) { m_posixHasBeenSet = true; m_posix = std::forward<PosixT>(value); }
50 template<typename PosixT = PosixUser>
51 JobRunAsUser& WithPosix(PosixT&& value) { SetPosix(std::forward<PosixT>(value)); return *this;}
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) { m_windowsHasBeenSet = true; m_windows = std::forward<WindowsT>(value); }
62 template<typename WindowsT = WindowsUser>
63 JobRunAsUser& WithWindows(WindowsT&& value) { SetWindows(std::forward<WindowsT>(value)); return *this;}
65
67
71 inline RunAs GetRunAs() const { return m_runAs; }
72 inline bool RunAsHasBeenSet() const { return m_runAsHasBeenSet; }
73 inline void SetRunAs(RunAs value) { m_runAsHasBeenSet = true; m_runAs = value; }
74 inline JobRunAsUser& WithRunAs(RunAs value) { SetRunAs(value); return *this;}
76 private:
77
78 PosixUser m_posix;
79 bool m_posixHasBeenSet = false;
80
81 WindowsUser m_windows;
82 bool m_windowsHasBeenSet = false;
83
84 RunAs m_runAs{RunAs::NOT_SET};
85 bool m_runAsHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace deadline
90} // 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