/** * 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 ConnectCases { namespace Model { class BatchGetFieldResult { public: AWS_CONNECTCASES_API BatchGetFieldResult(); AWS_CONNECTCASES_API BatchGetFieldResult(const Aws::AmazonWebServiceResult& result); AWS_CONNECTCASES_API BatchGetFieldResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list of field errors.

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

A list of field errors.

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

A list of field errors.

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

A list of field errors.

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

A list of field errors.

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

A list of field errors.

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

A list of field errors.

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

A list of detailed field information.

*/ inline const Aws::Vector& GetFields() const{ return m_fields; } /** *

A list of detailed field information.

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

A list of detailed field information.

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

A list of detailed field information.

*/ inline BatchGetFieldResult& WithFields(const Aws::Vector& value) { SetFields(value); return *this;} /** *

A list of detailed field information.

*/ inline BatchGetFieldResult& WithFields(Aws::Vector&& value) { SetFields(std::move(value)); return *this;} /** *

A list of detailed field information.

*/ inline BatchGetFieldResult& AddFields(const GetFieldResponse& value) { m_fields.push_back(value); return *this; } /** *

A list of detailed field information.

*/ inline BatchGetFieldResult& AddFields(GetFieldResponse&& value) { m_fields.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 BatchGetFieldResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchGetFieldResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchGetFieldResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_errors; Aws::Vector m_fields; Aws::String m_requestId; }; } // namespace Model } // namespace ConnectCases } // namespace Aws