AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ComponentCandidate.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.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
34 {
35 public:
36 AWS_GREENGRASSV2_API ComponentCandidate();
37 AWS_GREENGRASSV2_API ComponentCandidate(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetComponentName() const{ return m_componentName; }
47 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
48 inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; }
49 inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); }
50 inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); }
51 inline ComponentCandidate& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;}
52 inline ComponentCandidate& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;}
53 inline ComponentCandidate& WithComponentName(const char* value) { SetComponentName(value); return *this;}
55
57
60 inline const Aws::String& GetComponentVersion() const{ return m_componentVersion; }
61 inline bool ComponentVersionHasBeenSet() const { return m_componentVersionHasBeenSet; }
62 inline void SetComponentVersion(const Aws::String& value) { m_componentVersionHasBeenSet = true; m_componentVersion = value; }
63 inline void SetComponentVersion(Aws::String&& value) { m_componentVersionHasBeenSet = true; m_componentVersion = std::move(value); }
64 inline void SetComponentVersion(const char* value) { m_componentVersionHasBeenSet = true; m_componentVersion.assign(value); }
65 inline ComponentCandidate& WithComponentVersion(const Aws::String& value) { SetComponentVersion(value); return *this;}
66 inline ComponentCandidate& WithComponentVersion(Aws::String&& value) { SetComponentVersion(std::move(value)); return *this;}
67 inline ComponentCandidate& WithComponentVersion(const char* value) { SetComponentVersion(value); return *this;}
69
71
77 inline const Aws::Map<Aws::String, Aws::String>& GetVersionRequirements() const{ return m_versionRequirements; }
78 inline bool VersionRequirementsHasBeenSet() const { return m_versionRequirementsHasBeenSet; }
79 inline void SetVersionRequirements(const Aws::Map<Aws::String, Aws::String>& value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements = value; }
80 inline void SetVersionRequirements(Aws::Map<Aws::String, Aws::String>&& value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements = std::move(value); }
83 inline ComponentCandidate& AddVersionRequirements(const Aws::String& key, const Aws::String& value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements.emplace(key, value); return *this; }
84 inline ComponentCandidate& AddVersionRequirements(Aws::String&& key, const Aws::String& value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements.emplace(std::move(key), value); return *this; }
85 inline ComponentCandidate& AddVersionRequirements(const Aws::String& key, Aws::String&& value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements.emplace(key, std::move(value)); return *this; }
86 inline ComponentCandidate& AddVersionRequirements(Aws::String&& key, Aws::String&& value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements.emplace(std::move(key), std::move(value)); return *this; }
87 inline ComponentCandidate& AddVersionRequirements(const char* key, Aws::String&& value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements.emplace(key, std::move(value)); return *this; }
88 inline ComponentCandidate& AddVersionRequirements(Aws::String&& key, const char* value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements.emplace(std::move(key), value); return *this; }
89 inline ComponentCandidate& AddVersionRequirements(const char* key, const char* value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements.emplace(key, value); return *this; }
91 private:
92
93 Aws::String m_componentName;
94 bool m_componentNameHasBeenSet = false;
95
96 Aws::String m_componentVersion;
97 bool m_componentVersionHasBeenSet = false;
98
99 Aws::Map<Aws::String, Aws::String> m_versionRequirements;
100 bool m_versionRequirementsHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace GreengrassV2
105} // namespace Aws
void SetComponentName(const Aws::String &value)
void SetVersionRequirements(const Aws::Map< Aws::String, Aws::String > &value)
ComponentCandidate & WithVersionRequirements(const Aws::Map< Aws::String, Aws::String > &value)
ComponentCandidate & WithComponentVersion(const Aws::String &value)
void SetVersionRequirements(Aws::Map< Aws::String, Aws::String > &&value)
ComponentCandidate & AddVersionRequirements(const char *key, Aws::String &&value)
ComponentCandidate & WithVersionRequirements(Aws::Map< Aws::String, Aws::String > &&value)
AWS_GREENGRASSV2_API ComponentCandidate(Aws::Utils::Json::JsonView jsonValue)
ComponentCandidate & WithComponentName(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetVersionRequirements() const
ComponentCandidate & WithComponentVersion(Aws::String &&value)
ComponentCandidate & WithComponentName(const Aws::String &value)
ComponentCandidate & AddVersionRequirements(Aws::String &&key, const Aws::String &value)
ComponentCandidate & AddVersionRequirements(const Aws::String &key, const Aws::String &value)
ComponentCandidate & AddVersionRequirements(const char *key, const char *value)
AWS_GREENGRASSV2_API ComponentCandidate & operator=(Aws::Utils::Json::JsonView jsonValue)
ComponentCandidate & AddVersionRequirements(Aws::String &&key, Aws::String &&value)
void SetComponentVersion(const Aws::String &value)
ComponentCandidate & AddVersionRequirements(Aws::String &&key, const char *value)
ComponentCandidate & WithComponentName(Aws::String &&value)
ComponentCandidate & AddVersionRequirements(const Aws::String &key, Aws::String &&value)
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
ComponentCandidate & WithComponentVersion(const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue