AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPosix(const PosixUser& value) { m_posixHasBeenSet = true; m_posix = value; }
49 inline void SetPosix(PosixUser&& value) { m_posixHasBeenSet = true; m_posix = std::move(value); }
50 inline JobRunAsUser& WithPosix(const PosixUser& value) { SetPosix(value); return *this;}
51 inline JobRunAsUser& WithPosix(PosixUser&& value) { SetPosix(std::move(value)); return *this;}
53
55
58 inline const WindowsUser& GetWindows() const{ return m_windows; }
59 inline bool WindowsHasBeenSet() const { return m_windowsHasBeenSet; }
60 inline void SetWindows(const WindowsUser& value) { m_windowsHasBeenSet = true; m_windows = value; }
61 inline void SetWindows(WindowsUser&& value) { m_windowsHasBeenSet = true; m_windows = std::move(value); }
62 inline JobRunAsUser& WithWindows(const WindowsUser& value) { SetWindows(value); return *this;}
63 inline JobRunAsUser& WithWindows(WindowsUser&& value) { SetWindows(std::move(value)); return *this;}
65
67
71 inline const RunAs& GetRunAs() const{ return m_runAs; }
72 inline bool RunAsHasBeenSet() const { return m_runAsHasBeenSet; }
73 inline void SetRunAs(const RunAs& value) { m_runAsHasBeenSet = true; m_runAs = value; }
74 inline void SetRunAs(RunAs&& value) { m_runAsHasBeenSet = true; m_runAs = std::move(value); }
75 inline JobRunAsUser& WithRunAs(const RunAs& value) { SetRunAs(value); return *this;}
76 inline JobRunAsUser& WithRunAs(RunAs&& value) { SetRunAs(std::move(value)); return *this;}
78 private:
79
80 PosixUser m_posix;
81 bool m_posixHasBeenSet = false;
82
83 WindowsUser m_windows;
84 bool m_windowsHasBeenSet = false;
85
86 RunAs m_runAs;
87 bool m_runAsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace deadline
92} // namespace Aws
void SetWindows(WindowsUser &&value)
void SetRunAs(const RunAs &value)
JobRunAsUser & WithPosix(PosixUser &&value)
JobRunAsUser & WithWindows(const WindowsUser &value)
void SetWindows(const WindowsUser &value)
JobRunAsUser & WithPosix(const PosixUser &value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
const PosixUser & GetPosix() const
const RunAs & GetRunAs() const
JobRunAsUser & WithWindows(WindowsUser &&value)
void SetPosix(const PosixUser &value)
const WindowsUser & GetWindows() const
JobRunAsUser & WithRunAs(RunAs &&value)
void SetPosix(PosixUser &&value)
JobRunAsUser & WithRunAs(const 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