AWS SDK for C++  1.9.129
AWS SDK for C++
ComponentRunWith.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace GreengrassV2
23 {
24 namespace Model
25 {
26 
38  {
39  public:
44 
45 
57  inline const Aws::String& GetPosixUser() const{ return m_posixUser; }
58 
70  inline bool PosixUserHasBeenSet() const { return m_posixUserHasBeenSet; }
71 
83  inline void SetPosixUser(const Aws::String& value) { m_posixUserHasBeenSet = true; m_posixUser = value; }
84 
96  inline void SetPosixUser(Aws::String&& value) { m_posixUserHasBeenSet = true; m_posixUser = std::move(value); }
97 
109  inline void SetPosixUser(const char* value) { m_posixUserHasBeenSet = true; m_posixUser.assign(value); }
110 
122  inline ComponentRunWith& WithPosixUser(const Aws::String& value) { SetPosixUser(value); return *this;}
123 
135  inline ComponentRunWith& WithPosixUser(Aws::String&& value) { SetPosixUser(std::move(value)); return *this;}
136 
148  inline ComponentRunWith& WithPosixUser(const char* value) { SetPosixUser(value); return *this;}
149 
150 
159  inline const SystemResourceLimits& GetSystemResourceLimits() const{ return m_systemResourceLimits; }
160 
169  inline bool SystemResourceLimitsHasBeenSet() const { return m_systemResourceLimitsHasBeenSet; }
170 
179  inline void SetSystemResourceLimits(const SystemResourceLimits& value) { m_systemResourceLimitsHasBeenSet = true; m_systemResourceLimits = value; }
180 
189  inline void SetSystemResourceLimits(SystemResourceLimits&& value) { m_systemResourceLimitsHasBeenSet = true; m_systemResourceLimits = std::move(value); }
190 
199  inline ComponentRunWith& WithSystemResourceLimits(const SystemResourceLimits& value) { SetSystemResourceLimits(value); return *this;}
200 
209  inline ComponentRunWith& WithSystemResourceLimits(SystemResourceLimits&& value) { SetSystemResourceLimits(std::move(value)); return *this;}
210 
211  private:
212 
213  Aws::String m_posixUser;
214  bool m_posixUserHasBeenSet;
215 
216  SystemResourceLimits m_systemResourceLimits;
217  bool m_systemResourceLimitsHasBeenSet;
218  };
219 
220 } // namespace Model
221 } // namespace GreengrassV2
222 } // namespace Aws
Aws::GreengrassV2::Model::ComponentRunWith::SystemResourceLimitsHasBeenSet
bool SystemResourceLimitsHasBeenSet() const
Definition: ComponentRunWith.h:169
Aws::GreengrassV2::Model::ComponentRunWith::WithPosixUser
ComponentRunWith & WithPosixUser(const char *value)
Definition: ComponentRunWith.h:148
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::ComponentRunWith::SetPosixUser
void SetPosixUser(const char *value)
Definition: ComponentRunWith.h:109
Aws::GreengrassV2::Model::ComponentRunWith::SetSystemResourceLimits
void SetSystemResourceLimits(const SystemResourceLimits &value)
Definition: ComponentRunWith.h:179
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::ComponentRunWith::WithPosixUser
ComponentRunWith & WithPosixUser(const Aws::String &value)
Definition: ComponentRunWith.h:122
Aws::GreengrassV2::Model::ComponentRunWith::SetSystemResourceLimits
void SetSystemResourceLimits(SystemResourceLimits &&value)
Definition: ComponentRunWith.h:189
Aws::GreengrassV2::Model::ComponentRunWith::SetPosixUser
void SetPosixUser(const Aws::String &value)
Definition: ComponentRunWith.h:83
Aws::GreengrassV2::Model::ComponentRunWith::WithPosixUser
ComponentRunWith & WithPosixUser(Aws::String &&value)
Definition: ComponentRunWith.h:135
Aws::GreengrassV2::Model::ComponentRunWith::GetPosixUser
const Aws::String & GetPosixUser() const
Definition: ComponentRunWith.h:57
Aws::GreengrassV2::Model::ComponentRunWith::ComponentRunWith
ComponentRunWith(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GreengrassV2::Model::ComponentRunWith::SetPosixUser
void SetPosixUser(Aws::String &&value)
Definition: ComponentRunWith.h:96
SystemResourceLimits.h
Aws::GreengrassV2::Model::ComponentRunWith::PosixUserHasBeenSet
bool PosixUserHasBeenSet() const
Definition: ComponentRunWith.h:70
Aws::GreengrassV2::Model::ComponentRunWith::operator=
ComponentRunWith & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::GreengrassV2::Model::ComponentRunWith
Definition: ComponentRunWith.h:38
Aws::GreengrassV2::Model::ComponentRunWith::WithSystemResourceLimits
ComponentRunWith & WithSystemResourceLimits(SystemResourceLimits &&value)
Definition: ComponentRunWith.h:209
Aws::GreengrassV2::Model::ComponentRunWith::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GreengrassV2::Model::SystemResourceLimits
Definition: SystemResourceLimits.h:33
Aws::GreengrassV2::Model::ComponentRunWith::WithSystemResourceLimits
ComponentRunWith & WithSystemResourceLimits(const SystemResourceLimits &value)
Definition: ComponentRunWith.h:199
Aws::GreengrassV2::Model::ComponentRunWith::GetSystemResourceLimits
const SystemResourceLimits & GetSystemResourceLimits() const
Definition: ComponentRunWith.h:159
Aws::GreengrassV2::Model::ComponentRunWith::ComponentRunWith
ComponentRunWith()