AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ComponentRunWith.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/greengrassv2/model/SystemResourceLimits.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 GreengrassV2
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_GREENGRASSV2_API ComponentRunWith() = default;
41 AWS_GREENGRASSV2_API ComponentRunWith(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GREENGRASSV2_API ComponentRunWith& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
59 inline const Aws::String& GetPosixUser() const { return m_posixUser; }
60 inline bool PosixUserHasBeenSet() const { return m_posixUserHasBeenSet; }
61 template<typename PosixUserT = Aws::String>
62 void SetPosixUser(PosixUserT&& value) { m_posixUserHasBeenSet = true; m_posixUser = std::forward<PosixUserT>(value); }
63 template<typename PosixUserT = Aws::String>
64 ComponentRunWith& WithPosixUser(PosixUserT&& value) { SetPosixUser(std::forward<PosixUserT>(value)); return *this;}
66
68
77 inline const SystemResourceLimits& GetSystemResourceLimits() const { return m_systemResourceLimits; }
78 inline bool SystemResourceLimitsHasBeenSet() const { return m_systemResourceLimitsHasBeenSet; }
79 template<typename SystemResourceLimitsT = SystemResourceLimits>
80 void SetSystemResourceLimits(SystemResourceLimitsT&& value) { m_systemResourceLimitsHasBeenSet = true; m_systemResourceLimits = std::forward<SystemResourceLimitsT>(value); }
81 template<typename SystemResourceLimitsT = SystemResourceLimits>
82 ComponentRunWith& WithSystemResourceLimits(SystemResourceLimitsT&& value) { SetSystemResourceLimits(std::forward<SystemResourceLimitsT>(value)); return *this;}
84
86
96 inline const Aws::String& GetWindowsUser() const { return m_windowsUser; }
97 inline bool WindowsUserHasBeenSet() const { return m_windowsUserHasBeenSet; }
98 template<typename WindowsUserT = Aws::String>
99 void SetWindowsUser(WindowsUserT&& value) { m_windowsUserHasBeenSet = true; m_windowsUser = std::forward<WindowsUserT>(value); }
100 template<typename WindowsUserT = Aws::String>
101 ComponentRunWith& WithWindowsUser(WindowsUserT&& value) { SetWindowsUser(std::forward<WindowsUserT>(value)); return *this;}
103 private:
104
105 Aws::String m_posixUser;
106 bool m_posixUserHasBeenSet = false;
107
108 SystemResourceLimits m_systemResourceLimits;
109 bool m_systemResourceLimitsHasBeenSet = false;
110
111 Aws::String m_windowsUser;
112 bool m_windowsUserHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace GreengrassV2
117} // namespace Aws
const SystemResourceLimits & GetSystemResourceLimits() const
AWS_GREENGRASSV2_API ComponentRunWith()=default
AWS_GREENGRASSV2_API ComponentRunWith & operator=(Aws::Utils::Json::JsonView jsonValue)
ComponentRunWith & WithSystemResourceLimits(SystemResourceLimitsT &&value)
void SetSystemResourceLimits(SystemResourceLimitsT &&value)
AWS_GREENGRASSV2_API ComponentRunWith(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetWindowsUser() const
ComponentRunWith & WithPosixUser(PosixUserT &&value)
ComponentRunWith & WithWindowsUser(WindowsUserT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue