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

Details related to problems with AWS TNB resources.

See Also:

* AWS * API Reference

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

A human-readable explanation specific to this occurrence of the problem.

*/ inline const Aws::String& GetDetail() const{ return m_detail; } /** *

A human-readable explanation specific to this occurrence of the problem.

*/ inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; } /** *

A human-readable explanation specific to this occurrence of the problem.

*/ inline void SetDetail(const Aws::String& value) { m_detailHasBeenSet = true; m_detail = value; } /** *

A human-readable explanation specific to this occurrence of the problem.

*/ inline void SetDetail(Aws::String&& value) { m_detailHasBeenSet = true; m_detail = std::move(value); } /** *

A human-readable explanation specific to this occurrence of the problem.

*/ inline void SetDetail(const char* value) { m_detailHasBeenSet = true; m_detail.assign(value); } /** *

A human-readable explanation specific to this occurrence of the problem.

*/ inline ProblemDetails& WithDetail(const Aws::String& value) { SetDetail(value); return *this;} /** *

A human-readable explanation specific to this occurrence of the problem.

*/ inline ProblemDetails& WithDetail(Aws::String&& value) { SetDetail(std::move(value)); return *this;} /** *

A human-readable explanation specific to this occurrence of the problem.

*/ inline ProblemDetails& WithDetail(const char* value) { SetDetail(value); return *this;} /** *

A human-readable title of the problem type.

*/ inline const Aws::String& GetTitle() const{ return m_title; } /** *

A human-readable title of the problem type.

*/ inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } /** *

A human-readable title of the problem type.

*/ inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } /** *

A human-readable title of the problem type.

*/ inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } /** *

A human-readable title of the problem type.

*/ inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } /** *

A human-readable title of the problem type.

*/ inline ProblemDetails& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} /** *

A human-readable title of the problem type.

*/ inline ProblemDetails& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} /** *

A human-readable title of the problem type.

*/ inline ProblemDetails& WithTitle(const char* value) { SetTitle(value); return *this;} private: Aws::String m_detail; bool m_detailHasBeenSet = false; Aws::String m_title; bool m_titleHasBeenSet = false; }; } // namespace Model } // namespace tnb } // namespace Aws