AWS SDK for C++  1.9.129
AWS SDK for C++
InstalledComponent.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 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetComponentName() const{ return m_componentName; }
46 
50  inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
51 
55  inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; }
56 
60  inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); }
61 
65  inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); }
66 
70  inline InstalledComponent& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;}
71 
75  inline InstalledComponent& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;}
76 
80  inline InstalledComponent& WithComponentName(const char* value) { SetComponentName(value); return *this;}
81 
82 
86  inline const Aws::String& GetComponentVersion() const{ return m_componentVersion; }
87 
91  inline bool ComponentVersionHasBeenSet() const { return m_componentVersionHasBeenSet; }
92 
96  inline void SetComponentVersion(const Aws::String& value) { m_componentVersionHasBeenSet = true; m_componentVersion = value; }
97 
101  inline void SetComponentVersion(Aws::String&& value) { m_componentVersionHasBeenSet = true; m_componentVersion = std::move(value); }
102 
106  inline void SetComponentVersion(const char* value) { m_componentVersionHasBeenSet = true; m_componentVersion.assign(value); }
107 
111  inline InstalledComponent& WithComponentVersion(const Aws::String& value) { SetComponentVersion(value); return *this;}
112 
116  inline InstalledComponent& WithComponentVersion(Aws::String&& value) { SetComponentVersion(std::move(value)); return *this;}
117 
121  inline InstalledComponent& WithComponentVersion(const char* value) { SetComponentVersion(value); return *this;}
122 
123 
127  inline const InstalledComponentLifecycleState& GetLifecycleState() const{ return m_lifecycleState; }
128 
132  inline bool LifecycleStateHasBeenSet() const { return m_lifecycleStateHasBeenSet; }
133 
137  inline void SetLifecycleState(const InstalledComponentLifecycleState& value) { m_lifecycleStateHasBeenSet = true; m_lifecycleState = value; }
138 
142  inline void SetLifecycleState(InstalledComponentLifecycleState&& value) { m_lifecycleStateHasBeenSet = true; m_lifecycleState = std::move(value); }
143 
147  inline InstalledComponent& WithLifecycleState(const InstalledComponentLifecycleState& value) { SetLifecycleState(value); return *this;}
148 
152  inline InstalledComponent& WithLifecycleState(InstalledComponentLifecycleState&& value) { SetLifecycleState(std::move(value)); return *this;}
153 
154 
158  inline const Aws::String& GetLifecycleStateDetails() const{ return m_lifecycleStateDetails; }
159 
163  inline bool LifecycleStateDetailsHasBeenSet() const { return m_lifecycleStateDetailsHasBeenSet; }
164 
168  inline void SetLifecycleStateDetails(const Aws::String& value) { m_lifecycleStateDetailsHasBeenSet = true; m_lifecycleStateDetails = value; }
169 
173  inline void SetLifecycleStateDetails(Aws::String&& value) { m_lifecycleStateDetailsHasBeenSet = true; m_lifecycleStateDetails = std::move(value); }
174 
178  inline void SetLifecycleStateDetails(const char* value) { m_lifecycleStateDetailsHasBeenSet = true; m_lifecycleStateDetails.assign(value); }
179 
183  inline InstalledComponent& WithLifecycleStateDetails(const Aws::String& value) { SetLifecycleStateDetails(value); return *this;}
184 
188  inline InstalledComponent& WithLifecycleStateDetails(Aws::String&& value) { SetLifecycleStateDetails(std::move(value)); return *this;}
189 
193  inline InstalledComponent& WithLifecycleStateDetails(const char* value) { SetLifecycleStateDetails(value); return *this;}
194 
195 
199  inline bool GetIsRoot() const{ return m_isRoot; }
200 
204  inline bool IsRootHasBeenSet() const { return m_isRootHasBeenSet; }
205 
209  inline void SetIsRoot(bool value) { m_isRootHasBeenSet = true; m_isRoot = value; }
210 
214  inline InstalledComponent& WithIsRoot(bool value) { SetIsRoot(value); return *this;}
215 
216  private:
217 
218  Aws::String m_componentName;
219  bool m_componentNameHasBeenSet;
220 
221  Aws::String m_componentVersion;
222  bool m_componentVersionHasBeenSet;
223 
224  InstalledComponentLifecycleState m_lifecycleState;
225  bool m_lifecycleStateHasBeenSet;
226 
227  Aws::String m_lifecycleStateDetails;
228  bool m_lifecycleStateDetailsHasBeenSet;
229 
230  bool m_isRoot;
231  bool m_isRootHasBeenSet;
232  };
233 
234 } // namespace Model
235 } // namespace GreengrassV2
236 } // namespace Aws
Aws::GreengrassV2::Model::InstalledComponent::SetLifecycleStateDetails
void SetLifecycleStateDetails(const char *value)
Definition: InstalledComponent.h:178
Aws::GreengrassV2::Model::InstalledComponent::WithIsRoot
InstalledComponent & WithIsRoot(bool value)
Definition: InstalledComponent.h:214
Aws::GreengrassV2::Model::InstalledComponent::SetComponentVersion
void SetComponentVersion(const Aws::String &value)
Definition: InstalledComponent.h:96
Aws::GreengrassV2::Model::InstalledComponent::LifecycleStateDetailsHasBeenSet
bool LifecycleStateDetailsHasBeenSet() const
Definition: InstalledComponent.h:163
Aws::GreengrassV2::Model::InstalledComponent::WithLifecycleStateDetails
InstalledComponent & WithLifecycleStateDetails(const Aws::String &value)
Definition: InstalledComponent.h:183
Aws::GreengrassV2::Model::InstalledComponent::operator=
InstalledComponent & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GreengrassV2::Model::InstalledComponent::WithLifecycleStateDetails
InstalledComponent & WithLifecycleStateDetails(Aws::String &&value)
Definition: InstalledComponent.h:188
Aws::GreengrassV2::Model::InstalledComponent::GetIsRoot
bool GetIsRoot() const
Definition: InstalledComponent.h:199
Aws::GreengrassV2::Model::InstalledComponent::GetLifecycleStateDetails
const Aws::String & GetLifecycleStateDetails() const
Definition: InstalledComponent.h:158
Aws::GreengrassV2::Model::InstalledComponent::WithComponentVersion
InstalledComponent & WithComponentVersion(Aws::String &&value)
Definition: InstalledComponent.h:116
Aws::GreengrassV2::Model::InstalledComponent::GetComponentName
const Aws::String & GetComponentName() const
Definition: InstalledComponent.h:45
Aws::GreengrassV2::Model::InstalledComponent::InstalledComponent
InstalledComponent()
Aws::GreengrassV2::Model::InstalledComponent::WithLifecycleState
InstalledComponent & WithLifecycleState(const InstalledComponentLifecycleState &value)
Definition: InstalledComponent.h:147
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::InstalledComponentLifecycleState
InstalledComponentLifecycleState
Definition: InstalledComponentLifecycleState.h:17
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::InstalledComponent::SetLifecycleState
void SetLifecycleState(const InstalledComponentLifecycleState &value)
Definition: InstalledComponent.h:137
Aws::GreengrassV2::Model::InstalledComponent::SetLifecycleStateDetails
void SetLifecycleStateDetails(const Aws::String &value)
Definition: InstalledComponent.h:168
Aws::GreengrassV2::Model::InstalledComponent::LifecycleStateHasBeenSet
bool LifecycleStateHasBeenSet() const
Definition: InstalledComponent.h:132
Aws::GreengrassV2::Model::InstalledComponent::GetComponentVersion
const Aws::String & GetComponentVersion() const
Definition: InstalledComponent.h:86
Aws::GreengrassV2::Model::InstalledComponent::ComponentNameHasBeenSet
bool ComponentNameHasBeenSet() const
Definition: InstalledComponent.h:50
Aws::GreengrassV2::Model::InstalledComponent::WithComponentVersion
InstalledComponent & WithComponentVersion(const char *value)
Definition: InstalledComponent.h:121
InstalledComponentLifecycleState.h
Aws::GreengrassV2::Model::InstalledComponent::SetComponentVersion
void SetComponentVersion(Aws::String &&value)
Definition: InstalledComponent.h:101
Aws::GreengrassV2::Model::InstalledComponent
Definition: InstalledComponent.h:34
Aws::GreengrassV2::Model::InstalledComponent::SetComponentVersion
void SetComponentVersion(const char *value)
Definition: InstalledComponent.h:106
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::GreengrassV2::Model::InstalledComponent::IsRootHasBeenSet
bool IsRootHasBeenSet() const
Definition: InstalledComponent.h:204
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GreengrassV2::Model::InstalledComponent::SetLifecycleState
void SetLifecycleState(InstalledComponentLifecycleState &&value)
Definition: InstalledComponent.h:142
Aws::GreengrassV2::Model::InstalledComponent::SetComponentName
void SetComponentName(const char *value)
Definition: InstalledComponent.h:65
Aws::GreengrassV2::Model::InstalledComponent::WithComponentName
InstalledComponent & WithComponentName(const char *value)
Definition: InstalledComponent.h:80
Aws::GreengrassV2::Model::InstalledComponent::WithLifecycleState
InstalledComponent & WithLifecycleState(InstalledComponentLifecycleState &&value)
Definition: InstalledComponent.h:152
Aws::GreengrassV2::Model::InstalledComponent::WithLifecycleStateDetails
InstalledComponent & WithLifecycleStateDetails(const char *value)
Definition: InstalledComponent.h:193
Aws::GreengrassV2::Model::InstalledComponent::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GreengrassV2::Model::InstalledComponent::SetComponentName
void SetComponentName(Aws::String &&value)
Definition: InstalledComponent.h:60
Aws::GreengrassV2::Model::InstalledComponent::GetLifecycleState
const InstalledComponentLifecycleState & GetLifecycleState() const
Definition: InstalledComponent.h:127
Aws::GreengrassV2::Model::InstalledComponent::InstalledComponent
InstalledComponent(Aws::Utils::Json::JsonView jsonValue)
Aws::GreengrassV2::Model::InstalledComponent::SetIsRoot
void SetIsRoot(bool value)
Definition: InstalledComponent.h:209
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GreengrassV2::Model::InstalledComponent::WithComponentName
InstalledComponent & WithComponentName(const Aws::String &value)
Definition: InstalledComponent.h:70
Aws::GreengrassV2::Model::InstalledComponent::ComponentVersionHasBeenSet
bool ComponentVersionHasBeenSet() const
Definition: InstalledComponent.h:91
Aws::GreengrassV2::Model::InstalledComponent::WithComponentVersion
InstalledComponent & WithComponentVersion(const Aws::String &value)
Definition: InstalledComponent.h:111
Aws::GreengrassV2::Model::InstalledComponent::SetLifecycleStateDetails
void SetLifecycleStateDetails(Aws::String &&value)
Definition: InstalledComponent.h:173
Aws::GreengrassV2::Model::InstalledComponent::SetComponentName
void SetComponentName(const Aws::String &value)
Definition: InstalledComponent.h:55
Aws::GreengrassV2::Model::InstalledComponent::WithComponentName
InstalledComponent & WithComponentName(Aws::String &&value)
Definition: InstalledComponent.h:75