AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InvalidNodeException.h
1
6#pragma once
7#include <aws/iotfleetwise/IoTFleetWise_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iotfleetwise/model/Node.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoTFleetWise
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_IOTFLEETWISE_API InvalidNodeException();
39 AWS_IOTFLEETWISE_API InvalidNodeException(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<Node>& GetInvalidNodes() const{ return m_invalidNodes; }
49 inline bool InvalidNodesHasBeenSet() const { return m_invalidNodesHasBeenSet; }
50 inline void SetInvalidNodes(const Aws::Vector<Node>& value) { m_invalidNodesHasBeenSet = true; m_invalidNodes = value; }
51 inline void SetInvalidNodes(Aws::Vector<Node>&& value) { m_invalidNodesHasBeenSet = true; m_invalidNodes = std::move(value); }
52 inline InvalidNodeException& WithInvalidNodes(const Aws::Vector<Node>& value) { SetInvalidNodes(value); return *this;}
53 inline InvalidNodeException& WithInvalidNodes(Aws::Vector<Node>&& value) { SetInvalidNodes(std::move(value)); return *this;}
54 inline InvalidNodeException& AddInvalidNodes(const Node& value) { m_invalidNodesHasBeenSet = true; m_invalidNodes.push_back(value); return *this; }
55 inline InvalidNodeException& AddInvalidNodes(Node&& value) { m_invalidNodesHasBeenSet = true; m_invalidNodes.push_back(std::move(value)); return *this; }
57
59
62 inline const Aws::String& GetReason() const{ return m_reason; }
63 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
64 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
65 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
66 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
67 inline InvalidNodeException& WithReason(const Aws::String& value) { SetReason(value); return *this;}
68 inline InvalidNodeException& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
69 inline InvalidNodeException& WithReason(const char* value) { SetReason(value); return *this;}
71
73
74 inline const Aws::String& GetMessage() const{ return m_message; }
75 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
76 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
77 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
78 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
79 inline InvalidNodeException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
80 inline InvalidNodeException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
81 inline InvalidNodeException& WithMessage(const char* value) { SetMessage(value); return *this;}
83 private:
84
85 Aws::Vector<Node> m_invalidNodes;
86 bool m_invalidNodesHasBeenSet = false;
87
88 Aws::String m_reason;
89 bool m_reasonHasBeenSet = false;
90
91 Aws::String m_message;
92 bool m_messageHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace IoTFleetWise
97} // namespace Aws
InvalidNodeException & WithMessage(const Aws::String &value)
InvalidNodeException & WithMessage(const char *value)
InvalidNodeException & WithReason(const char *value)
InvalidNodeException & WithReason(Aws::String &&value)
AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetInvalidNodes(const Aws::Vector< Node > &value)
const Aws::Vector< Node > & GetInvalidNodes() const
InvalidNodeException & WithMessage(Aws::String &&value)
InvalidNodeException & WithInvalidNodes(const Aws::Vector< Node > &value)
AWS_IOTFLEETWISE_API InvalidNodeException & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetInvalidNodes(Aws::Vector< Node > &&value)
InvalidNodeException & WithInvalidNodes(Aws::Vector< Node > &&value)
InvalidNodeException & WithReason(const Aws::String &value)
AWS_IOTFLEETWISE_API InvalidNodeException(Aws::Utils::Json::JsonView jsonValue)
InvalidNodeException & AddInvalidNodes(const Node &value)
InvalidNodeException & AddInvalidNodes(Node &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue