AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
BatchGetCommentResult.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/assurance/model/BatchGetCommentError.h>
9#include <aws/assurance/model/Comment.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 BatchGetCommentResult() = default;
32
34
37 inline const Aws::Vector<Comment>& GetComments() const { return m_comments; }
38 template <typename CommentsT = Aws::Vector<Comment>>
39 void SetComments(CommentsT&& value) {
40 m_commentsHasBeenSet = true;
41 m_comments = std::forward<CommentsT>(value);
42 }
43 template <typename CommentsT = Aws::Vector<Comment>>
44 BatchGetCommentResult& WithComments(CommentsT&& value) {
45 SetComments(std::forward<CommentsT>(value));
46 return *this;
47 }
48 template <typename CommentsT = Comment>
49 BatchGetCommentResult& AddComments(CommentsT&& value) {
50 m_commentsHasBeenSet = true;
51 m_comments.emplace_back(std::forward<CommentsT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::Vector<BatchGetCommentError>& GetErrors() const { return m_errors; }
63 template <typename ErrorsT = Aws::Vector<BatchGetCommentError>>
64 void SetErrors(ErrorsT&& value) {
65 m_errorsHasBeenSet = true;
66 m_errors = std::forward<ErrorsT>(value);
67 }
68 template <typename ErrorsT = Aws::Vector<BatchGetCommentError>>
70 SetErrors(std::forward<ErrorsT>(value));
71 return *this;
72 }
73 template <typename ErrorsT = BatchGetCommentError>
74 BatchGetCommentResult& 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 BatchGetCommentResult& 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<Comment> m_comments;
99
101
102 Aws::String m_requestId;
103 Aws::Http::HttpResponseCode m_HttpResponseCode;
104 bool m_commentsHasBeenSet = false;
105 bool m_errorsHasBeenSet = false;
106 bool m_requestIdHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace Assurance
111} // namespace Aws
const Aws::Vector< BatchGetCommentError > & GetErrors() const
AWS_ASSURANCE_API BatchGetCommentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
const Aws::Vector< Comment > & GetComments() const
BatchGetCommentResult & AddComments(CommentsT &&value)
AWS_ASSURANCE_API BatchGetCommentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
AWS_ASSURANCE_API BatchGetCommentResult()=default
BatchGetCommentResult & AddErrors(ErrorsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
BatchGetCommentResult & WithErrors(ErrorsT &&value)
BatchGetCommentResult & WithComments(CommentsT &&value)
BatchGetCommentResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector