AWS SDK for C++  1.9.129
AWS SDK for C++
CloudComponentStatus.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace GreengrassV2
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const CloudComponentState& GetComponentState() const{ return m_componentState; }
47 
51  inline bool ComponentStateHasBeenSet() const { return m_componentStateHasBeenSet; }
52 
56  inline void SetComponentState(const CloudComponentState& value) { m_componentStateHasBeenSet = true; m_componentState = value; }
57 
61  inline void SetComponentState(CloudComponentState&& value) { m_componentStateHasBeenSet = true; m_componentState = std::move(value); }
62 
66  inline CloudComponentStatus& WithComponentState(const CloudComponentState& value) { SetComponentState(value); return *this;}
67 
71  inline CloudComponentStatus& WithComponentState(CloudComponentState&& value) { SetComponentState(std::move(value)); return *this;}
72 
73 
78  inline const Aws::String& GetMessage() const{ return m_message; }
79 
84  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
85 
90  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
91 
96  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
97 
102  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
103 
108  inline CloudComponentStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
109 
114  inline CloudComponentStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
115 
120  inline CloudComponentStatus& WithMessage(const char* value) { SetMessage(value); return *this;}
121 
122 
129  inline const Aws::Map<Aws::String, Aws::String>& GetErrors() const{ return m_errors; }
130 
137  inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
138 
145  inline void SetErrors(const Aws::Map<Aws::String, Aws::String>& value) { m_errorsHasBeenSet = true; m_errors = value; }
146 
153  inline void SetErrors(Aws::Map<Aws::String, Aws::String>&& value) { m_errorsHasBeenSet = true; m_errors = std::move(value); }
154 
161  inline CloudComponentStatus& WithErrors(const Aws::Map<Aws::String, Aws::String>& value) { SetErrors(value); return *this;}
162 
169  inline CloudComponentStatus& WithErrors(Aws::Map<Aws::String, Aws::String>&& value) { SetErrors(std::move(value)); return *this;}
170 
177  inline CloudComponentStatus& AddErrors(const Aws::String& key, const Aws::String& value) { m_errorsHasBeenSet = true; m_errors.emplace(key, value); return *this; }
178 
185  inline CloudComponentStatus& AddErrors(Aws::String&& key, const Aws::String& value) { m_errorsHasBeenSet = true; m_errors.emplace(std::move(key), value); return *this; }
186 
193  inline CloudComponentStatus& AddErrors(const Aws::String& key, Aws::String&& value) { m_errorsHasBeenSet = true; m_errors.emplace(key, std::move(value)); return *this; }
194 
201  inline CloudComponentStatus& AddErrors(Aws::String&& key, Aws::String&& value) { m_errorsHasBeenSet = true; m_errors.emplace(std::move(key), std::move(value)); return *this; }
202 
209  inline CloudComponentStatus& AddErrors(const char* key, Aws::String&& value) { m_errorsHasBeenSet = true; m_errors.emplace(key, std::move(value)); return *this; }
210 
217  inline CloudComponentStatus& AddErrors(Aws::String&& key, const char* value) { m_errorsHasBeenSet = true; m_errors.emplace(std::move(key), value); return *this; }
218 
225  inline CloudComponentStatus& AddErrors(const char* key, const char* value) { m_errorsHasBeenSet = true; m_errors.emplace(key, value); return *this; }
226 
227  private:
228 
229  CloudComponentState m_componentState;
230  bool m_componentStateHasBeenSet;
231 
232  Aws::String m_message;
233  bool m_messageHasBeenSet;
234 
236  bool m_errorsHasBeenSet;
237  };
238 
239 } // namespace Model
240 } // namespace GreengrassV2
241 } // namespace Aws
Aws::GreengrassV2::Model::CloudComponentStatus::WithMessage
CloudComponentStatus & WithMessage(const Aws::String &value)
Definition: CloudComponentStatus.h:108
Aws::GreengrassV2::Model::CloudComponentStatus::WithMessage
CloudComponentStatus & WithMessage(Aws::String &&value)
Definition: CloudComponentStatus.h:114
Aws::GreengrassV2::Model::CloudComponentStatus::AddErrors
CloudComponentStatus & AddErrors(Aws::String &&key, const Aws::String &value)
Definition: CloudComponentStatus.h:185
Aws::GreengrassV2::Model::CloudComponentStatus::SetComponentState
void SetComponentState(const CloudComponentState &value)
Definition: CloudComponentStatus.h:56
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::CloudComponentStatus::WithErrors
CloudComponentStatus & WithErrors(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CloudComponentStatus.h:169
Aws::GreengrassV2::Model::CloudComponentStatus::AddErrors
CloudComponentStatus & AddErrors(const char *key, const char *value)
Definition: CloudComponentStatus.h:225
Aws::GreengrassV2::Model::CloudComponentStatus::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: CloudComponentStatus.h:84
Aws::GreengrassV2::Model::CloudComponentStatus::SetMessage
void SetMessage(const char *value)
Definition: CloudComponentStatus.h:102
Aws::GreengrassV2::Model::CloudComponentStatus::SetMessage
void SetMessage(const Aws::String &value)
Definition: CloudComponentStatus.h:90
Aws::GreengrassV2::Model::CloudComponentStatus::ComponentStateHasBeenSet
bool ComponentStateHasBeenSet() const
Definition: CloudComponentStatus.h:51
Aws::GreengrassV2::Model::CloudComponentStatus::SetMessage
void SetMessage(Aws::String &&value)
Definition: CloudComponentStatus.h:96
Aws::GreengrassV2::Model::CloudComponentStatus::GetComponentState
const CloudComponentState & GetComponentState() const
Definition: CloudComponentStatus.h:46
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::CloudComponentStatus::SetErrors
void SetErrors(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CloudComponentStatus.h:153
Aws::GreengrassV2::Model::CloudComponentStatus::ErrorsHasBeenSet
bool ErrorsHasBeenSet() const
Definition: CloudComponentStatus.h:137
Aws::GreengrassV2::Model::CloudComponentStatus::GetMessage
const Aws::String & GetMessage() const
Definition: CloudComponentStatus.h:78
Aws::GreengrassV2::Model::CloudComponentStatus::operator=
CloudComponentStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GreengrassV2::Model::CloudComponentStatus::GetErrors
const Aws::Map< Aws::String, Aws::String > & GetErrors() const
Definition: CloudComponentStatus.h:129
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::GreengrassV2::Model::CloudComponentStatus::WithComponentState
CloudComponentStatus & WithComponentState(CloudComponentState &&value)
Definition: CloudComponentStatus.h:71
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GreengrassV2::Model::CloudComponentStatus::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GreengrassV2::Model::CloudComponentStatus::AddErrors
CloudComponentStatus & AddErrors(const Aws::String &key, const Aws::String &value)
Definition: CloudComponentStatus.h:177
Aws::GreengrassV2::Model::CloudComponentStatus::AddErrors
CloudComponentStatus & AddErrors(const char *key, Aws::String &&value)
Definition: CloudComponentStatus.h:209
Aws::GreengrassV2::Model::CloudComponentStatus::AddErrors
CloudComponentStatus & AddErrors(const Aws::String &key, Aws::String &&value)
Definition: CloudComponentStatus.h:193
Aws::GreengrassV2::Model::CloudComponentStatus
Definition: CloudComponentStatus.h:35
Aws
Definition: AccessManagementClient.h:15
Aws::GreengrassV2::Model::CloudComponentStatus::WithErrors
CloudComponentStatus & WithErrors(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CloudComponentStatus.h:161
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GreengrassV2::Model::CloudComponentStatus::SetComponentState
void SetComponentState(CloudComponentState &&value)
Definition: CloudComponentStatus.h:61
Aws::GreengrassV2::Model::CloudComponentStatus::SetErrors
void SetErrors(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CloudComponentStatus.h:145
Aws::GreengrassV2::Model::CloudComponentStatus::WithComponentState
CloudComponentStatus & WithComponentState(const CloudComponentState &value)
Definition: CloudComponentStatus.h:66
Aws::GreengrassV2::Model::CloudComponentState
CloudComponentState
Definition: CloudComponentState.h:17
AWSMap.h
Aws::GreengrassV2::Model::CloudComponentStatus::WithMessage
CloudComponentStatus & WithMessage(const char *value)
Definition: CloudComponentStatus.h:120
CloudComponentState.h
Aws::GreengrassV2::Model::CloudComponentStatus::AddErrors
CloudComponentStatus & AddErrors(Aws::String &&key, const char *value)
Definition: CloudComponentStatus.h:217
Aws::GreengrassV2::Model::CloudComponentStatus::AddErrors
CloudComponentStatus & AddErrors(Aws::String &&key, Aws::String &&value)
Definition: CloudComponentStatus.h:201
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::GreengrassV2::Model::CloudComponentStatus::CloudComponentStatus
CloudComponentStatus()
Aws::GreengrassV2::Model::CloudComponentStatus::CloudComponentStatus
CloudComponentStatus(Aws::Utils::Json::JsonView jsonValue)