AWS SDK for C++  1.9.129
AWS SDK for C++
Component.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 
33  {
34  public:
39 
40 
46  inline const Aws::String& GetArn() const{ return m_arn; }
47 
53  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
54 
60  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
61 
67  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
68 
74  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
75 
81  inline Component& WithArn(const Aws::String& value) { SetArn(value); return *this;}
82 
88  inline Component& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
89 
95  inline Component& WithArn(const char* value) { SetArn(value); return *this;}
96 
97 
101  inline const Aws::String& GetComponentName() const{ return m_componentName; }
102 
106  inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
107 
111  inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; }
112 
116  inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); }
117 
121  inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); }
122 
126  inline Component& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;}
127 
131  inline Component& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;}
132 
136  inline Component& WithComponentName(const char* value) { SetComponentName(value); return *this;}
137 
138 
142  inline const ComponentLatestVersion& GetLatestVersion() const{ return m_latestVersion; }
143 
147  inline bool LatestVersionHasBeenSet() const { return m_latestVersionHasBeenSet; }
148 
152  inline void SetLatestVersion(const ComponentLatestVersion& value) { m_latestVersionHasBeenSet = true; m_latestVersion = value; }
153 
157  inline void SetLatestVersion(ComponentLatestVersion&& value) { m_latestVersionHasBeenSet = true; m_latestVersion = std::move(value); }
158 
162  inline Component& WithLatestVersion(const ComponentLatestVersion& value) { SetLatestVersion(value); return *this;}
163 
167  inline Component& WithLatestVersion(ComponentLatestVersion&& value) { SetLatestVersion(std::move(value)); return *this;}
168 
169  private:
170 
171  Aws::String m_arn;
172  bool m_arnHasBeenSet;
173 
174  Aws::String m_componentName;
175  bool m_componentNameHasBeenSet;
176 
177  ComponentLatestVersion m_latestVersion;
178  bool m_latestVersionHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace GreengrassV2
183 } // namespace Aws
Aws::GreengrassV2::Model::Component::operator=
Component & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GreengrassV2::Model::Component::WithLatestVersion
Component & WithLatestVersion(ComponentLatestVersion &&value)
Definition: Component.h:167
Aws::GreengrassV2::Model::Component::WithArn
Component & WithArn(Aws::String &&value)
Definition: Component.h:88
Aws::GreengrassV2::Model::Component::SetLatestVersion
void SetLatestVersion(const ComponentLatestVersion &value)
Definition: Component.h:152
Aws::GreengrassV2::Model::Component::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GreengrassV2::Model::Component::ComponentNameHasBeenSet
bool ComponentNameHasBeenSet() const
Definition: Component.h:106
Aws::GreengrassV2::Model::Component::SetArn
void SetArn(const char *value)
Definition: Component.h:74
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::Component::WithArn
Component & WithArn(const Aws::String &value)
Definition: Component.h:81
Aws::GreengrassV2::Model::Component::WithComponentName
Component & WithComponentName(const Aws::String &value)
Definition: Component.h:126
Aws::GreengrassV2::Model::Component::SetComponentName
void SetComponentName(const char *value)
Definition: Component.h:121
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::ComponentLatestVersion
Definition: ComponentLatestVersion.h:36
Aws::GreengrassV2::Model::Component::Component
Component()
Aws::GreengrassV2::Model::Component::SetComponentName
void SetComponentName(const Aws::String &value)
Definition: Component.h:111
Aws::GreengrassV2::Model::Component::GetArn
const Aws::String & GetArn() const
Definition: Component.h:46
Aws::GreengrassV2::Model::Component::GetLatestVersion
const ComponentLatestVersion & GetLatestVersion() const
Definition: Component.h:142
Aws::GreengrassV2::Model::Component::SetLatestVersion
void SetLatestVersion(ComponentLatestVersion &&value)
Definition: Component.h:157
Aws::GreengrassV2::Model::Component::Component
Component(Aws::Utils::Json::JsonView jsonValue)
Aws::GreengrassV2::Model::Component::WithArn
Component & WithArn(const char *value)
Definition: Component.h:95
Aws::GreengrassV2::Model::Component::GetComponentName
const Aws::String & GetComponentName() const
Definition: Component.h:101
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GreengrassV2::Model::Component::WithLatestVersion
Component & WithLatestVersion(const ComponentLatestVersion &value)
Definition: Component.h:162
Aws::GreengrassV2::Model::Component::SetArn
void SetArn(const Aws::String &value)
Definition: Component.h:60
Aws::GreengrassV2::Model::Component::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: Component.h:53
ComponentLatestVersion.h
Aws::GreengrassV2::Model::Component
Definition: Component.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GreengrassV2::Model::Component::SetComponentName
void SetComponentName(Aws::String &&value)
Definition: Component.h:116
Aws::GreengrassV2::Model::Component::WithComponentName
Component & WithComponentName(const char *value)
Definition: Component.h:136
Aws::GreengrassV2::Model::Component::LatestVersionHasBeenSet
bool LatestVersionHasBeenSet() const
Definition: Component.h:147
Aws::GreengrassV2::Model::Component::SetArn
void SetArn(Aws::String &&value)
Definition: Component.h:67
Aws::GreengrassV2::Model::Component::WithComponentName
Component & WithComponentName(Aws::String &&value)
Definition: Component.h:131