/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoTFleetWise { namespace Model { /** *

The specified node type doesn't match the expected node type for a node. You * can specify the node type as branch, sensor, actuator, or * attribute.

See Also:

AWS * API Reference

*/ class InvalidNodeException { public: AWS_IOTFLEETWISE_API InvalidNodeException(); AWS_IOTFLEETWISE_API InvalidNodeException(Aws::Utils::Json::JsonView jsonValue); AWS_IOTFLEETWISE_API InvalidNodeException& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The specified node type isn't valid.

*/ inline const Aws::Vector& GetInvalidNodes() const{ return m_invalidNodes; } /** *

The specified node type isn't valid.

*/ inline bool InvalidNodesHasBeenSet() const { return m_invalidNodesHasBeenSet; } /** *

The specified node type isn't valid.

*/ inline void SetInvalidNodes(const Aws::Vector& value) { m_invalidNodesHasBeenSet = true; m_invalidNodes = value; } /** *

The specified node type isn't valid.

*/ inline void SetInvalidNodes(Aws::Vector&& value) { m_invalidNodesHasBeenSet = true; m_invalidNodes = std::move(value); } /** *

The specified node type isn't valid.

*/ inline InvalidNodeException& WithInvalidNodes(const Aws::Vector& value) { SetInvalidNodes(value); return *this;} /** *

The specified node type isn't valid.

*/ inline InvalidNodeException& WithInvalidNodes(Aws::Vector&& value) { SetInvalidNodes(std::move(value)); return *this;} /** *

The specified node type isn't valid.

*/ inline InvalidNodeException& AddInvalidNodes(const Node& value) { m_invalidNodesHasBeenSet = true; m_invalidNodes.push_back(value); return *this; } /** *

The specified node type isn't valid.

*/ inline InvalidNodeException& AddInvalidNodes(Node&& value) { m_invalidNodesHasBeenSet = true; m_invalidNodes.push_back(std::move(value)); return *this; } /** *

The reason the node validation failed.

*/ inline const Aws::String& GetReason() const{ return m_reason; } /** *

The reason the node validation failed.

*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *

The reason the node validation failed.

*/ inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *

The reason the node validation failed.

*/ inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *

The reason the node validation failed.

*/ inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } /** *

The reason the node validation failed.

*/ inline InvalidNodeException& WithReason(const Aws::String& value) { SetReason(value); return *this;} /** *

The reason the node validation failed.

*/ inline InvalidNodeException& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} /** *

The reason the node validation failed.

*/ inline InvalidNodeException& WithReason(const char* value) { SetReason(value); return *this;} inline const Aws::String& GetMessage() const{ return m_message; } inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } inline InvalidNodeException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} inline InvalidNodeException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} inline InvalidNodeException& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::Vector m_invalidNodes; bool m_invalidNodesHasBeenSet = false; Aws::String m_reason; bool m_reasonHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace IoTFleetWise } // namespace Aws