AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ProjectBuildBatchConfig.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codebuild/model/BatchRestrictions.h>
10#include <aws/codebuild/model/BatchReportModeType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeBuild
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CODEBUILD_API ProjectBuildBatchConfig() = default;
40 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
48 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
49 template<typename ServiceRoleT = Aws::String>
50 void SetServiceRole(ServiceRoleT&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::forward<ServiceRoleT>(value); }
51 template<typename ServiceRoleT = Aws::String>
52 ProjectBuildBatchConfig& WithServiceRole(ServiceRoleT&& value) { SetServiceRole(std::forward<ServiceRoleT>(value)); return *this;}
54
56
60 inline bool GetCombineArtifacts() const { return m_combineArtifacts; }
61 inline bool CombineArtifactsHasBeenSet() const { return m_combineArtifactsHasBeenSet; }
62 inline void SetCombineArtifacts(bool value) { m_combineArtifactsHasBeenSet = true; m_combineArtifacts = value; }
63 inline ProjectBuildBatchConfig& WithCombineArtifacts(bool value) { SetCombineArtifacts(value); return *this;}
65
67
71 inline const BatchRestrictions& GetRestrictions() const { return m_restrictions; }
72 inline bool RestrictionsHasBeenSet() const { return m_restrictionsHasBeenSet; }
73 template<typename RestrictionsT = BatchRestrictions>
74 void SetRestrictions(RestrictionsT&& value) { m_restrictionsHasBeenSet = true; m_restrictions = std::forward<RestrictionsT>(value); }
75 template<typename RestrictionsT = BatchRestrictions>
76 ProjectBuildBatchConfig& WithRestrictions(RestrictionsT&& value) { SetRestrictions(std::forward<RestrictionsT>(value)); return *this;}
78
80
84 inline int GetTimeoutInMins() const { return m_timeoutInMins; }
85 inline bool TimeoutInMinsHasBeenSet() const { return m_timeoutInMinsHasBeenSet; }
86 inline void SetTimeoutInMins(int value) { m_timeoutInMinsHasBeenSet = true; m_timeoutInMins = value; }
87 inline ProjectBuildBatchConfig& WithTimeoutInMins(int value) { SetTimeoutInMins(value); return *this;}
89
91
101 inline BatchReportModeType GetBatchReportMode() const { return m_batchReportMode; }
102 inline bool BatchReportModeHasBeenSet() const { return m_batchReportModeHasBeenSet; }
103 inline void SetBatchReportMode(BatchReportModeType value) { m_batchReportModeHasBeenSet = true; m_batchReportMode = value; }
106 private:
107
108 Aws::String m_serviceRole;
109 bool m_serviceRoleHasBeenSet = false;
110
111 bool m_combineArtifacts{false};
112 bool m_combineArtifactsHasBeenSet = false;
113
114 BatchRestrictions m_restrictions;
115 bool m_restrictionsHasBeenSet = false;
116
117 int m_timeoutInMins{0};
118 bool m_timeoutInMinsHasBeenSet = false;
119
121 bool m_batchReportModeHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace CodeBuild
126} // 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