/** * 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 Snowball { namespace Model { /** *

You get this exception when you call CreateReturnShippingLabel * more than once when other requests are not completed.

See Also:

* AWS * API Reference

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

You get this resource when you call CreateReturnShippingLabel * more than once when other requests are not completed. .

*/ inline const Aws::String& GetConflictResource() const{ return m_conflictResource; } /** *

You get this resource when you call CreateReturnShippingLabel * more than once when other requests are not completed. .

*/ inline bool ConflictResourceHasBeenSet() const { return m_conflictResourceHasBeenSet; } /** *

You get this resource when you call CreateReturnShippingLabel * more than once when other requests are not completed. .

*/ inline void SetConflictResource(const Aws::String& value) { m_conflictResourceHasBeenSet = true; m_conflictResource = value; } /** *

You get this resource when you call CreateReturnShippingLabel * more than once when other requests are not completed. .

*/ inline void SetConflictResource(Aws::String&& value) { m_conflictResourceHasBeenSet = true; m_conflictResource = std::move(value); } /** *

You get this resource when you call CreateReturnShippingLabel * more than once when other requests are not completed. .

*/ inline void SetConflictResource(const char* value) { m_conflictResourceHasBeenSet = true; m_conflictResource.assign(value); } /** *

You get this resource when you call CreateReturnShippingLabel * more than once when other requests are not completed. .

*/ inline ConflictException& WithConflictResource(const Aws::String& value) { SetConflictResource(value); return *this;} /** *

You get this resource when you call CreateReturnShippingLabel * more than once when other requests are not completed. .

*/ inline ConflictException& WithConflictResource(Aws::String&& value) { SetConflictResource(std::move(value)); return *this;} /** *

You get this resource when you call CreateReturnShippingLabel * more than once when other requests are not completed. .

*/ inline ConflictException& WithConflictResource(const char* value) { SetConflictResource(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 ConflictException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} inline ConflictException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} inline ConflictException& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_conflictResource; bool m_conflictResourceHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace Snowball } // namespace Aws