AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
UnprocessedCluster.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/memorydb/MemoryDB_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace MemoryDB {
20namespace Model {
21
28 public:
29 AWS_MEMORYDB_API UnprocessedCluster() = default;
30 AWS_MEMORYDB_API UnprocessedCluster(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
31 AWS_MEMORYDB_API UnprocessedCluster& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
33
35
38 inline const Aws::String& GetClusterName() const { return m_clusterName; }
39 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
40 template <typename ClusterNameT = Aws::String>
41 void SetClusterName(ClusterNameT&& value) {
42 m_clusterNameHasBeenSet = true;
43 m_clusterName = std::forward<ClusterNameT>(value);
44 }
45 template <typename ClusterNameT = Aws::String>
46 UnprocessedCluster& WithClusterName(ClusterNameT&& value) {
47 SetClusterName(std::forward<ClusterNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetErrorType() const { return m_errorType; }
57 inline bool ErrorTypeHasBeenSet() const { return m_errorTypeHasBeenSet; }
58 template <typename ErrorTypeT = Aws::String>
59 void SetErrorType(ErrorTypeT&& value) {
60 m_errorTypeHasBeenSet = true;
61 m_errorType = std::forward<ErrorTypeT>(value);
62 }
63 template <typename ErrorTypeT = Aws::String>
64 UnprocessedCluster& WithErrorType(ErrorTypeT&& value) {
65 SetErrorType(std::forward<ErrorTypeT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
75 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
76 template <typename ErrorMessageT = Aws::String>
77 void SetErrorMessage(ErrorMessageT&& value) {
78 m_errorMessageHasBeenSet = true;
79 m_errorMessage = std::forward<ErrorMessageT>(value);
80 }
81 template <typename ErrorMessageT = Aws::String>
82 UnprocessedCluster& WithErrorMessage(ErrorMessageT&& value) {
83 SetErrorMessage(std::forward<ErrorMessageT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_clusterName;
89
90 Aws::String m_errorType;
91
92 Aws::String m_errorMessage;
93 bool m_clusterNameHasBeenSet = false;
94 bool m_errorTypeHasBeenSet = false;
95 bool m_errorMessageHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace MemoryDB
100} // namespace Aws
AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
UnprocessedCluster & WithErrorType(ErrorTypeT &&value)
AWS_MEMORYDB_API UnprocessedCluster(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_MEMORYDB_API UnprocessedCluster()=default
AWS_MEMORYDB_API UnprocessedCluster & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
UnprocessedCluster & WithErrorMessage(ErrorMessageT &&value)
const Aws::String & GetClusterName() const
UnprocessedCluster & WithClusterName(ClusterNameT &&value)
const Aws::String & GetErrorMessage() const
void SetErrorMessage(ErrorMessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String