AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ComponentDependencyRequirement.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/ComponentDependencyType.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 ComponentDependencyRequirement() = default;
39 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const Aws::String& GetVersionRequirement() const { return m_versionRequirement; }
49 inline bool VersionRequirementHasBeenSet() const { return m_versionRequirementHasBeenSet; }
50 template<typename VersionRequirementT = Aws::String>
51 void SetVersionRequirement(VersionRequirementT&& value) { m_versionRequirementHasBeenSet = true; m_versionRequirement = std::forward<VersionRequirementT>(value); }
52 template<typename VersionRequirementT = Aws::String>
53 ComponentDependencyRequirement& WithVersionRequirement(VersionRequirementT&& value) { SetVersionRequirement(std::forward<VersionRequirementT>(value)); return *this;}
55
57
63 inline ComponentDependencyType GetDependencyType() const { return m_dependencyType; }
64 inline bool DependencyTypeHasBeenSet() const { return m_dependencyTypeHasBeenSet; }
65 inline void SetDependencyType(ComponentDependencyType value) { m_dependencyTypeHasBeenSet = true; m_dependencyType = value; }
68 private:
69
70 Aws::String m_versionRequirement;
71 bool m_versionRequirementHasBeenSet = false;
72
74 bool m_dependencyTypeHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace GreengrassV2
79} // 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