AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
ComponentCandidate.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/greengrassv2/GreengrassV2_EXPORTS.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
30 public:
31 AWS_GREENGRASSV2_API ComponentCandidate() = default;
32 AWS_GREENGRASSV2_API ComponentCandidate(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetComponentName() const { return m_componentName; }
41 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
42 template <typename ComponentNameT = Aws::String>
43 void SetComponentName(ComponentNameT&& value) {
44 m_componentNameHasBeenSet = true;
45 m_componentName = std::forward<ComponentNameT>(value);
46 }
47 template <typename ComponentNameT = Aws::String>
48 ComponentCandidate& WithComponentName(ComponentNameT&& value) {
49 SetComponentName(std::forward<ComponentNameT>(value));
50 return *this;
51 }
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) {
62 m_componentVersionHasBeenSet = true;
63 m_componentVersion = std::forward<ComponentVersionT>(value);
64 }
65 template <typename ComponentVersionT = Aws::String>
66 ComponentCandidate& WithComponentVersion(ComponentVersionT&& value) {
67 SetComponentVersion(std::forward<ComponentVersionT>(value));
68 return *this;
69 }
71
73
79 inline const Aws::Map<Aws::String, Aws::String>& GetVersionRequirements() const { return m_versionRequirements; }
80 inline bool VersionRequirementsHasBeenSet() const { return m_versionRequirementsHasBeenSet; }
81 template <typename VersionRequirementsT = Aws::Map<Aws::String, Aws::String>>
82 void SetVersionRequirements(VersionRequirementsT&& value) {
83 m_versionRequirementsHasBeenSet = true;
84 m_versionRequirements = std::forward<VersionRequirementsT>(value);
85 }
86 template <typename VersionRequirementsT = Aws::Map<Aws::String, Aws::String>>
87 ComponentCandidate& WithVersionRequirements(VersionRequirementsT&& value) {
88 SetVersionRequirements(std::forward<VersionRequirementsT>(value));
89 return *this;
90 }
91 template <typename VersionRequirementsKeyT = Aws::String, typename VersionRequirementsValueT = Aws::String>
92 ComponentCandidate& AddVersionRequirements(VersionRequirementsKeyT&& key, VersionRequirementsValueT&& value) {
93 m_versionRequirementsHasBeenSet = true;
94 m_versionRequirements.emplace(std::forward<VersionRequirementsKeyT>(key), std::forward<VersionRequirementsValueT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_componentName;
100
101 Aws::String m_componentVersion;
102
103 Aws::Map<Aws::String, Aws::String> m_versionRequirements;
104 bool m_componentNameHasBeenSet = false;
105 bool m_componentVersionHasBeenSet = false;
106 bool m_versionRequirementsHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace GreengrassV2
111} // 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