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

A list of errors retrieving an application's resources.

See * Also:

AWS * API Reference

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

This indicates if there are more errors not listed in the resourceErrors * list.

*/ inline bool GetHasMoreErrors() const{ return m_hasMoreErrors; } /** *

This indicates if there are more errors not listed in the resourceErrors * list.

*/ inline bool HasMoreErrorsHasBeenSet() const { return m_hasMoreErrorsHasBeenSet; } /** *

This indicates if there are more errors not listed in the resourceErrors * list.

*/ inline void SetHasMoreErrors(bool value) { m_hasMoreErrorsHasBeenSet = true; m_hasMoreErrors = value; } /** *

This indicates if there are more errors not listed in the resourceErrors * list.

*/ inline ResourceErrorsDetails& WithHasMoreErrors(bool value) { SetHasMoreErrors(value); return *this;} /** *

A list of errors retrieving an application's resources.

*/ inline const Aws::Vector& GetResourceErrors() const{ return m_resourceErrors; } /** *

A list of errors retrieving an application's resources.

*/ inline bool ResourceErrorsHasBeenSet() const { return m_resourceErrorsHasBeenSet; } /** *

A list of errors retrieving an application's resources.

*/ inline void SetResourceErrors(const Aws::Vector& value) { m_resourceErrorsHasBeenSet = true; m_resourceErrors = value; } /** *

A list of errors retrieving an application's resources.

*/ inline void SetResourceErrors(Aws::Vector&& value) { m_resourceErrorsHasBeenSet = true; m_resourceErrors = std::move(value); } /** *

A list of errors retrieving an application's resources.

*/ inline ResourceErrorsDetails& WithResourceErrors(const Aws::Vector& value) { SetResourceErrors(value); return *this;} /** *

A list of errors retrieving an application's resources.

*/ inline ResourceErrorsDetails& WithResourceErrors(Aws::Vector&& value) { SetResourceErrors(std::move(value)); return *this;} /** *

A list of errors retrieving an application's resources.

*/ inline ResourceErrorsDetails& AddResourceErrors(const ResourceError& value) { m_resourceErrorsHasBeenSet = true; m_resourceErrors.push_back(value); return *this; } /** *

A list of errors retrieving an application's resources.

*/ inline ResourceErrorsDetails& AddResourceErrors(ResourceError&& value) { m_resourceErrorsHasBeenSet = true; m_resourceErrors.push_back(std::move(value)); return *this; } private: bool m_hasMoreErrors; bool m_hasMoreErrorsHasBeenSet = false; Aws::Vector m_resourceErrors; bool m_resourceErrorsHasBeenSet = false; }; } // namespace Model } // namespace ResilienceHub } // namespace Aws