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

Returned if the specified resource (such as a vault, upload ID, or job ID) * doesn't exist.

See Also:

AWS * API Reference

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

Client

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

Client

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

Client

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

Client

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

Client

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

Client

*/ inline ResourceNotFoundException& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

Client

*/ inline ResourceNotFoundException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

Client

*/ inline ResourceNotFoundException& WithType(const char* value) { SetType(value); return *this;} /** *

404 Not Found

*/ inline const Aws::String& GetCode() const{ return m_code; } /** *

404 Not Found

*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *

404 Not Found

*/ inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; } /** *

404 Not Found

*/ inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *

404 Not Found

*/ inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); } /** *

404 Not Found

*/ inline ResourceNotFoundException& WithCode(const Aws::String& value) { SetCode(value); return *this;} /** *

404 Not Found

*/ inline ResourceNotFoundException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;} /** *

404 Not Found

*/ inline ResourceNotFoundException& WithCode(const char* value) { SetCode(value); return *this;} /** *

Returned if the specified resource (such as a vault, upload ID, or job ID) * doesn't exist.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

Returned if the specified resource (such as a vault, upload ID, or job ID) * doesn't exist.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

Returned if the specified resource (such as a vault, upload ID, or job ID) * doesn't exist.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

Returned if the specified resource (such as a vault, upload ID, or job ID) * doesn't exist.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

Returned if the specified resource (such as a vault, upload ID, or job ID) * doesn't exist.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

Returned if the specified resource (such as a vault, upload ID, or job ID) * doesn't exist.

*/ inline ResourceNotFoundException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

Returned if the specified resource (such as a vault, upload ID, or job ID) * doesn't exist.

*/ inline ResourceNotFoundException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

Returned if the specified resource (such as a vault, upload ID, or job ID) * doesn't exist.

*/ inline ResourceNotFoundException& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_type; bool m_typeHasBeenSet = false; Aws::String m_code; bool m_codeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace Glacier } // namespace Aws