AWS SDK for C++  1.9.122
AWS SDK for C++
ComponentCandidate.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 
45  inline const Aws::String& GetComponentName() const{ return m_componentName; }
46 
50  inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
51 
55  inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; }
56 
60  inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); }
61 
65  inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); }
66 
70  inline ComponentCandidate& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;}
71 
75  inline ComponentCandidate& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;}
76 
80  inline ComponentCandidate& WithComponentName(const char* value) { SetComponentName(value); return *this;}
81 
82 
86  inline const Aws::String& GetComponentVersion() const{ return m_componentVersion; }
87 
91  inline bool ComponentVersionHasBeenSet() const { return m_componentVersionHasBeenSet; }
92 
96  inline void SetComponentVersion(const Aws::String& value) { m_componentVersionHasBeenSet = true; m_componentVersion = value; }
97 
101  inline void SetComponentVersion(Aws::String&& value) { m_componentVersionHasBeenSet = true; m_componentVersion = std::move(value); }
102 
106  inline void SetComponentVersion(const char* value) { m_componentVersionHasBeenSet = true; m_componentVersion.assign(value); }
107 
111  inline ComponentCandidate& WithComponentVersion(const Aws::String& value) { SetComponentVersion(value); return *this;}
112 
116  inline ComponentCandidate& WithComponentVersion(Aws::String&& value) { SetComponentVersion(std::move(value)); return *this;}
117 
121  inline ComponentCandidate& WithComponentVersion(const char* value) { SetComponentVersion(value); return *this;}
122 
123 
130  inline const Aws::Map<Aws::String, Aws::String>& GetVersionRequirements() const{ return m_versionRequirements; }
131 
138  inline bool VersionRequirementsHasBeenSet() const { return m_versionRequirementsHasBeenSet; }
139 
146  inline void SetVersionRequirements(const Aws::Map<Aws::String, Aws::String>& value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements = value; }
147 
154  inline void SetVersionRequirements(Aws::Map<Aws::String, Aws::String>&& value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements = std::move(value); }
155 
162  inline ComponentCandidate& WithVersionRequirements(const Aws::Map<Aws::String, Aws::String>& value) { SetVersionRequirements(value); return *this;}
163 
170  inline ComponentCandidate& WithVersionRequirements(Aws::Map<Aws::String, Aws::String>&& value) { SetVersionRequirements(std::move(value)); return *this;}
171 
178  inline ComponentCandidate& AddVersionRequirements(const Aws::String& key, const Aws::String& value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements.emplace(key, value); return *this; }
179 
186  inline ComponentCandidate& AddVersionRequirements(Aws::String&& key, const Aws::String& value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements.emplace(std::move(key), value); return *this; }
187 
194  inline ComponentCandidate& AddVersionRequirements(const Aws::String& key, Aws::String&& value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements.emplace(key, std::move(value)); return *this; }
195 
202  inline ComponentCandidate& AddVersionRequirements(Aws::String&& key, Aws::String&& value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements.emplace(std::move(key), std::move(value)); return *this; }
203 
210  inline ComponentCandidate& AddVersionRequirements(const char* key, Aws::String&& value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements.emplace(key, std::move(value)); return *this; }
211 
218  inline ComponentCandidate& AddVersionRequirements(Aws::String&& key, const char* value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements.emplace(std::move(key), value); return *this; }
219 
226  inline ComponentCandidate& AddVersionRequirements(const char* key, const char* value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements.emplace(key, value); return *this; }
227 
228  private:
229 
230  Aws::String m_componentName;
231  bool m_componentNameHasBeenSet;
232 
233  Aws::String m_componentVersion;
234  bool m_componentVersionHasBeenSet;
235 
236  Aws::Map<Aws::String, Aws::String> m_versionRequirements;
237  bool m_versionRequirementsHasBeenSet;
238  };
239 
240 } // namespace Model
241 } // namespace GreengrassV2
242 } // namespace Aws
Aws::GreengrassV2::Model::ComponentCandidate::GetComponentVersion
const Aws::String & GetComponentVersion() const
Definition: ComponentCandidate.h:86
Aws::GreengrassV2::Model::ComponentCandidate::VersionRequirementsHasBeenSet
bool VersionRequirementsHasBeenSet() const
Definition: ComponentCandidate.h:138
Aws::GreengrassV2::Model::ComponentCandidate::WithVersionRequirements
ComponentCandidate & WithVersionRequirements(Aws::Map< Aws::String, Aws::String > &&value)
Definition: ComponentCandidate.h:170
Aws::GreengrassV2::Model::ComponentCandidate::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GreengrassV2::Model::ComponentCandidate::AddVersionRequirements
ComponentCandidate & AddVersionRequirements(const char *key, Aws::String &&value)
Definition: ComponentCandidate.h:210
Aws::GreengrassV2::Model::ComponentCandidate::GetComponentName
const Aws::String & GetComponentName() const
Definition: ComponentCandidate.h:45
Aws::GreengrassV2::Model::ComponentCandidate::SetVersionRequirements
void SetVersionRequirements(const Aws::Map< Aws::String, Aws::String > &value)
Definition: ComponentCandidate.h:146
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::ComponentCandidate::SetVersionRequirements
void SetVersionRequirements(Aws::Map< Aws::String, Aws::String > &&value)
Definition: ComponentCandidate.h:154
Aws::GreengrassV2::Model::ComponentCandidate::WithComponentName
ComponentCandidate & WithComponentName(const char *value)
Definition: ComponentCandidate.h:80
Aws::GreengrassV2::Model::ComponentCandidate::GetVersionRequirements
const Aws::Map< Aws::String, Aws::String > & GetVersionRequirements() const
Definition: ComponentCandidate.h:130
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::ComponentCandidate::ComponentCandidate
ComponentCandidate()
Aws::GreengrassV2::Model::ComponentCandidate::ComponentVersionHasBeenSet
bool ComponentVersionHasBeenSet() const
Definition: ComponentCandidate.h:91
Aws::GreengrassV2::Model::ComponentCandidate::SetComponentName
void SetComponentName(const char *value)
Definition: ComponentCandidate.h:65
Aws::GreengrassV2::Model::ComponentCandidate::SetComponentVersion
void SetComponentVersion(const Aws::String &value)
Definition: ComponentCandidate.h:96
Aws::GreengrassV2::Model::ComponentCandidate::AddVersionRequirements
ComponentCandidate & AddVersionRequirements(const Aws::String &key, const Aws::String &value)
Definition: ComponentCandidate.h:178
Aws::GreengrassV2::Model::ComponentCandidate::ComponentCandidate
ComponentCandidate(Aws::Utils::Json::JsonView jsonValue)
Aws::GreengrassV2::Model::ComponentCandidate::WithComponentName
ComponentCandidate & WithComponentName(const Aws::String &value)
Definition: ComponentCandidate.h:70
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::GreengrassV2::Model::ComponentCandidate::AddVersionRequirements
ComponentCandidate & AddVersionRequirements(Aws::String &&key, Aws::String &&value)
Definition: ComponentCandidate.h:202
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GreengrassV2::Model::ComponentCandidate::WithComponentVersion
ComponentCandidate & WithComponentVersion(const Aws::String &value)
Definition: ComponentCandidate.h:111
Aws::GreengrassV2::Model::ComponentCandidate::SetComponentVersion
void SetComponentVersion(const char *value)
Definition: ComponentCandidate.h:106
Aws::GreengrassV2::Model::ComponentCandidate::operator=
ComponentCandidate & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GreengrassV2::Model::ComponentCandidate::AddVersionRequirements
ComponentCandidate & AddVersionRequirements(const Aws::String &key, Aws::String &&value)
Definition: ComponentCandidate.h:194
Aws::GreengrassV2::Model::ComponentCandidate::AddVersionRequirements
ComponentCandidate & AddVersionRequirements(const char *key, const char *value)
Definition: ComponentCandidate.h:226
Aws::GreengrassV2::Model::ComponentCandidate::SetComponentVersion
void SetComponentVersion(Aws::String &&value)
Definition: ComponentCandidate.h:101
Aws::GreengrassV2::Model::ComponentCandidate::SetComponentName
void SetComponentName(Aws::String &&value)
Definition: ComponentCandidate.h:60
Aws::GreengrassV2::Model::ComponentCandidate::ComponentNameHasBeenSet
bool ComponentNameHasBeenSet() const
Definition: ComponentCandidate.h:50
Aws::GreengrassV2::Model::ComponentCandidate::WithComponentVersion
ComponentCandidate & WithComponentVersion(const char *value)
Definition: ComponentCandidate.h:121
Aws::GreengrassV2::Model::ComponentCandidate::AddVersionRequirements
ComponentCandidate & AddVersionRequirements(Aws::String &&key, const Aws::String &value)
Definition: ComponentCandidate.h:186
Aws
Definition: AccessManagementClient.h:15
Aws::GreengrassV2::Model::ComponentCandidate::WithComponentVersion
ComponentCandidate & WithComponentVersion(Aws::String &&value)
Definition: ComponentCandidate.h:116
Aws::GreengrassV2::Model::ComponentCandidate::SetComponentName
void SetComponentName(const Aws::String &value)
Definition: ComponentCandidate.h:55
Aws::GreengrassV2::Model::ComponentCandidate::AddVersionRequirements
ComponentCandidate & AddVersionRequirements(Aws::String &&key, const char *value)
Definition: ComponentCandidate.h:218
Aws::GreengrassV2::Model::ComponentCandidate
Definition: ComponentCandidate.h:34
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GreengrassV2::Model::ComponentCandidate::WithVersionRequirements
ComponentCandidate & WithVersionRequirements(const Aws::Map< Aws::String, Aws::String > &value)
Definition: ComponentCandidate.h:162
AWSMap.h
Aws::GreengrassV2::Model::ComponentCandidate::WithComponentName
ComponentCandidate & WithComponentName(Aws::String &&value)
Definition: ComponentCandidate.h:75
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19