AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
50 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
51 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
52 inline Component& WithArn(const Aws::String& value) { SetArn(value); return *this;}
53 inline Component& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
54 inline Component& WithArn(const char* value) { SetArn(value); return *this;}
56
58
61 inline const Aws::String& GetComponentName() const{ return m_componentName; }
62 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
63 inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; }
64 inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); }
65 inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); }
66 inline Component& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;}
67 inline Component& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;}
68 inline Component& WithComponentName(const char* value) { SetComponentName(value); return *this;}
70
72
75 inline const ComponentLatestVersion& GetLatestVersion() const{ return m_latestVersion; }
76 inline bool LatestVersionHasBeenSet() const { return m_latestVersionHasBeenSet; }
77 inline void SetLatestVersion(const ComponentLatestVersion& value) { m_latestVersionHasBeenSet = true; m_latestVersion = value; }
78 inline void SetLatestVersion(ComponentLatestVersion&& value) { m_latestVersionHasBeenSet = true; m_latestVersion = std::move(value); }
79 inline Component& WithLatestVersion(const ComponentLatestVersion& value) { SetLatestVersion(value); return *this;}
80 inline Component& WithLatestVersion(ComponentLatestVersion&& value) { SetLatestVersion(std::move(value)); return *this;}
82 private:
83
84 Aws::String m_arn;
85 bool m_arnHasBeenSet = false;
86
87 Aws::String m_componentName;
88 bool m_componentNameHasBeenSet = false;
89
90 ComponentLatestVersion m_latestVersion;
91 bool m_latestVersionHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace GreengrassV2
96} // namespace Aws
AWS_GREENGRASSV2_API Component & operator=(Aws::Utils::Json::JsonView jsonValue)
Component & WithArn(const char *value)
Definition Component.h:54
const Aws::String & GetArn() const
Definition Component.h:47
Component & WithArn(Aws::String &&value)
Definition Component.h:53
Component & WithComponentName(const Aws::String &value)
Definition Component.h:66
Component & WithArn(const Aws::String &value)
Definition Component.h:52
void SetComponentName(const Aws::String &value)
Definition Component.h:63
void SetArn(const Aws::String &value)
Definition Component.h:49
void SetComponentName(Aws::String &&value)
Definition Component.h:64
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLatestVersion(const ComponentLatestVersion &value)
Definition Component.h:77
void SetLatestVersion(ComponentLatestVersion &&value)
Definition Component.h:78
Component & WithComponentName(const char *value)
Definition Component.h:68
Component & WithLatestVersion(const ComponentLatestVersion &value)
Definition Component.h:79
void SetComponentName(const char *value)
Definition Component.h:65
Component & WithLatestVersion(ComponentLatestVersion &&value)
Definition Component.h:80
const ComponentLatestVersion & GetLatestVersion() const
Definition Component.h:75
void SetArn(const char *value)
Definition Component.h:51
AWS_GREENGRASSV2_API Component(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetComponentName() const
Definition Component.h:61
AWS_GREENGRASSV2_API Component()
void SetArn(Aws::String &&value)
Definition Component.h:50
Component & WithComponentName(Aws::String &&value)
Definition Component.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue