AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CloudComponentStatus.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
8#include <aws/greengrassv2/model/CloudComponentState.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/greengrassv2/model/VendorGuidance.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GreengrassV2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_GREENGRASSV2_API CloudComponentStatus();
39 AWS_GREENGRASSV2_API CloudComponentStatus(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const CloudComponentState& GetComponentState() const{ return m_componentState; }
49 inline bool ComponentStateHasBeenSet() const { return m_componentStateHasBeenSet; }
50 inline void SetComponentState(const CloudComponentState& value) { m_componentStateHasBeenSet = true; m_componentState = value; }
51 inline void SetComponentState(CloudComponentState&& value) { m_componentStateHasBeenSet = true; m_componentState = std::move(value); }
53 inline CloudComponentStatus& WithComponentState(CloudComponentState&& value) { SetComponentState(std::move(value)); return *this;}
55
57
61 inline const Aws::String& GetMessage() const{ return m_message; }
62 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
63 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
64 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
65 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
66 inline CloudComponentStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
67 inline CloudComponentStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
68 inline CloudComponentStatus& WithMessage(const char* value) { SetMessage(value); return *this;}
70
72
78 inline const Aws::Map<Aws::String, Aws::String>& GetErrors() const{ return m_errors; }
79 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
80 inline void SetErrors(const Aws::Map<Aws::String, Aws::String>& value) { m_errorsHasBeenSet = true; m_errors = value; }
81 inline void SetErrors(Aws::Map<Aws::String, Aws::String>&& value) { m_errorsHasBeenSet = true; m_errors = std::move(value); }
82 inline CloudComponentStatus& WithErrors(const Aws::Map<Aws::String, Aws::String>& value) { SetErrors(value); return *this;}
83 inline CloudComponentStatus& WithErrors(Aws::Map<Aws::String, Aws::String>&& value) { SetErrors(std::move(value)); return *this;}
84 inline CloudComponentStatus& AddErrors(const Aws::String& key, const Aws::String& value) { m_errorsHasBeenSet = true; m_errors.emplace(key, value); return *this; }
85 inline CloudComponentStatus& AddErrors(Aws::String&& key, const Aws::String& value) { m_errorsHasBeenSet = true; m_errors.emplace(std::move(key), value); return *this; }
86 inline CloudComponentStatus& AddErrors(const Aws::String& key, Aws::String&& value) { m_errorsHasBeenSet = true; m_errors.emplace(key, std::move(value)); return *this; }
87 inline CloudComponentStatus& AddErrors(Aws::String&& key, Aws::String&& value) { m_errorsHasBeenSet = true; m_errors.emplace(std::move(key), std::move(value)); return *this; }
88 inline CloudComponentStatus& AddErrors(const char* key, Aws::String&& value) { m_errorsHasBeenSet = true; m_errors.emplace(key, std::move(value)); return *this; }
89 inline CloudComponentStatus& AddErrors(Aws::String&& key, const char* value) { m_errorsHasBeenSet = true; m_errors.emplace(std::move(key), value); return *this; }
90 inline CloudComponentStatus& AddErrors(const char* key, const char* value) { m_errorsHasBeenSet = true; m_errors.emplace(key, value); return *this; }
92
94
106 inline const VendorGuidance& GetVendorGuidance() const{ return m_vendorGuidance; }
107 inline bool VendorGuidanceHasBeenSet() const { return m_vendorGuidanceHasBeenSet; }
108 inline void SetVendorGuidance(const VendorGuidance& value) { m_vendorGuidanceHasBeenSet = true; m_vendorGuidance = value; }
109 inline void SetVendorGuidance(VendorGuidance&& value) { m_vendorGuidanceHasBeenSet = true; m_vendorGuidance = std::move(value); }
110 inline CloudComponentStatus& WithVendorGuidance(const VendorGuidance& value) { SetVendorGuidance(value); return *this;}
111 inline CloudComponentStatus& WithVendorGuidance(VendorGuidance&& value) { SetVendorGuidance(std::move(value)); return *this;}
113
115
120 inline const Aws::String& GetVendorGuidanceMessage() const{ return m_vendorGuidanceMessage; }
121 inline bool VendorGuidanceMessageHasBeenSet() const { return m_vendorGuidanceMessageHasBeenSet; }
122 inline void SetVendorGuidanceMessage(const Aws::String& value) { m_vendorGuidanceMessageHasBeenSet = true; m_vendorGuidanceMessage = value; }
123 inline void SetVendorGuidanceMessage(Aws::String&& value) { m_vendorGuidanceMessageHasBeenSet = true; m_vendorGuidanceMessage = std::move(value); }
124 inline void SetVendorGuidanceMessage(const char* value) { m_vendorGuidanceMessageHasBeenSet = true; m_vendorGuidanceMessage.assign(value); }
126 inline CloudComponentStatus& WithVendorGuidanceMessage(Aws::String&& value) { SetVendorGuidanceMessage(std::move(value)); return *this;}
127 inline CloudComponentStatus& WithVendorGuidanceMessage(const char* value) { SetVendorGuidanceMessage(value); return *this;}
129 private:
130
131 CloudComponentState m_componentState;
132 bool m_componentStateHasBeenSet = false;
133
134 Aws::String m_message;
135 bool m_messageHasBeenSet = false;
136
138 bool m_errorsHasBeenSet = false;
139
140 VendorGuidance m_vendorGuidance;
141 bool m_vendorGuidanceHasBeenSet = false;
142
143 Aws::String m_vendorGuidanceMessage;
144 bool m_vendorGuidanceMessageHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace GreengrassV2
149} // namespace Aws
CloudComponentStatus & AddErrors(Aws::String &&key, Aws::String &&value)
CloudComponentStatus & WithErrors(const Aws::Map< Aws::String, Aws::String > &value)
AWS_GREENGRASSV2_API CloudComponentStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
CloudComponentStatus & AddErrors(Aws::String &&key, const char *value)
CloudComponentStatus & WithMessage(Aws::String &&value)
CloudComponentStatus & AddErrors(Aws::String &&key, const Aws::String &value)
CloudComponentStatus & WithErrors(Aws::Map< Aws::String, Aws::String > &&value)
void SetErrors(const Aws::Map< Aws::String, Aws::String > &value)
void SetComponentState(const CloudComponentState &value)
const CloudComponentState & GetComponentState() const
CloudComponentStatus & WithMessage(const char *value)
CloudComponentStatus & WithVendorGuidanceMessage(Aws::String &&value)
CloudComponentStatus & AddErrors(const char *key, const char *value)
AWS_GREENGRASSV2_API CloudComponentStatus(Aws::Utils::Json::JsonView jsonValue)
CloudComponentStatus & WithVendorGuidanceMessage(const char *value)
CloudComponentStatus & AddErrors(const char *key, Aws::String &&value)
CloudComponentStatus & AddErrors(const Aws::String &key, const Aws::String &value)
CloudComponentStatus & WithComponentState(CloudComponentState &&value)
void SetVendorGuidance(const VendorGuidance &value)
CloudComponentStatus & WithVendorGuidance(const VendorGuidance &value)
CloudComponentStatus & WithVendorGuidanceMessage(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetErrors() const
CloudComponentStatus & WithComponentState(const CloudComponentState &value)
void SetComponentState(CloudComponentState &&value)
void SetErrors(Aws::Map< Aws::String, Aws::String > &&value)
CloudComponentStatus & WithMessage(const Aws::String &value)
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVendorGuidanceMessage(const Aws::String &value)
CloudComponentStatus & AddErrors(const Aws::String &key, Aws::String &&value)
CloudComponentStatus & WithVendorGuidance(VendorGuidance &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue