AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
BatchGetBuildBatchesResult.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/BuildBatch.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 BatchGetBuildBatchesResult() = default;
31
33
37 inline const Aws::Vector<BuildBatch>& GetBuildBatches() const { return m_buildBatches; }
38 template <typename BuildBatchesT = Aws::Vector<BuildBatch>>
39 void SetBuildBatches(BuildBatchesT&& value) {
40 m_buildBatchesHasBeenSet = true;
41 m_buildBatches = std::forward<BuildBatchesT>(value);
42 }
43 template <typename BuildBatchesT = Aws::Vector<BuildBatch>>
45 SetBuildBatches(std::forward<BuildBatchesT>(value));
46 return *this;
47 }
48 template <typename BuildBatchesT = BuildBatch>
50 m_buildBatchesHasBeenSet = true;
51 m_buildBatches.emplace_back(std::forward<BuildBatchesT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Vector<Aws::String>& GetBuildBatchesNotFound() const { return m_buildBatchesNotFound; }
62 template <typename BuildBatchesNotFoundT = Aws::Vector<Aws::String>>
63 void SetBuildBatchesNotFound(BuildBatchesNotFoundT&& value) {
64 m_buildBatchesNotFoundHasBeenSet = true;
65 m_buildBatchesNotFound = std::forward<BuildBatchesNotFoundT>(value);
66 }
67 template <typename BuildBatchesNotFoundT = Aws::Vector<Aws::String>>
68 BatchGetBuildBatchesResult& WithBuildBatchesNotFound(BuildBatchesNotFoundT&& value) {
69 SetBuildBatchesNotFound(std::forward<BuildBatchesNotFoundT>(value));
70 return *this;
71 }
72 template <typename BuildBatchesNotFoundT = Aws::String>
73 BatchGetBuildBatchesResult& AddBuildBatchesNotFound(BuildBatchesNotFoundT&& value) {
74 m_buildBatchesNotFoundHasBeenSet = true;
75 m_buildBatchesNotFound.emplace_back(std::forward<BuildBatchesNotFoundT>(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>
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<BuildBatch> m_buildBatches;
98
99 Aws::Vector<Aws::String> m_buildBatchesNotFound;
100
101 Aws::String m_requestId;
102 Aws::Http::HttpResponseCode m_HttpResponseCode;
103 bool m_buildBatchesHasBeenSet = false;
104 bool m_buildBatchesNotFoundHasBeenSet = false;
105 bool m_requestIdHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace CodeBuild
110} // namespace Aws
const Aws::Vector< Aws::String > & GetBuildBatchesNotFound() const
AWS_CODEBUILD_API BatchGetBuildBatchesResult()=default
BatchGetBuildBatchesResult & WithBuildBatchesNotFound(BuildBatchesNotFoundT &&value)
BatchGetBuildBatchesResult & AddBuildBatchesNotFound(BuildBatchesNotFoundT &&value)
AWS_CODEBUILD_API BatchGetBuildBatchesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< BuildBatch > & GetBuildBatches() const
BatchGetBuildBatchesResult & WithRequestId(RequestIdT &&value)
AWS_CODEBUILD_API BatchGetBuildBatchesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetBuildBatchesResult & AddBuildBatches(BuildBatchesT &&value)
BatchGetBuildBatchesResult & WithBuildBatches(BuildBatchesT &&value)
void SetBuildBatchesNotFound(BuildBatchesNotFoundT &&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