AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
BatchGetReportsResult.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/Report.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CodeBuild {
25namespace Model {
27 public:
28 AWS_CODEBUILD_API BatchGetReportsResult() = default;
31
33
37 inline const Aws::Vector<Report>& GetReports() const { return m_reports; }
38 template <typename ReportsT = Aws::Vector<Report>>
39 void SetReports(ReportsT&& value) {
40 m_reportsHasBeenSet = true;
41 m_reports = std::forward<ReportsT>(value);
42 }
43 template <typename ReportsT = Aws::Vector<Report>>
45 SetReports(std::forward<ReportsT>(value));
46 return *this;
47 }
48 template <typename ReportsT = Report>
49 BatchGetReportsResult& AddReports(ReportsT&& value) {
50 m_reportsHasBeenSet = true;
51 m_reports.emplace_back(std::forward<ReportsT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Vector<Aws::String>& GetReportsNotFound() const { return m_reportsNotFound; }
62 template <typename ReportsNotFoundT = Aws::Vector<Aws::String>>
63 void SetReportsNotFound(ReportsNotFoundT&& value) {
64 m_reportsNotFoundHasBeenSet = true;
65 m_reportsNotFound = std::forward<ReportsNotFoundT>(value);
66 }
67 template <typename ReportsNotFoundT = Aws::Vector<Aws::String>>
68 BatchGetReportsResult& WithReportsNotFound(ReportsNotFoundT&& value) {
69 SetReportsNotFound(std::forward<ReportsNotFoundT>(value));
70 return *this;
71 }
72 template <typename ReportsNotFoundT = Aws::String>
73 BatchGetReportsResult& AddReportsNotFound(ReportsNotFoundT&& value) {
74 m_reportsNotFoundHasBeenSet = true;
75 m_reportsNotFound.emplace_back(std::forward<ReportsNotFoundT>(value));
76 return *this;
77 }
79
81
82 inline const Aws::String& GetRequestId() const { return m_requestId; }
83 template <typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) {
85 m_requestIdHasBeenSet = true;
86 m_requestId = std::forward<RequestIdT>(value);
87 }
88 template <typename RequestIdT = Aws::String>
89 BatchGetReportsResult& WithRequestId(RequestIdT&& value) {
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
95
96 private:
97 Aws::Vector<Report> m_reports;
98
99 Aws::Vector<Aws::String> m_reportsNotFound;
100
101 Aws::String m_requestId;
102 Aws::Http::HttpResponseCode m_HttpResponseCode;
103 bool m_reportsHasBeenSet = false;
104 bool m_reportsNotFoundHasBeenSet = false;
105 bool m_requestIdHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace CodeBuild
110} // namespace Aws
AWS_CODEBUILD_API BatchGetReportsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetReportsResult & WithReportsNotFound(ReportsNotFoundT &&value)
const Aws::Vector< Aws::String > & GetReportsNotFound() const
BatchGetReportsResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
BatchGetReportsResult & AddReportsNotFound(ReportsNotFoundT &&value)
AWS_CODEBUILD_API BatchGetReportsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetReportsNotFound(ReportsNotFoundT &&value)
AWS_CODEBUILD_API BatchGetReportsResult()=default
const Aws::Vector< Report > & GetReports() const
BatchGetReportsResult & AddReports(ReportsT &&value)
BatchGetReportsResult & WithReports(ReportsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue