AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BatchCreateDelegationByAssessmentResult.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/auditmanager/model/Delegation.h>
11#include <aws/auditmanager/model/BatchCreateDelegationByAssessmentError.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace AuditManager
27{
28namespace Model
29{
31 {
32 public:
33 AWS_AUDITMANAGER_API BatchCreateDelegationByAssessmentResult() = default;
36
37
39
42 inline const Aws::Vector<Delegation>& GetDelegations() const { return m_delegations; }
43 template<typename DelegationsT = Aws::Vector<Delegation>>
44 void SetDelegations(DelegationsT&& value) { m_delegationsHasBeenSet = true; m_delegations = std::forward<DelegationsT>(value); }
45 template<typename DelegationsT = Aws::Vector<Delegation>>
46 BatchCreateDelegationByAssessmentResult& WithDelegations(DelegationsT&& value) { SetDelegations(std::forward<DelegationsT>(value)); return *this;}
47 template<typename DelegationsT = Delegation>
48 BatchCreateDelegationByAssessmentResult& AddDelegations(DelegationsT&& value) { m_delegationsHasBeenSet = true; m_delegations.emplace_back(std::forward<DelegationsT>(value)); return *this; }
50
52
56 inline const Aws::Vector<BatchCreateDelegationByAssessmentError>& GetErrors() const { return m_errors; }
57 template<typename ErrorsT = Aws::Vector<BatchCreateDelegationByAssessmentError>>
58 void SetErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors = std::forward<ErrorsT>(value); }
59 template<typename ErrorsT = Aws::Vector<BatchCreateDelegationByAssessmentError>>
60 BatchCreateDelegationByAssessmentResult& WithErrors(ErrorsT&& value) { SetErrors(std::forward<ErrorsT>(value)); return *this;}
61 template<typename ErrorsT = BatchCreateDelegationByAssessmentError>
62 BatchCreateDelegationByAssessmentResult& AddErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors.emplace_back(std::forward<ErrorsT>(value)); return *this; }
64
66
67 inline const Aws::String& GetRequestId() const { return m_requestId; }
68 template<typename RequestIdT = Aws::String>
69 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
70 template<typename RequestIdT = Aws::String>
71 BatchCreateDelegationByAssessmentResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
73 private:
74
75 Aws::Vector<Delegation> m_delegations;
76 bool m_delegationsHasBeenSet = false;
77
79 bool m_errorsHasBeenSet = false;
80
81 Aws::String m_requestId;
82 bool m_requestIdHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace AuditManager
87} // namespace Aws
BatchCreateDelegationByAssessmentResult & WithDelegations(DelegationsT &&value)
BatchCreateDelegationByAssessmentResult & WithRequestId(RequestIdT &&value)
AWS_AUDITMANAGER_API BatchCreateDelegationByAssessmentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchCreateDelegationByAssessmentResult & AddDelegations(DelegationsT &&value)
const Aws::Vector< BatchCreateDelegationByAssessmentError > & GetErrors() const
AWS_AUDITMANAGER_API BatchCreateDelegationByAssessmentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue