/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ResourceExplorer2 { namespace Model { class BatchGetViewResult { public: AWS_RESOURCEEXPLORER2_API BatchGetViewResult(); AWS_RESOURCEEXPLORER2_API BatchGetViewResult(const Aws::AmazonWebServiceResult& result); AWS_RESOURCEEXPLORER2_API BatchGetViewResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

If any of the specified ARNs result in an error, then this structure * describes the error.

*/ inline const Aws::Vector& GetErrors() const{ return m_errors; } /** *

If any of the specified ARNs result in an error, then this structure * describes the error.

*/ inline void SetErrors(const Aws::Vector& value) { m_errors = value; } /** *

If any of the specified ARNs result in an error, then this structure * describes the error.

*/ inline void SetErrors(Aws::Vector&& value) { m_errors = std::move(value); } /** *

If any of the specified ARNs result in an error, then this structure * describes the error.

*/ inline BatchGetViewResult& WithErrors(const Aws::Vector& value) { SetErrors(value); return *this;} /** *

If any of the specified ARNs result in an error, then this structure * describes the error.

*/ inline BatchGetViewResult& WithErrors(Aws::Vector&& value) { SetErrors(std::move(value)); return *this;} /** *

If any of the specified ARNs result in an error, then this structure * describes the error.

*/ inline BatchGetViewResult& AddErrors(const BatchGetViewError& value) { m_errors.push_back(value); return *this; } /** *

If any of the specified ARNs result in an error, then this structure * describes the error.

*/ inline BatchGetViewResult& AddErrors(BatchGetViewError&& value) { m_errors.push_back(std::move(value)); return *this; } /** *

A structure with a list of objects with details for each of the specified * views.

*/ inline const Aws::Vector& GetViews() const{ return m_views; } /** *

A structure with a list of objects with details for each of the specified * views.

*/ inline void SetViews(const Aws::Vector& value) { m_views = value; } /** *

A structure with a list of objects with details for each of the specified * views.

*/ inline void SetViews(Aws::Vector&& value) { m_views = std::move(value); } /** *

A structure with a list of objects with details for each of the specified * views.

*/ inline BatchGetViewResult& WithViews(const Aws::Vector& value) { SetViews(value); return *this;} /** *

A structure with a list of objects with details for each of the specified * views.

*/ inline BatchGetViewResult& WithViews(Aws::Vector&& value) { SetViews(std::move(value)); return *this;} /** *

A structure with a list of objects with details for each of the specified * views.

*/ inline BatchGetViewResult& AddViews(const View& value) { m_views.push_back(value); return *this; } /** *

A structure with a list of objects with details for each of the specified * views.

*/ inline BatchGetViewResult& AddViews(View&& value) { m_views.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline BatchGetViewResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchGetViewResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchGetViewResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_errors; Aws::Vector m_views; Aws::String m_requestId; }; } // namespace Model } // namespace ResourceExplorer2 } // namespace Aws