/** * 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, when uploading an archive, Amazon S3 Glacier times out while * receiving the upload.

See Also:

AWS * API Reference

*/ class RequestTimeoutException { public: AWS_GLACIER_API RequestTimeoutException(); AWS_GLACIER_API RequestTimeoutException(Aws::Utils::Json::JsonView jsonValue); AWS_GLACIER_API RequestTimeoutException& 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 RequestTimeoutException& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

Client

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

Client

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

408 Request Timeout

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

408 Request Timeout

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

408 Request Timeout

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

408 Request Timeout

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

408 Request Timeout

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

408 Request Timeout

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

408 Request Timeout

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

408 Request Timeout

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

Returned if, when uploading an archive, Amazon S3 Glacier times out while * receiving the upload.

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

Returned if, when uploading an archive, Amazon S3 Glacier times out while * receiving the upload.

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

Returned if, when uploading an archive, Amazon S3 Glacier times out while * receiving the upload.

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

Returned if, when uploading an archive, Amazon S3 Glacier times out while * receiving the upload.

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

Returned if, when uploading an archive, Amazon S3 Glacier times out while * receiving the upload.

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

Returned if, when uploading an archive, Amazon S3 Glacier times out while * receiving the upload.

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

Returned if, when uploading an archive, Amazon S3 Glacier times out while * receiving the upload.

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

Returned if, when uploading an archive, Amazon S3 Glacier times out while * receiving the upload.

*/ inline RequestTimeoutException& 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