/**
* 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 request couldn't be completed because it contains signals that aren't
* valid.
See Also:
AWS
* API Reference
*/
class InvalidSignalsException
{
public:
AWS_IOTFLEETWISE_API InvalidSignalsException();
AWS_IOTFLEETWISE_API InvalidSignalsException(Aws::Utils::Json::JsonView jsonValue);
AWS_IOTFLEETWISE_API InvalidSignalsException& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
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 InvalidSignalsException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
inline InvalidSignalsException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
inline InvalidSignalsException& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* The signals which caused the exception.
*/
inline const Aws::Vector& GetInvalidSignals() const{ return m_invalidSignals; }
/**
* The signals which caused the exception.
*/
inline bool InvalidSignalsHasBeenSet() const { return m_invalidSignalsHasBeenSet; }
/**
* The signals which caused the exception.
*/
inline void SetInvalidSignals(const Aws::Vector& value) { m_invalidSignalsHasBeenSet = true; m_invalidSignals = value; }
/**
* The signals which caused the exception.
*/
inline void SetInvalidSignals(Aws::Vector&& value) { m_invalidSignalsHasBeenSet = true; m_invalidSignals = std::move(value); }
/**
* The signals which caused the exception.
*/
inline InvalidSignalsException& WithInvalidSignals(const Aws::Vector& value) { SetInvalidSignals(value); return *this;}
/**
* The signals which caused the exception.
*/
inline InvalidSignalsException& WithInvalidSignals(Aws::Vector&& value) { SetInvalidSignals(std::move(value)); return *this;}
/**
* The signals which caused the exception.
*/
inline InvalidSignalsException& AddInvalidSignals(const InvalidSignal& value) { m_invalidSignalsHasBeenSet = true; m_invalidSignals.push_back(value); return *this; }
/**
* The signals which caused the exception.
*/
inline InvalidSignalsException& AddInvalidSignals(InvalidSignal&& value) { m_invalidSignalsHasBeenSet = true; m_invalidSignals.push_back(std::move(value)); return *this; }
private:
Aws::String m_message;
bool m_messageHasBeenSet = false;
Aws::Vector m_invalidSignals;
bool m_invalidSignalsHasBeenSet = false;
};
} // namespace Model
} // namespace IoTFleetWise
} // namespace Aws