AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetServiceRole(const Aws::String& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = value; }
50 inline void SetServiceRole(Aws::String&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::move(value); }
51 inline void SetServiceRole(const char* value) { m_serviceRoleHasBeenSet = true; m_serviceRole.assign(value); }
52 inline ProjectBuildBatchConfig& WithServiceRole(const Aws::String& value) { SetServiceRole(value); return *this;}
53 inline ProjectBuildBatchConfig& WithServiceRole(Aws::String&& value) { SetServiceRole(std::move(value)); return *this;}
54 inline ProjectBuildBatchConfig& WithServiceRole(const char* value) { SetServiceRole(value); return *this;}
56
58
62 inline bool GetCombineArtifacts() const{ return m_combineArtifacts; }
63 inline bool CombineArtifactsHasBeenSet() const { return m_combineArtifactsHasBeenSet; }
64 inline void SetCombineArtifacts(bool value) { m_combineArtifactsHasBeenSet = true; m_combineArtifacts = value; }
65 inline ProjectBuildBatchConfig& WithCombineArtifacts(bool value) { SetCombineArtifacts(value); return *this;}
67
69
73 inline const BatchRestrictions& GetRestrictions() const{ return m_restrictions; }
74 inline bool RestrictionsHasBeenSet() const { return m_restrictionsHasBeenSet; }
75 inline void SetRestrictions(const BatchRestrictions& value) { m_restrictionsHasBeenSet = true; m_restrictions = value; }
76 inline void SetRestrictions(BatchRestrictions&& value) { m_restrictionsHasBeenSet = true; m_restrictions = std::move(value); }
77 inline ProjectBuildBatchConfig& WithRestrictions(const BatchRestrictions& value) { SetRestrictions(value); return *this;}
78 inline ProjectBuildBatchConfig& WithRestrictions(BatchRestrictions&& value) { SetRestrictions(std::move(value)); return *this;}
80
82
86 inline int GetTimeoutInMins() const{ return m_timeoutInMins; }
87 inline bool TimeoutInMinsHasBeenSet() const { return m_timeoutInMinsHasBeenSet; }
88 inline void SetTimeoutInMins(int value) { m_timeoutInMinsHasBeenSet = true; m_timeoutInMins = value; }
89 inline ProjectBuildBatchConfig& WithTimeoutInMins(int value) { SetTimeoutInMins(value); return *this;}
91
93
103 inline const BatchReportModeType& GetBatchReportMode() const{ return m_batchReportMode; }
104 inline bool BatchReportModeHasBeenSet() const { return m_batchReportModeHasBeenSet; }
105 inline void SetBatchReportMode(const BatchReportModeType& value) { m_batchReportModeHasBeenSet = true; m_batchReportMode = value; }
106 inline void SetBatchReportMode(BatchReportModeType&& value) { m_batchReportModeHasBeenSet = true; m_batchReportMode = std::move(value); }
108 inline ProjectBuildBatchConfig& WithBatchReportMode(BatchReportModeType&& value) { SetBatchReportMode(std::move(value)); return *this;}
110 private:
111
112 Aws::String m_serviceRole;
113 bool m_serviceRoleHasBeenSet = false;
114
115 bool m_combineArtifacts;
116 bool m_combineArtifactsHasBeenSet = false;
117
118 BatchRestrictions m_restrictions;
119 bool m_restrictionsHasBeenSet = false;
120
121 int m_timeoutInMins;
122 bool m_timeoutInMinsHasBeenSet = false;
123
124 BatchReportModeType m_batchReportMode;
125 bool m_batchReportModeHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace CodeBuild
130} // namespace Aws
void SetBatchReportMode(const BatchReportModeType &value)
ProjectBuildBatchConfig & WithServiceRole(const char *value)
ProjectBuildBatchConfig & WithTimeoutInMins(int value)
ProjectBuildBatchConfig & WithBatchReportMode(BatchReportModeType &&value)
ProjectBuildBatchConfig & WithBatchReportMode(const BatchReportModeType &value)
AWS_CODEBUILD_API ProjectBuildBatchConfig(Aws::Utils::Json::JsonView jsonValue)
ProjectBuildBatchConfig & WithRestrictions(BatchRestrictions &&value)
ProjectBuildBatchConfig & WithCombineArtifacts(bool value)
AWS_CODEBUILD_API ProjectBuildBatchConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ProjectBuildBatchConfig & WithServiceRole(Aws::String &&value)
ProjectBuildBatchConfig & WithRestrictions(const BatchRestrictions &value)
ProjectBuildBatchConfig & WithServiceRole(const Aws::String &value)
const BatchReportModeType & GetBatchReportMode() const
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRestrictions(const BatchRestrictions &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue