AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPosixUser(const Aws::String& value) { m_posixUserHasBeenSet = true; m_posixUser = value; }
62 inline void SetPosixUser(Aws::String&& value) { m_posixUserHasBeenSet = true; m_posixUser = std::move(value); }
63 inline void SetPosixUser(const char* value) { m_posixUserHasBeenSet = true; m_posixUser.assign(value); }
64 inline ComponentRunWith& WithPosixUser(const Aws::String& value) { SetPosixUser(value); return *this;}
65 inline ComponentRunWith& WithPosixUser(Aws::String&& value) { SetPosixUser(std::move(value)); return *this;}
66 inline ComponentRunWith& WithPosixUser(const char* value) { SetPosixUser(value); return *this;}
68
70
79 inline const SystemResourceLimits& GetSystemResourceLimits() const{ return m_systemResourceLimits; }
80 inline bool SystemResourceLimitsHasBeenSet() const { return m_systemResourceLimitsHasBeenSet; }
81 inline void SetSystemResourceLimits(const SystemResourceLimits& value) { m_systemResourceLimitsHasBeenSet = true; m_systemResourceLimits = value; }
82 inline void SetSystemResourceLimits(SystemResourceLimits&& value) { m_systemResourceLimitsHasBeenSet = true; m_systemResourceLimits = std::move(value); }
86
88
98 inline const Aws::String& GetWindowsUser() const{ return m_windowsUser; }
99 inline bool WindowsUserHasBeenSet() const { return m_windowsUserHasBeenSet; }
100 inline void SetWindowsUser(const Aws::String& value) { m_windowsUserHasBeenSet = true; m_windowsUser = value; }
101 inline void SetWindowsUser(Aws::String&& value) { m_windowsUserHasBeenSet = true; m_windowsUser = std::move(value); }
102 inline void SetWindowsUser(const char* value) { m_windowsUserHasBeenSet = true; m_windowsUser.assign(value); }
103 inline ComponentRunWith& WithWindowsUser(const Aws::String& value) { SetWindowsUser(value); return *this;}
104 inline ComponentRunWith& WithWindowsUser(Aws::String&& value) { SetWindowsUser(std::move(value)); return *this;}
105 inline ComponentRunWith& WithWindowsUser(const char* value) { SetWindowsUser(value); return *this;}
107 private:
108
109 Aws::String m_posixUser;
110 bool m_posixUserHasBeenSet = false;
111
112 SystemResourceLimits m_systemResourceLimits;
113 bool m_systemResourceLimitsHasBeenSet = false;
114
115 Aws::String m_windowsUser;
116 bool m_windowsUserHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace GreengrassV2
121} // namespace Aws
const SystemResourceLimits & GetSystemResourceLimits() const
void SetPosixUser(const Aws::String &value)
void SetSystemResourceLimits(SystemResourceLimits &&value)
ComponentRunWith & WithSystemResourceLimits(SystemResourceLimits &&value)
void SetWindowsUser(const Aws::String &value)
ComponentRunWith & WithPosixUser(Aws::String &&value)
ComponentRunWith & WithPosixUser(const char *value)
AWS_GREENGRASSV2_API ComponentRunWith & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSystemResourceLimits(const SystemResourceLimits &value)
ComponentRunWith & WithWindowsUser(const Aws::String &value)
ComponentRunWith & WithWindowsUser(const char *value)
ComponentRunWith & WithSystemResourceLimits(const SystemResourceLimits &value)
ComponentRunWith & WithPosixUser(const Aws::String &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 & WithWindowsUser(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue