AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
36
37
39
42 inline const Aws::Vector<Delegation>& GetDelegations() const{ return m_delegations; }
43 inline void SetDelegations(const Aws::Vector<Delegation>& value) { m_delegations = value; }
44 inline void SetDelegations(Aws::Vector<Delegation>&& value) { m_delegations = std::move(value); }
47 inline BatchCreateDelegationByAssessmentResult& AddDelegations(const Delegation& value) { m_delegations.push_back(value); return *this; }
48 inline BatchCreateDelegationByAssessmentResult& AddDelegations(Delegation&& value) { m_delegations.push_back(std::move(value)); return *this; }
50
52
56 inline const Aws::Vector<BatchCreateDelegationByAssessmentError>& GetErrors() const{ return m_errors; }
57 inline void SetErrors(const Aws::Vector<BatchCreateDelegationByAssessmentError>& value) { m_errors = value; }
58 inline void SetErrors(Aws::Vector<BatchCreateDelegationByAssessmentError>&& value) { m_errors = std::move(value); }
61 inline BatchCreateDelegationByAssessmentResult& AddErrors(const BatchCreateDelegationByAssessmentError& value) { m_errors.push_back(value); return *this; }
62 inline BatchCreateDelegationByAssessmentResult& AddErrors(BatchCreateDelegationByAssessmentError&& value) { m_errors.push_back(std::move(value)); return *this; }
64
66
67 inline const Aws::String& GetRequestId() const{ return m_requestId; }
68 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
69 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
70 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
72 inline BatchCreateDelegationByAssessmentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
73 inline BatchCreateDelegationByAssessmentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
75 private:
76
77 Aws::Vector<Delegation> m_delegations;
78
80
81 Aws::String m_requestId;
82 };
83
84} // namespace Model
85} // namespace AuditManager
86} // namespace Aws
BatchCreateDelegationByAssessmentResult & WithRequestId(Aws::String &&value)
void SetErrors(Aws::Vector< BatchCreateDelegationByAssessmentError > &&value)
BatchCreateDelegationByAssessmentResult & WithErrors(Aws::Vector< BatchCreateDelegationByAssessmentError > &&value)
BatchCreateDelegationByAssessmentResult & AddErrors(const BatchCreateDelegationByAssessmentError &value)
AWS_AUDITMANAGER_API BatchCreateDelegationByAssessmentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchCreateDelegationByAssessmentResult & AddDelegations(const Delegation &value)
const Aws::Vector< BatchCreateDelegationByAssessmentError > & GetErrors() const
BatchCreateDelegationByAssessmentResult & WithRequestId(const Aws::String &value)
BatchCreateDelegationByAssessmentResult & WithDelegations(Aws::Vector< Delegation > &&value)
BatchCreateDelegationByAssessmentResult & AddDelegations(Delegation &&value)
BatchCreateDelegationByAssessmentResult & AddErrors(BatchCreateDelegationByAssessmentError &&value)
BatchCreateDelegationByAssessmentResult & WithErrors(const Aws::Vector< BatchCreateDelegationByAssessmentError > &value)
BatchCreateDelegationByAssessmentResult & WithRequestId(const char *value)
BatchCreateDelegationByAssessmentResult & WithDelegations(const Aws::Vector< Delegation > &value)
void SetErrors(const Aws::Vector< BatchCreateDelegationByAssessmentError > &value)
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