AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
41 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const BatchPutAssetPropertyValueErrorCode& GetErrorCode() const{ return m_errorCode; }
49 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
50 inline void SetErrorCode(const BatchPutAssetPropertyValueErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
51 inline void SetErrorCode(BatchPutAssetPropertyValueErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
55
57
60 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
61 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
62 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
63 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
64 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
65 inline BatchPutAssetPropertyError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
66 inline BatchPutAssetPropertyError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
67 inline BatchPutAssetPropertyError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
69
71
74 inline const Aws::Vector<TimeInNanos>& GetTimestamps() const{ return m_timestamps; }
75 inline bool TimestampsHasBeenSet() const { return m_timestampsHasBeenSet; }
76 inline void SetTimestamps(const Aws::Vector<TimeInNanos>& value) { m_timestampsHasBeenSet = true; m_timestamps = value; }
77 inline void SetTimestamps(Aws::Vector<TimeInNanos>&& value) { m_timestampsHasBeenSet = true; m_timestamps = std::move(value); }
79 inline BatchPutAssetPropertyError& WithTimestamps(Aws::Vector<TimeInNanos>&& value) { SetTimestamps(std::move(value)); return *this;}
80 inline BatchPutAssetPropertyError& AddTimestamps(const TimeInNanos& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(value); return *this; }
81 inline BatchPutAssetPropertyError& AddTimestamps(TimeInNanos&& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(std::move(value)); return *this; }
83 private:
84
86 bool m_errorCodeHasBeenSet = false;
87
88 Aws::String m_errorMessage;
89 bool m_errorMessageHasBeenSet = false;
90
91 Aws::Vector<TimeInNanos> m_timestamps;
92 bool m_timestampsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace IoTSiteWise
97} // namespace Aws
BatchPutAssetPropertyError & WithErrorMessage(Aws::String &&value)
BatchPutAssetPropertyError & WithTimestamps(const Aws::Vector< TimeInNanos > &value)
AWS_IOTSITEWISE_API BatchPutAssetPropertyError(Aws::Utils::Json::JsonView jsonValue)
BatchPutAssetPropertyError & WithErrorMessage(const Aws::String &value)
void SetTimestamps(const Aws::Vector< TimeInNanos > &value)
const BatchPutAssetPropertyValueErrorCode & GetErrorCode() const
BatchPutAssetPropertyError & WithErrorCode(const BatchPutAssetPropertyValueErrorCode &value)
BatchPutAssetPropertyError & WithErrorMessage(const char *value)
BatchPutAssetPropertyError & WithErrorCode(BatchPutAssetPropertyValueErrorCode &&value)
const Aws::Vector< TimeInNanos > & GetTimestamps() const
void SetErrorCode(const BatchPutAssetPropertyValueErrorCode &value)
BatchPutAssetPropertyError & WithTimestamps(Aws::Vector< TimeInNanos > &&value)
void SetTimestamps(Aws::Vector< TimeInNanos > &&value)
BatchPutAssetPropertyError & AddTimestamps(TimeInNanos &&value)
BatchPutAssetPropertyError & AddTimestamps(const TimeInNanos &value)
void SetErrorCode(BatchPutAssetPropertyValueErrorCode &&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