AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
BatchPutAssetPropertyError.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/model/BatchPutAssetPropertyValueErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iotsitewise/model/TimeInNanos.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 IoTSiteWise
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_IOTSITEWISE_API BatchPutAssetPropertyError() = default;
41 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline BatchPutAssetPropertyValueErrorCode GetErrorCode() const { return m_errorCode; }
49 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
50 inline void SetErrorCode(BatchPutAssetPropertyValueErrorCode value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
53
55
58 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
59 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
60 template<typename ErrorMessageT = Aws::String>
61 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
62 template<typename ErrorMessageT = Aws::String>
63 BatchPutAssetPropertyError& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
65
67
70 inline const Aws::Vector<TimeInNanos>& GetTimestamps() const { return m_timestamps; }
71 inline bool TimestampsHasBeenSet() const { return m_timestampsHasBeenSet; }
72 template<typename TimestampsT = Aws::Vector<TimeInNanos>>
73 void SetTimestamps(TimestampsT&& value) { m_timestampsHasBeenSet = true; m_timestamps = std::forward<TimestampsT>(value); }
74 template<typename TimestampsT = Aws::Vector<TimeInNanos>>
75 BatchPutAssetPropertyError& WithTimestamps(TimestampsT&& value) { SetTimestamps(std::forward<TimestampsT>(value)); return *this;}
76 template<typename TimestampsT = TimeInNanos>
77 BatchPutAssetPropertyError& AddTimestamps(TimestampsT&& value) { m_timestampsHasBeenSet = true; m_timestamps.emplace_back(std::forward<TimestampsT>(value)); return *this; }
79 private:
80
82 bool m_errorCodeHasBeenSet = false;
83
84 Aws::String m_errorMessage;
85 bool m_errorMessageHasBeenSet = false;
86
87 Aws::Vector<TimeInNanos> m_timestamps;
88 bool m_timestampsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace IoTSiteWise
93} // namespace Aws
AWS_IOTSITEWISE_API BatchPutAssetPropertyError()=default
AWS_IOTSITEWISE_API BatchPutAssetPropertyError(Aws::Utils::Json::JsonView jsonValue)
BatchPutAssetPropertyError & WithErrorMessage(ErrorMessageT &&value)
BatchPutAssetPropertyError & WithErrorCode(BatchPutAssetPropertyValueErrorCode value)
BatchPutAssetPropertyError & WithTimestamps(TimestampsT &&value)
const Aws::Vector< TimeInNanos > & GetTimestamps() const
BatchPutAssetPropertyValueErrorCode GetErrorCode() const
void SetErrorCode(BatchPutAssetPropertyValueErrorCode value)
BatchPutAssetPropertyError & AddTimestamps(TimestampsT &&value)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTSITEWISE_API BatchPutAssetPropertyError & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue