AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BatchGetProjectsResult.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codebuild/model/Project.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CodeBuild
26{
27namespace Model
28{
30 {
31 public:
32 AWS_CODEBUILD_API BatchGetProjectsResult() = default;
35
36
38
41 inline const Aws::Vector<Project>& GetProjects() const { return m_projects; }
42 template<typename ProjectsT = Aws::Vector<Project>>
43 void SetProjects(ProjectsT&& value) { m_projectsHasBeenSet = true; m_projects = std::forward<ProjectsT>(value); }
44 template<typename ProjectsT = Aws::Vector<Project>>
45 BatchGetProjectsResult& WithProjects(ProjectsT&& value) { SetProjects(std::forward<ProjectsT>(value)); return *this;}
46 template<typename ProjectsT = Project>
47 BatchGetProjectsResult& AddProjects(ProjectsT&& value) { m_projectsHasBeenSet = true; m_projects.emplace_back(std::forward<ProjectsT>(value)); return *this; }
49
51
54 inline const Aws::Vector<Aws::String>& GetProjectsNotFound() const { return m_projectsNotFound; }
55 template<typename ProjectsNotFoundT = Aws::Vector<Aws::String>>
56 void SetProjectsNotFound(ProjectsNotFoundT&& value) { m_projectsNotFoundHasBeenSet = true; m_projectsNotFound = std::forward<ProjectsNotFoundT>(value); }
57 template<typename ProjectsNotFoundT = Aws::Vector<Aws::String>>
58 BatchGetProjectsResult& WithProjectsNotFound(ProjectsNotFoundT&& value) { SetProjectsNotFound(std::forward<ProjectsNotFoundT>(value)); return *this;}
59 template<typename ProjectsNotFoundT = Aws::String>
60 BatchGetProjectsResult& AddProjectsNotFound(ProjectsNotFoundT&& value) { m_projectsNotFoundHasBeenSet = true; m_projectsNotFound.emplace_back(std::forward<ProjectsNotFoundT>(value)); return *this; }
62
64
65 inline const Aws::String& GetRequestId() const { return m_requestId; }
66 template<typename RequestIdT = Aws::String>
67 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
68 template<typename RequestIdT = Aws::String>
69 BatchGetProjectsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
71 private:
72
73 Aws::Vector<Project> m_projects;
74 bool m_projectsHasBeenSet = false;
75
76 Aws::Vector<Aws::String> m_projectsNotFound;
77 bool m_projectsNotFoundHasBeenSet = false;
78
79 Aws::String m_requestId;
80 bool m_requestIdHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace CodeBuild
85} // namespace Aws
const Aws::Vector< Project > & GetProjects() const
const Aws::Vector< Aws::String > & GetProjectsNotFound() const
BatchGetProjectsResult & AddProjects(ProjectsT &&value)
BatchGetProjectsResult & WithProjects(ProjectsT &&value)
AWS_CODEBUILD_API BatchGetProjectsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetProjectsResult & WithRequestId(RequestIdT &&value)
void SetProjectsNotFound(ProjectsNotFoundT &&value)
BatchGetProjectsResult & WithProjectsNotFound(ProjectsNotFoundT &&value)
AWS_CODEBUILD_API BatchGetProjectsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetProjectsResult & AddProjectsNotFound(ProjectsNotFoundT &&value)
AWS_CODEBUILD_API BatchGetProjectsResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue