AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CodeBuild {
24namespace Model {
26 public:
27 AWS_CODEBUILD_API BatchGetReportsResult() = default;
30
32
36 inline const Aws::Vector<Report>& GetReports() const { return m_reports; }
37 template <typename ReportsT = Aws::Vector<Report>>
38 void SetReports(ReportsT&& value) {
39 m_reportsHasBeenSet = true;
40 m_reports = std::forward<ReportsT>(value);
41 }
42 template <typename ReportsT = Aws::Vector<Report>>
44 SetReports(std::forward<ReportsT>(value));
45 return *this;
46 }
47 template <typename ReportsT = Report>
48 BatchGetReportsResult& AddReports(ReportsT&& value) {
49 m_reportsHasBeenSet = true;
50 m_reports.emplace_back(std::forward<ReportsT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<Aws::String>& GetReportsNotFound() const { return m_reportsNotFound; }
61 template <typename ReportsNotFoundT = Aws::Vector<Aws::String>>
62 void SetReportsNotFound(ReportsNotFoundT&& value) {
63 m_reportsNotFoundHasBeenSet = true;
64 m_reportsNotFound = std::forward<ReportsNotFoundT>(value);
65 }
66 template <typename ReportsNotFoundT = Aws::Vector<Aws::String>>
67 BatchGetReportsResult& WithReportsNotFound(ReportsNotFoundT&& value) {
68 SetReportsNotFound(std::forward<ReportsNotFoundT>(value));
69 return *this;
70 }
71 template <typename ReportsNotFoundT = Aws::String>
72 BatchGetReportsResult& AddReportsNotFound(ReportsNotFoundT&& value) {
73 m_reportsNotFoundHasBeenSet = true;
74 m_reportsNotFound.emplace_back(std::forward<ReportsNotFoundT>(value));
75 return *this;
76 }
78
80
81 inline const Aws::String& GetRequestId() const { return m_requestId; }
82 template <typename RequestIdT = Aws::String>
83 void SetRequestId(RequestIdT&& value) {
84 m_requestIdHasBeenSet = true;
85 m_requestId = std::forward<RequestIdT>(value);
86 }
87 template <typename RequestIdT = Aws::String>
88 BatchGetReportsResult& WithRequestId(RequestIdT&& value) {
89 SetRequestId(std::forward<RequestIdT>(value));
90 return *this;
91 }
93 private:
94 Aws::Vector<Report> m_reports;
95
96 Aws::Vector<Aws::String> m_reportsNotFound;
97
98 Aws::String m_requestId;
99 bool m_reportsHasBeenSet = false;
100 bool m_reportsNotFoundHasBeenSet = false;
101 bool m_requestIdHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace CodeBuild
106} // 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)
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