AWS SDK for C++  1.9.156
AWS SDK for C++
BatchPutAssetPropertyError.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace IoTSiteWise
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
47  inline const BatchPutAssetPropertyValueErrorCode& GetErrorCode() const{ return m_errorCode; }
48 
52  inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
53 
57  inline void SetErrorCode(const BatchPutAssetPropertyValueErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
58 
62  inline void SetErrorCode(BatchPutAssetPropertyValueErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
63 
67  inline BatchPutAssetPropertyError& WithErrorCode(const BatchPutAssetPropertyValueErrorCode& value) { SetErrorCode(value); return *this;}
68 
72  inline BatchPutAssetPropertyError& WithErrorCode(BatchPutAssetPropertyValueErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
73 
74 
78  inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
79 
83  inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
84 
88  inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
89 
93  inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
94 
98  inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
99 
103  inline BatchPutAssetPropertyError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
104 
108  inline BatchPutAssetPropertyError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
109 
113  inline BatchPutAssetPropertyError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
114 
115 
119  inline const Aws::Vector<TimeInNanos>& GetTimestamps() const{ return m_timestamps; }
120 
124  inline bool TimestampsHasBeenSet() const { return m_timestampsHasBeenSet; }
125 
129  inline void SetTimestamps(const Aws::Vector<TimeInNanos>& value) { m_timestampsHasBeenSet = true; m_timestamps = value; }
130 
134  inline void SetTimestamps(Aws::Vector<TimeInNanos>&& value) { m_timestampsHasBeenSet = true; m_timestamps = std::move(value); }
135 
139  inline BatchPutAssetPropertyError& WithTimestamps(const Aws::Vector<TimeInNanos>& value) { SetTimestamps(value); return *this;}
140 
144  inline BatchPutAssetPropertyError& WithTimestamps(Aws::Vector<TimeInNanos>&& value) { SetTimestamps(std::move(value)); return *this;}
145 
149  inline BatchPutAssetPropertyError& AddTimestamps(const TimeInNanos& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(value); return *this; }
150 
154  inline BatchPutAssetPropertyError& AddTimestamps(TimeInNanos&& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(std::move(value)); return *this; }
155 
156  private:
157 
159  bool m_errorCodeHasBeenSet;
160 
161  Aws::String m_errorMessage;
162  bool m_errorMessageHasBeenSet;
163 
164  Aws::Vector<TimeInNanos> m_timestamps;
165  bool m_timestampsHasBeenSet;
166  };
167 
168 } // namespace Model
169 } // namespace IoTSiteWise
170 } // namespace Aws
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::GetTimestamps
const Aws::Vector< TimeInNanos > & GetTimestamps() const
Definition: BatchPutAssetPropertyError.h:119
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::ErrorMessageHasBeenSet
bool ErrorMessageHasBeenSet() const
Definition: BatchPutAssetPropertyError.h:83
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::ErrorCodeHasBeenSet
bool ErrorCodeHasBeenSet() const
Definition: BatchPutAssetPropertyError.h:52
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::SetTimestamps
void SetTimestamps(Aws::Vector< TimeInNanos > &&value)
Definition: BatchPutAssetPropertyError.h:134
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::WithErrorCode
BatchPutAssetPropertyError & WithErrorCode(const BatchPutAssetPropertyValueErrorCode &value)
Definition: BatchPutAssetPropertyError.h:67
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::SetErrorMessage
void SetErrorMessage(const char *value)
Definition: BatchPutAssetPropertyError.h:98
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::SetTimestamps
void SetTimestamps(const Aws::Vector< TimeInNanos > &value)
Definition: BatchPutAssetPropertyError.h:129
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::WithTimestamps
BatchPutAssetPropertyError & WithTimestamps(Aws::Vector< TimeInNanos > &&value)
Definition: BatchPutAssetPropertyError.h:144
Aws::IoTSiteWise::Model::TimeInNanos
Definition: TimeInNanos.h:31
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::SetErrorCode
void SetErrorCode(const BatchPutAssetPropertyValueErrorCode &value)
Definition: BatchPutAssetPropertyError.h:57
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::WithErrorMessage
BatchPutAssetPropertyError & WithErrorMessage(Aws::String &&value)
Definition: BatchPutAssetPropertyError.h:108
AWSVector.h
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::WithTimestamps
BatchPutAssetPropertyError & WithTimestamps(const Aws::Vector< TimeInNanos > &value)
Definition: BatchPutAssetPropertyError.h:139
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::operator=
BatchPutAssetPropertyError & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::BatchPutAssetPropertyError
BatchPutAssetPropertyError()
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::WithErrorCode
BatchPutAssetPropertyError & WithErrorCode(BatchPutAssetPropertyValueErrorCode &&value)
Definition: BatchPutAssetPropertyError.h:72
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::GetErrorCode
const BatchPutAssetPropertyValueErrorCode & GetErrorCode() const
Definition: BatchPutAssetPropertyError.h:47
BatchPutAssetPropertyValueErrorCode.h
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::SetErrorMessage
void SetErrorMessage(const Aws::String &value)
Definition: BatchPutAssetPropertyError.h:88
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::WithErrorMessage
BatchPutAssetPropertyError & WithErrorMessage(const char *value)
Definition: BatchPutAssetPropertyError.h:113
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError
Definition: BatchPutAssetPropertyError.h:36
Aws::IoTSiteWise::Model::BatchPutAssetPropertyValueErrorCode
BatchPutAssetPropertyValueErrorCode
Definition: BatchPutAssetPropertyValueErrorCode.h:17
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::AddTimestamps
BatchPutAssetPropertyError & AddTimestamps(TimeInNanos &&value)
Definition: BatchPutAssetPropertyError.h:154
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::GetErrorMessage
const Aws::String & GetErrorMessage() const
Definition: BatchPutAssetPropertyError.h:78
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::AddTimestamps
BatchPutAssetPropertyError & AddTimestamps(const TimeInNanos &value)
Definition: BatchPutAssetPropertyError.h:149
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::BatchPutAssetPropertyError
BatchPutAssetPropertyError(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::SetErrorMessage
void SetErrorMessage(Aws::String &&value)
Definition: BatchPutAssetPropertyError.h:93
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::WithErrorMessage
BatchPutAssetPropertyError & WithErrorMessage(const Aws::String &value)
Definition: BatchPutAssetPropertyError.h:103
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::TimestampsHasBeenSet
bool TimestampsHasBeenSet() const
Definition: BatchPutAssetPropertyError.h:124
Aws::IoTSiteWise::Model::BatchPutAssetPropertyError::SetErrorCode
void SetErrorCode(BatchPutAssetPropertyValueErrorCode &&value)
Definition: BatchPutAssetPropertyError.h:62
TimeInNanos.h