AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ProjectBuildBatchConfig.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/BatchReportModeType.h>
9#include <aws/codebuild/model/BatchRestrictions.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeBuild {
22namespace Model {
23
31 public:
32 AWS_CODEBUILD_API ProjectBuildBatchConfig() = default;
35 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
42 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
43 template <typename ServiceRoleT = Aws::String>
44 void SetServiceRole(ServiceRoleT&& value) {
45 m_serviceRoleHasBeenSet = true;
46 m_serviceRole = std::forward<ServiceRoleT>(value);
47 }
48 template <typename ServiceRoleT = Aws::String>
50 SetServiceRole(std::forward<ServiceRoleT>(value));
51 return *this;
52 }
54
56
60 inline bool GetCombineArtifacts() const { return m_combineArtifacts; }
61 inline bool CombineArtifactsHasBeenSet() const { return m_combineArtifactsHasBeenSet; }
62 inline void SetCombineArtifacts(bool value) {
63 m_combineArtifactsHasBeenSet = true;
64 m_combineArtifacts = value;
65 }
68 return *this;
69 }
71
73
77 inline const BatchRestrictions& GetRestrictions() const { return m_restrictions; }
78 inline bool RestrictionsHasBeenSet() const { return m_restrictionsHasBeenSet; }
79 template <typename RestrictionsT = BatchRestrictions>
80 void SetRestrictions(RestrictionsT&& value) {
81 m_restrictionsHasBeenSet = true;
82 m_restrictions = std::forward<RestrictionsT>(value);
83 }
84 template <typename RestrictionsT = BatchRestrictions>
85 ProjectBuildBatchConfig& WithRestrictions(RestrictionsT&& value) {
86 SetRestrictions(std::forward<RestrictionsT>(value));
87 return *this;
88 }
90
92
96 inline int GetTimeoutInMins() const { return m_timeoutInMins; }
97 inline bool TimeoutInMinsHasBeenSet() const { return m_timeoutInMinsHasBeenSet; }
98 inline void SetTimeoutInMins(int value) {
99 m_timeoutInMinsHasBeenSet = true;
100 m_timeoutInMins = value;
101 }
103 SetTimeoutInMins(value);
104 return *this;
105 }
107
109
119 inline BatchReportModeType GetBatchReportMode() const { return m_batchReportMode; }
120 inline bool BatchReportModeHasBeenSet() const { return m_batchReportModeHasBeenSet; }
122 m_batchReportModeHasBeenSet = true;
123 m_batchReportMode = value;
124 }
126 SetBatchReportMode(value);
127 return *this;
128 }
130 private:
131 Aws::String m_serviceRole;
132
133 bool m_combineArtifacts{false};
134
135 BatchRestrictions m_restrictions;
136
137 int m_timeoutInMins{0};
138
140 bool m_serviceRoleHasBeenSet = false;
141 bool m_combineArtifactsHasBeenSet = false;
142 bool m_restrictionsHasBeenSet = false;
143 bool m_timeoutInMinsHasBeenSet = false;
144 bool m_batchReportModeHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace CodeBuild
149} // namespace Aws
ProjectBuildBatchConfig & WithTimeoutInMins(int value)
ProjectBuildBatchConfig & WithRestrictions(RestrictionsT &&value)
AWS_CODEBUILD_API ProjectBuildBatchConfig(Aws::Utils::Json::JsonView jsonValue)
ProjectBuildBatchConfig & WithCombineArtifacts(bool value)
AWS_CODEBUILD_API ProjectBuildBatchConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ProjectBuildBatchConfig & WithServiceRole(ServiceRoleT &&value)
AWS_CODEBUILD_API ProjectBuildBatchConfig()=default
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
ProjectBuildBatchConfig & WithBatchReportMode(BatchReportModeType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue