AWS SDK for C++  1.9.129
AWS SDK for C++
ComponentDependencyRequirement.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace GreengrassV2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
47  inline const Aws::String& GetVersionRequirement() const{ return m_versionRequirement; }
48 
54  inline bool VersionRequirementHasBeenSet() const { return m_versionRequirementHasBeenSet; }
55 
61  inline void SetVersionRequirement(const Aws::String& value) { m_versionRequirementHasBeenSet = true; m_versionRequirement = value; }
62 
68  inline void SetVersionRequirement(Aws::String&& value) { m_versionRequirementHasBeenSet = true; m_versionRequirement = std::move(value); }
69 
75  inline void SetVersionRequirement(const char* value) { m_versionRequirementHasBeenSet = true; m_versionRequirement.assign(value); }
76 
82  inline ComponentDependencyRequirement& WithVersionRequirement(const Aws::String& value) { SetVersionRequirement(value); return *this;}
83 
89  inline ComponentDependencyRequirement& WithVersionRequirement(Aws::String&& value) { SetVersionRequirement(std::move(value)); return *this;}
90 
96  inline ComponentDependencyRequirement& WithVersionRequirement(const char* value) { SetVersionRequirement(value); return *this;}
97 
98 
105  inline const ComponentDependencyType& GetDependencyType() const{ return m_dependencyType; }
106 
113  inline bool DependencyTypeHasBeenSet() const { return m_dependencyTypeHasBeenSet; }
114 
121  inline void SetDependencyType(const ComponentDependencyType& value) { m_dependencyTypeHasBeenSet = true; m_dependencyType = value; }
122 
129  inline void SetDependencyType(ComponentDependencyType&& value) { m_dependencyTypeHasBeenSet = true; m_dependencyType = std::move(value); }
130 
137  inline ComponentDependencyRequirement& WithDependencyType(const ComponentDependencyType& value) { SetDependencyType(value); return *this;}
138 
145  inline ComponentDependencyRequirement& WithDependencyType(ComponentDependencyType&& value) { SetDependencyType(std::move(value)); return *this;}
146 
147  private:
148 
149  Aws::String m_versionRequirement;
150  bool m_versionRequirementHasBeenSet;
151 
152  ComponentDependencyType m_dependencyType;
153  bool m_dependencyTypeHasBeenSet;
154  };
155 
156 } // namespace Model
157 } // namespace GreengrassV2
158 } // namespace Aws
Aws::GreengrassV2::Model::ComponentDependencyRequirement::SetVersionRequirement
void SetVersionRequirement(Aws::String &&value)
Definition: ComponentDependencyRequirement.h:68
Aws::GreengrassV2::Model::ComponentDependencyRequirement::SetVersionRequirement
void SetVersionRequirement(const Aws::String &value)
Definition: ComponentDependencyRequirement.h:61
Aws::GreengrassV2::Model::ComponentDependencyRequirement::WithDependencyType
ComponentDependencyRequirement & WithDependencyType(ComponentDependencyType &&value)
Definition: ComponentDependencyRequirement.h:145
ComponentDependencyType.h
Aws::GreengrassV2::Model::ComponentDependencyRequirement::WithVersionRequirement
ComponentDependencyRequirement & WithVersionRequirement(const char *value)
Definition: ComponentDependencyRequirement.h:96
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::ComponentDependencyRequirement::SetDependencyType
void SetDependencyType(ComponentDependencyType &&value)
Definition: ComponentDependencyRequirement.h:129
Aws::GreengrassV2::Model::ComponentDependencyRequirement::WithVersionRequirement
ComponentDependencyRequirement & WithVersionRequirement(Aws::String &&value)
Definition: ComponentDependencyRequirement.h:89
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::ComponentDependencyRequirement::DependencyTypeHasBeenSet
bool DependencyTypeHasBeenSet() const
Definition: ComponentDependencyRequirement.h:113
Aws::GreengrassV2::Model::ComponentDependencyRequirement::ComponentDependencyRequirement
ComponentDependencyRequirement(Aws::Utils::Json::JsonView jsonValue)
Aws::GreengrassV2::Model::ComponentDependencyRequirement::GetDependencyType
const ComponentDependencyType & GetDependencyType() const
Definition: ComponentDependencyRequirement.h:105
Aws::GreengrassV2::Model::ComponentDependencyRequirement::ComponentDependencyRequirement
ComponentDependencyRequirement()
Aws::GreengrassV2::Model::ComponentDependencyType
ComponentDependencyType
Definition: ComponentDependencyType.h:17
Aws::GreengrassV2::Model::ComponentDependencyRequirement::operator=
ComponentDependencyRequirement & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::GreengrassV2::Model::ComponentDependencyRequirement
Definition: ComponentDependencyRequirement.h:34
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GreengrassV2::Model::ComponentDependencyRequirement::VersionRequirementHasBeenSet
bool VersionRequirementHasBeenSet() const
Definition: ComponentDependencyRequirement.h:54
Aws
Definition: AccessManagementClient.h:15
Aws::GreengrassV2::Model::ComponentDependencyRequirement::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GreengrassV2::Model::ComponentDependencyRequirement::SetDependencyType
void SetDependencyType(const ComponentDependencyType &value)
Definition: ComponentDependencyRequirement.h:121
Aws::GreengrassV2::Model::ComponentDependencyRequirement::WithVersionRequirement
ComponentDependencyRequirement & WithVersionRequirement(const Aws::String &value)
Definition: ComponentDependencyRequirement.h:82
Aws::GreengrassV2::Model::ComponentDependencyRequirement::WithDependencyType
ComponentDependencyRequirement & WithDependencyType(const ComponentDependencyType &value)
Definition: ComponentDependencyRequirement.h:137
Aws::GreengrassV2::Model::ComponentDependencyRequirement::SetVersionRequirement
void SetVersionRequirement(const char *value)
Definition: ComponentDependencyRequirement.h:75
Aws::GreengrassV2::Model::ComponentDependencyRequirement::GetVersionRequirement
const Aws::String & GetVersionRequirement() const
Definition: ComponentDependencyRequirement.h:47