AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ComponentDependencyRequirement.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/ComponentDependencyType.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 ComponentDependencyRequirement() = default;
34 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::String& GetVersionRequirement() const { return m_versionRequirement; }
43 inline bool VersionRequirementHasBeenSet() const { return m_versionRequirementHasBeenSet; }
44 template <typename VersionRequirementT = Aws::String>
45 void SetVersionRequirement(VersionRequirementT&& value) {
46 m_versionRequirementHasBeenSet = true;
47 m_versionRequirement = std::forward<VersionRequirementT>(value);
48 }
49 template <typename VersionRequirementT = Aws::String>
51 SetVersionRequirement(std::forward<VersionRequirementT>(value));
52 return *this;
53 }
55
57
63 inline ComponentDependencyType GetDependencyType() const { return m_dependencyType; }
64 inline bool DependencyTypeHasBeenSet() const { return m_dependencyTypeHasBeenSet; }
66 m_dependencyTypeHasBeenSet = true;
67 m_dependencyType = value;
68 }
70 SetDependencyType(value);
71 return *this;
72 }
74 private:
75 Aws::String m_versionRequirement;
76
78 bool m_versionRequirementHasBeenSet = false;
79 bool m_dependencyTypeHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace GreengrassV2
84} // namespace Aws
ComponentDependencyRequirement & WithVersionRequirement(VersionRequirementT &&value)
AWS_GREENGRASSV2_API ComponentDependencyRequirement()=default
ComponentDependencyRequirement & WithDependencyType(ComponentDependencyType value)
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GREENGRASSV2_API ComponentDependencyRequirement(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASSV2_API ComponentDependencyRequirement & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue