AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
Component.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/ComponentLatestVersion.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
28class Component {
29 public:
30 AWS_GREENGRASSV2_API Component() = default;
31 AWS_GREENGRASSV2_API Component(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GREENGRASSV2_API Component& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
49 Component& WithArn(ArnT&& value) {
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
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) {
63 m_componentNameHasBeenSet = true;
64 m_componentName = std::forward<ComponentNameT>(value);
65 }
66 template <typename ComponentNameT = Aws::String>
67 Component& WithComponentName(ComponentNameT&& value) {
68 SetComponentName(std::forward<ComponentNameT>(value));
69 return *this;
70 }
72
74
77 inline const ComponentLatestVersion& GetLatestVersion() const { return m_latestVersion; }
78 inline bool LatestVersionHasBeenSet() const { return m_latestVersionHasBeenSet; }
79 template <typename LatestVersionT = ComponentLatestVersion>
80 void SetLatestVersion(LatestVersionT&& value) {
81 m_latestVersionHasBeenSet = true;
82 m_latestVersion = std::forward<LatestVersionT>(value);
83 }
84 template <typename LatestVersionT = ComponentLatestVersion>
85 Component& WithLatestVersion(LatestVersionT&& value) {
86 SetLatestVersion(std::forward<LatestVersionT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_arn;
92
93 Aws::String m_componentName;
94
95 ComponentLatestVersion m_latestVersion;
96 bool m_arnHasBeenSet = false;
97 bool m_componentNameHasBeenSet = false;
98 bool m_latestVersionHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace GreengrassV2
103} // namespace Aws
AWS_GREENGRASSV2_API Component & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
Definition Component.h:41
Component & WithComponentName(ComponentNameT &&value)
Definition Component.h:67
void SetLatestVersion(LatestVersionT &&value)
Definition Component.h:80
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const ComponentLatestVersion & GetLatestVersion() const
Definition Component.h:77
Component & WithLatestVersion(LatestVersionT &&value)
Definition Component.h:85
AWS_GREENGRASSV2_API Component()=default
void SetComponentName(ComponentNameT &&value)
Definition Component.h:62
Component & WithArn(ArnT &&value)
Definition Component.h:49
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