AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ComponentRunWith.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
9#include <aws/greengrassv2/model/SystemResourceLimits.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GreengrassV2 {
21namespace Model {
22
34 public:
35 AWS_GREENGRASSV2_API ComponentRunWith() = default;
36 AWS_GREENGRASSV2_API ComponentRunWith(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GREENGRASSV2_API ComponentRunWith& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
53 inline const Aws::String& GetPosixUser() const { return m_posixUser; }
54 inline bool PosixUserHasBeenSet() const { return m_posixUserHasBeenSet; }
55 template <typename PosixUserT = Aws::String>
56 void SetPosixUser(PosixUserT&& value) {
57 m_posixUserHasBeenSet = true;
58 m_posixUser = std::forward<PosixUserT>(value);
59 }
60 template <typename PosixUserT = Aws::String>
61 ComponentRunWith& WithPosixUser(PosixUserT&& value) {
62 SetPosixUser(std::forward<PosixUserT>(value));
63 return *this;
64 }
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) {
81 m_systemResourceLimitsHasBeenSet = true;
82 m_systemResourceLimits = std::forward<SystemResourceLimitsT>(value);
83 }
84 template <typename SystemResourceLimitsT = SystemResourceLimits>
85 ComponentRunWith& WithSystemResourceLimits(SystemResourceLimitsT&& value) {
86 SetSystemResourceLimits(std::forward<SystemResourceLimitsT>(value));
87 return *this;
88 }
90
92
102 inline const Aws::String& GetWindowsUser() const { return m_windowsUser; }
103 inline bool WindowsUserHasBeenSet() const { return m_windowsUserHasBeenSet; }
104 template <typename WindowsUserT = Aws::String>
105 void SetWindowsUser(WindowsUserT&& value) {
106 m_windowsUserHasBeenSet = true;
107 m_windowsUser = std::forward<WindowsUserT>(value);
108 }
109 template <typename WindowsUserT = Aws::String>
110 ComponentRunWith& WithWindowsUser(WindowsUserT&& value) {
111 SetWindowsUser(std::forward<WindowsUserT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_posixUser;
117
118 SystemResourceLimits m_systemResourceLimits;
119
120 Aws::String m_windowsUser;
121 bool m_posixUserHasBeenSet = false;
122 bool m_systemResourceLimitsHasBeenSet = false;
123 bool m_windowsUserHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace GreengrassV2
128} // 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
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