AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
BatchGetBuildsResult.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/Build.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 BatchGetBuildsResult() = default;
30
32
35 inline const Aws::Vector<Build>& GetBuilds() const { return m_builds; }
36 template <typename BuildsT = Aws::Vector<Build>>
37 void SetBuilds(BuildsT&& value) {
38 m_buildsHasBeenSet = true;
39 m_builds = std::forward<BuildsT>(value);
40 }
41 template <typename BuildsT = Aws::Vector<Build>>
42 BatchGetBuildsResult& WithBuilds(BuildsT&& value) {
43 SetBuilds(std::forward<BuildsT>(value));
44 return *this;
45 }
46 template <typename BuildsT = Build>
47 BatchGetBuildsResult& AddBuilds(BuildsT&& value) {
48 m_buildsHasBeenSet = true;
49 m_builds.emplace_back(std::forward<BuildsT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::String>& GetBuildsNotFound() const { return m_buildsNotFound; }
59 template <typename BuildsNotFoundT = Aws::Vector<Aws::String>>
60 void SetBuildsNotFound(BuildsNotFoundT&& value) {
61 m_buildsNotFoundHasBeenSet = true;
62 m_buildsNotFound = std::forward<BuildsNotFoundT>(value);
63 }
64 template <typename BuildsNotFoundT = Aws::Vector<Aws::String>>
65 BatchGetBuildsResult& WithBuildsNotFound(BuildsNotFoundT&& value) {
66 SetBuildsNotFound(std::forward<BuildsNotFoundT>(value));
67 return *this;
68 }
69 template <typename BuildsNotFoundT = Aws::String>
70 BatchGetBuildsResult& AddBuildsNotFound(BuildsNotFoundT&& value) {
71 m_buildsNotFoundHasBeenSet = true;
72 m_buildsNotFound.emplace_back(std::forward<BuildsNotFoundT>(value));
73 return *this;
74 }
76
78
79 inline const Aws::String& GetRequestId() const { return m_requestId; }
80 template <typename RequestIdT = Aws::String>
81 void SetRequestId(RequestIdT&& value) {
82 m_requestIdHasBeenSet = true;
83 m_requestId = std::forward<RequestIdT>(value);
84 }
85 template <typename RequestIdT = Aws::String>
86 BatchGetBuildsResult& WithRequestId(RequestIdT&& value) {
87 SetRequestId(std::forward<RequestIdT>(value));
88 return *this;
89 }
91 private:
92 Aws::Vector<Build> m_builds;
93
94 Aws::Vector<Aws::String> m_buildsNotFound;
95
96 Aws::String m_requestId;
97 bool m_buildsHasBeenSet = false;
98 bool m_buildsNotFoundHasBeenSet = false;
99 bool m_requestIdHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace CodeBuild
104} // namespace Aws
AWS_CODEBUILD_API BatchGetBuildsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetBuildsResult & AddBuildsNotFound(BuildsNotFoundT &&value)
BatchGetBuildsResult & AddBuilds(BuildsT &&value)
const Aws::Vector< Aws::String > & GetBuildsNotFound() const
void SetBuildsNotFound(BuildsNotFoundT &&value)
BatchGetBuildsResult & WithBuilds(BuildsT &&value)
BatchGetBuildsResult & WithBuildsNotFound(BuildsNotFoundT &&value)
BatchGetBuildsResult & WithRequestId(RequestIdT &&value)
AWS_CODEBUILD_API BatchGetBuildsResult()=default
AWS_CODEBUILD_API BatchGetBuildsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Build > & GetBuilds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue