AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
BatchGetControlResult.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/assurance/model/BatchGetControlError.h>
9#include <aws/assurance/model/Control.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/crt/cbor/Cbor.h>
14
15#include <utility>
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Cbor {
22class CborValue;
23} // namespace Cbor
24} // namespace Utils
25namespace Assurance {
26namespace Model {
28 public:
29 AWS_ASSURANCE_API BatchGetControlResult() = default;
32
34
37 inline const Aws::Vector<Control>& GetControls() const { return m_controls; }
38 template <typename ControlsT = Aws::Vector<Control>>
39 void SetControls(ControlsT&& value) {
40 m_controlsHasBeenSet = true;
41 m_controls = std::forward<ControlsT>(value);
42 }
43 template <typename ControlsT = Aws::Vector<Control>>
44 BatchGetControlResult& WithControls(ControlsT&& value) {
45 SetControls(std::forward<ControlsT>(value));
46 return *this;
47 }
48 template <typename ControlsT = Control>
49 BatchGetControlResult& AddControls(ControlsT&& value) {
50 m_controlsHasBeenSet = true;
51 m_controls.emplace_back(std::forward<ControlsT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::Vector<BatchGetControlError>& GetErrors() const { return m_errors; }
63 template <typename ErrorsT = Aws::Vector<BatchGetControlError>>
64 void SetErrors(ErrorsT&& value) {
65 m_errorsHasBeenSet = true;
66 m_errors = std::forward<ErrorsT>(value);
67 }
68 template <typename ErrorsT = Aws::Vector<BatchGetControlError>>
70 SetErrors(std::forward<ErrorsT>(value));
71 return *this;
72 }
73 template <typename ErrorsT = BatchGetControlError>
74 BatchGetControlResult& AddErrors(ErrorsT&& value) {
75 m_errorsHasBeenSet = true;
76 m_errors.emplace_back(std::forward<ErrorsT>(value));
77 return *this;
78 }
80
82
83 inline const Aws::String& GetRequestId() const { return m_requestId; }
84 template <typename RequestIdT = Aws::String>
85 void SetRequestId(RequestIdT&& value) {
86 m_requestIdHasBeenSet = true;
87 m_requestId = std::forward<RequestIdT>(value);
88 }
89 template <typename RequestIdT = Aws::String>
90 BatchGetControlResult& WithRequestId(RequestIdT&& value) {
91 SetRequestId(std::forward<RequestIdT>(value));
92 return *this;
93 }
95 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
96
97 private:
98 Aws::Vector<Control> m_controls;
99
101
102 Aws::String m_requestId;
103 Aws::Http::HttpResponseCode m_HttpResponseCode;
104 bool m_controlsHasBeenSet = false;
105 bool m_errorsHasBeenSet = false;
106 bool m_requestIdHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace Assurance
111} // namespace Aws
AWS_ASSURANCE_API BatchGetControlResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
BatchGetControlResult & AddErrors(ErrorsT &&value)
AWS_ASSURANCE_API BatchGetControlResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
BatchGetControlResult & WithErrors(ErrorsT &&value)
const Aws::Vector< BatchGetControlError > & GetErrors() const
BatchGetControlResult & WithRequestId(RequestIdT &&value)
AWS_ASSURANCE_API BatchGetControlResult()=default
BatchGetControlResult & WithControls(ControlsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
BatchGetControlResult & AddControls(ControlsT &&value)
const Aws::Vector< Control > & GetControls() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector