AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BatchPutPropertyErrorEntry.h
1
6#pragma once
7#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iottwinmaker/model/BatchPutPropertyError.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTTwinMaker
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOTTWINMAKER_API BatchPutPropertyErrorEntry() = default;
39 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<BatchPutPropertyError>& GetErrors() const { return m_errors; }
48 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
49 template<typename ErrorsT = Aws::Vector<BatchPutPropertyError>>
50 void SetErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors = std::forward<ErrorsT>(value); }
51 template<typename ErrorsT = Aws::Vector<BatchPutPropertyError>>
52 BatchPutPropertyErrorEntry& WithErrors(ErrorsT&& value) { SetErrors(std::forward<ErrorsT>(value)); return *this;}
53 template<typename ErrorsT = BatchPutPropertyError>
54 BatchPutPropertyErrorEntry& AddErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors.emplace_back(std::forward<ErrorsT>(value)); return *this; }
56 private:
57
59 bool m_errorsHasBeenSet = false;
60 };
61
62} // namespace Model
63} // namespace IoTTwinMaker
64} // namespace Aws
AWS_IOTTWINMAKER_API BatchPutPropertyErrorEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< BatchPutPropertyError > & GetErrors() const
BatchPutPropertyErrorEntry & WithErrors(ErrorsT &&value)
AWS_IOTTWINMAKER_API BatchPutPropertyErrorEntry(Aws::Utils::Json::JsonView jsonValue)
void SetErrors(ErrorsT &&value)
bool ErrorsHasBeenSet() const
AWS_IOTTWINMAKER_API BatchPutPropertyErrorEntry()=default
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
BatchPutPropertyErrorEntry & AddErrors(ErrorsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue