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

The error returned when a second request is received with the same client * request token but different parameters settings. A client request token should * always uniquely identify a single request.

See Also:

AWS * API Reference

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

A parameter that is incompatible with the earlier request.

*/ inline const Aws::String& GetParameter() const{ return m_parameter; } /** *

A parameter that is incompatible with the earlier request.

*/ inline bool ParameterHasBeenSet() const { return m_parameterHasBeenSet; } /** *

A parameter that is incompatible with the earlier request.

*/ inline void SetParameter(const Aws::String& value) { m_parameterHasBeenSet = true; m_parameter = value; } /** *

A parameter that is incompatible with the earlier request.

*/ inline void SetParameter(Aws::String&& value) { m_parameterHasBeenSet = true; m_parameter = std::move(value); } /** *

A parameter that is incompatible with the earlier request.

*/ inline void SetParameter(const char* value) { m_parameterHasBeenSet = true; m_parameter.assign(value); } /** *

A parameter that is incompatible with the earlier request.

*/ inline IncompatibleParameterError& WithParameter(const Aws::String& value) { SetParameter(value); return *this;} /** *

A parameter that is incompatible with the earlier request.

*/ inline IncompatibleParameterError& WithParameter(Aws::String&& value) { SetParameter(std::move(value)); return *this;} /** *

A parameter that is incompatible with the earlier request.

*/ inline IncompatibleParameterError& WithParameter(const char* value) { SetParameter(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 IncompatibleParameterError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} inline IncompatibleParameterError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} inline IncompatibleParameterError& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_parameter; bool m_parameterHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace FSx } // namespace Aws