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

The delegations that are associated with the assessment.

*/ inline const Aws::Vector& GetDelegations() const{ return m_delegations; } /** *

The delegations that are associated with the assessment.

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

The delegations that are associated with the assessment.

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

The delegations that are associated with the assessment.

*/ inline BatchCreateDelegationByAssessmentResult& WithDelegations(const Aws::Vector& value) { SetDelegations(value); return *this;} /** *

The delegations that are associated with the assessment.

*/ inline BatchCreateDelegationByAssessmentResult& WithDelegations(Aws::Vector&& value) { SetDelegations(std::move(value)); return *this;} /** *

The delegations that are associated with the assessment.

*/ inline BatchCreateDelegationByAssessmentResult& AddDelegations(const Delegation& value) { m_delegations.push_back(value); return *this; } /** *

The delegations that are associated with the assessment.

*/ inline BatchCreateDelegationByAssessmentResult& AddDelegations(Delegation&& value) { m_delegations.push_back(std::move(value)); return *this; } /** *

A list of errors that the BatchCreateDelegationByAssessment API * returned.

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

A list of errors that the BatchCreateDelegationByAssessment API * returned.

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

A list of errors that the BatchCreateDelegationByAssessment API * returned.

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

A list of errors that the BatchCreateDelegationByAssessment API * returned.

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

A list of errors that the BatchCreateDelegationByAssessment API * returned.

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

A list of errors that the BatchCreateDelegationByAssessment API * returned.

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

A list of errors that the BatchCreateDelegationByAssessment API * returned.

*/ inline BatchCreateDelegationByAssessmentResult& AddErrors(BatchCreateDelegationByAssessmentError&& value) { m_errors.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 BatchCreateDelegationByAssessmentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchCreateDelegationByAssessmentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchCreateDelegationByAssessmentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_delegations; Aws::Vector m_errors; Aws::String m_requestId; }; } // namespace Model } // namespace AuditManager } // namespace Aws