AWS SDK for C++

AWS SDK for C++ Version 1.11.942

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#include <aws/crt/cbor/Cbor.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace CodeBuild {
22namespace Model {
23
31 public:
32 AWS_CODEBUILD_API ProjectBuildBatchConfig() = default;
33 AWS_CODEBUILD_API ProjectBuildBatchConfig(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CODEBUILD_API ProjectBuildBatchConfig& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CODEBUILD_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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 int64_t GetTimeoutInMins() const { return m_timeoutInMins; }
97 inline bool TimeoutInMinsHasBeenSet() const { return m_timeoutInMinsHasBeenSet; }
98 inline void SetTimeoutInMins(int64_t 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 int64_t 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
AWS_CODEBUILD_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ProjectBuildBatchConfig & WithRestrictions(RestrictionsT &&value)
AWS_CODEBUILD_API ProjectBuildBatchConfig & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ProjectBuildBatchConfig & WithCombineArtifacts(bool value)
ProjectBuildBatchConfig & WithServiceRole(ServiceRoleT &&value)
AWS_CODEBUILD_API ProjectBuildBatchConfig(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ProjectBuildBatchConfig & WithTimeoutInMins(int64_t value)
AWS_CODEBUILD_API ProjectBuildBatchConfig()=default
ProjectBuildBatchConfig & WithBatchReportMode(BatchReportModeType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String