AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ComponentNameT = Aws::String>
49 void SetComponentName(ComponentNameT&& value) { m_componentNameHasBeenSet = true; m_componentName = std::forward<ComponentNameT>(value); }
50 template<typename ComponentNameT = Aws::String>
51 ComponentCandidate& WithComponentName(ComponentNameT&& value) { SetComponentName(std::forward<ComponentNameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetComponentVersion() const { return m_componentVersion; }
59 inline bool ComponentVersionHasBeenSet() const { return m_componentVersionHasBeenSet; }
60 template<typename ComponentVersionT = Aws::String>
61 void SetComponentVersion(ComponentVersionT&& value) { m_componentVersionHasBeenSet = true; m_componentVersion = std::forward<ComponentVersionT>(value); }
62 template<typename ComponentVersionT = Aws::String>
63 ComponentCandidate& WithComponentVersion(ComponentVersionT&& value) { SetComponentVersion(std::forward<ComponentVersionT>(value)); return *this;}
65
67
73 inline const Aws::Map<Aws::String, Aws::String>& GetVersionRequirements() const { return m_versionRequirements; }
74 inline bool VersionRequirementsHasBeenSet() const { return m_versionRequirementsHasBeenSet; }
75 template<typename VersionRequirementsT = Aws::Map<Aws::String, Aws::String>>
76 void SetVersionRequirements(VersionRequirementsT&& value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements = std::forward<VersionRequirementsT>(value); }
77 template<typename VersionRequirementsT = Aws::Map<Aws::String, Aws::String>>
78 ComponentCandidate& WithVersionRequirements(VersionRequirementsT&& value) { SetVersionRequirements(std::forward<VersionRequirementsT>(value)); return *this;}
79 template<typename VersionRequirementsKeyT = Aws::String, typename VersionRequirementsValueT = Aws::String>
80 ComponentCandidate& AddVersionRequirements(VersionRequirementsKeyT&& key, VersionRequirementsValueT&& value) {
81 m_versionRequirementsHasBeenSet = true; m_versionRequirements.emplace(std::forward<VersionRequirementsKeyT>(key), std::forward<VersionRequirementsValueT>(value)); return *this;
82 }
84 private:
85
86 Aws::String m_componentName;
87 bool m_componentNameHasBeenSet = false;
88
89 Aws::String m_componentVersion;
90 bool m_componentVersionHasBeenSet = false;
91
92 Aws::Map<Aws::String, Aws::String> m_versionRequirements;
93 bool m_versionRequirementsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace GreengrassV2
98} // namespace Aws
ComponentCandidate & WithComponentVersion(ComponentVersionT &&value)
ComponentCandidate & WithVersionRequirements(VersionRequirementsT &&value)
AWS_GREENGRASSV2_API ComponentCandidate(Aws::Utils::Json::JsonView jsonValue)
void SetVersionRequirements(VersionRequirementsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetVersionRequirements() const
AWS_GREENGRASSV2_API ComponentCandidate()=default
ComponentCandidate & WithComponentName(ComponentNameT &&value)
AWS_GREENGRASSV2_API ComponentCandidate & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetComponentVersion(ComponentVersionT &&value)
ComponentCandidate & AddVersionRequirements(VersionRequirementsKeyT &&key, VersionRequirementsValueT &&value)
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
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