AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Component.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/ComponentLatestVersion.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
33 {
34 public:
35 AWS_GREENGRASSV2_API Component() = default;
36 AWS_GREENGRASSV2_API Component(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GREENGRASSV2_API Component& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const Aws::String& GetArn() const { return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 template<typename ArnT = Aws::String>
50 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
51 template<typename ArnT = Aws::String>
52 Component& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
54
56
59 inline const Aws::String& GetComponentName() const { return m_componentName; }
60 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
61 template<typename ComponentNameT = Aws::String>
62 void SetComponentName(ComponentNameT&& value) { m_componentNameHasBeenSet = true; m_componentName = std::forward<ComponentNameT>(value); }
63 template<typename ComponentNameT = Aws::String>
64 Component& WithComponentName(ComponentNameT&& value) { SetComponentName(std::forward<ComponentNameT>(value)); return *this;}
66
68
71 inline const ComponentLatestVersion& GetLatestVersion() const { return m_latestVersion; }
72 inline bool LatestVersionHasBeenSet() const { return m_latestVersionHasBeenSet; }
73 template<typename LatestVersionT = ComponentLatestVersion>
74 void SetLatestVersion(LatestVersionT&& value) { m_latestVersionHasBeenSet = true; m_latestVersion = std::forward<LatestVersionT>(value); }
75 template<typename LatestVersionT = ComponentLatestVersion>
76 Component& WithLatestVersion(LatestVersionT&& value) { SetLatestVersion(std::forward<LatestVersionT>(value)); return *this;}
78 private:
79
80 Aws::String m_arn;
81 bool m_arnHasBeenSet = false;
82
83 Aws::String m_componentName;
84 bool m_componentNameHasBeenSet = false;
85
86 ComponentLatestVersion m_latestVersion;
87 bool m_latestVersionHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace GreengrassV2
92} // namespace Aws
AWS_GREENGRASSV2_API Component & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
Definition Component.h:47
Component & WithComponentName(ComponentNameT &&value)
Definition Component.h:64
void SetLatestVersion(LatestVersionT &&value)
Definition Component.h:74
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const ComponentLatestVersion & GetLatestVersion() const
Definition Component.h:71
Component & WithLatestVersion(LatestVersionT &&value)
Definition Component.h:76
AWS_GREENGRASSV2_API Component()=default
void SetComponentName(ComponentNameT &&value)
Definition Component.h:62
Component & WithArn(ArnT &&value)
Definition Component.h:52
AWS_GREENGRASSV2_API Component(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetComponentName() const
Definition Component.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue